-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
232 lines (232 loc) · 7.85 KB
/
package.json
File metadata and controls
232 lines (232 loc) · 7.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
{
"name": "dcs-lua-runner",
"displayName": "DCS Lua Runner",
"description": "Quickly run lua code in DCS World (local or remote server). A reimplementation of the DCS Fiddle lua console in VS Code.",
"license": "MIT",
"publisher": "omltcat",
"version": "1.2.3",
"icon": "docs/img/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/omltcat/dcs-lua-runner"},
"engines": {
"vscode": "^1.70.0"
},
"categories": [
"Programming Languages",
"Debuggers"
],
"activationEvents": [
"onLanguage:lua"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "DCS Lua Runner",
"properties": {
"dcsLuaRunner.serverAddress": {
"type": "string",
"default": "",
"description": "Remote DCS server address (IP or domain). See setup guide if you are using a HTTPS reverse proxy."
},
"dcsLuaRunner.serverAddressGUI": {
"type": "string",
"description": "Override remote GUI env address. For example, you can put both endpoints behind a HTTPS reverse proxy with different subdomains. Their ports should both be 443."
},
"dcsLuaRunner.serverPort": {
"type": "number",
"default": 12080,
"description": "Remote DCS Fiddle port for mission env. GUI env will automatically be on the next port (12081 by default)."
},
"dcsLuaRunner.serverPortGUI": {
"type": "number",
"default": 12081,
"description": "Overide remote GUI env port. For example, you can put both endpoints behind a HTTPS reverse proxy with different subdomains. Their ports should both be 443."
},
"dcsLuaRunner.useHttps": {
"type": "boolean",
"default": false,
"description": "Set if the remote server is behind a HTTPS reverse proxy. You should also change both ports accordingly (443)."
},
"dcsLuaRunner.webAuthUsername": {
"type": "string",
"default": "username",
"description": "The username for authentication. Requires the modified DCS Fiddle script."
},
"dcsLuaRunner.webAuthPassword": {
"type": "string",
"default": "password",
"description": "The password for authentication. Requires the modified DCS Fiddle script."
},
"dcsLuaRunner.runCodeLocally": {
"type": "boolean",
"default": true,
"description": "Send code to 127.0.0.1:12080 or remote server set below."
},
"dcsLuaRunner.runInMissionEnv": {
"type": "boolean",
"default": true,
"description": "Execute in mission or GUI Scripting Environment."
},
"dcsLuaRunner.returnDisplay": {
"type": "string",
"enum": ["Output Panel (Scrolling Plain Text)", "Show File (Syntax Highlight)"],
"default": "Show File (Syntax Highlight)",
"description": "How data returned from DCS is displayed."
},
"dcsLuaRunner.returnDisplayFormat": {
"type": "string",
"enum": ["Lua Table", "JSON"],
"default": "Lua Table",
"description": "Note: Experimental feature! Original returned data is in JSON. Conversion to Lua table is done after receiving data and may not be 100% accurate. Please report any issues."
},
"dcsLuaRunner.quickButtons": {
"type": "boolean",
"default": false,
"description": "Show buttons to quickly switch settings beside the run button."
}
}
},
"menus": {
"editor/title": [
{
"command": "dcs-lua-runner.run-file",
"group": "navigation@-3",
"when": "editorLangId == lua"
},
{
"command": "dcs-lua-runner.set-local-button",
"when": "editorLangId == lua && config.dcsLuaRunner.runCodeLocally == false && config.dcsLuaRunner.showQuickButtons == true",
"group": "navigation@-5"
},
{
"command": "dcs-lua-runner.set-remote-button",
"when": "editorLangId == lua && config.dcsLuaRunner.runCodeLocally == true && config.dcsLuaRunner.showQuickButtons == true",
"group": "navigation@-5"
},
{
"command": "dcs-lua-runner.set-missionEnv-button",
"when": "editorLangId == lua && config.dcsLuaRunner.runInMissionEnv == false && config.dcsLuaRunner.showQuickButtons == true",
"group": "navigation@-4"
},
{
"command": "dcs-lua-runner.set-guiEnv-button",
"when": "editorLangId == lua && config.dcsLuaRunner.runInMissionEnv == true && config.dcsLuaRunner.showQuickButtons == true",
"group": "navigation@-4"
}
],
"editor/context": [
{
"command": "dcs-lua-runner.run-selected",
"group": "navigation",
"when": "editorLangId == lua && editorHasSelection"
}
],
"commandPalette": [
{
"command": "dcs-lua-runner.run-file",
"when": "editorLangId == lua"
},
{
"command": "dcs-lua-runner.run-selected",
"when": "editorLangId == lua && editorHasSelection"
},
{
"command": "dcs-lua-runner.set-local-button",
"when": "false"
},
{
"command": "dcs-lua-runner.set-remote-button",
"when": "false"
},
{
"command": "dcs-lua-runner.set-missionEnv-button",
"when": "false"
},
{
"command": "dcs-lua-runner.set-guiEnv-button",
"when": "false"
}
]
},
"commands": [
{
"command": "dcs-lua-runner.open-settings",
"title": "DCS Lua: Open Runner Settings"
},
{
"command": "dcs-lua-runner.get-theatre",
"group": "navigation@0",
"title": "DCS Lua: Get Mission Theatre"
},
{
"command": "dcs-lua-runner.run-file",
"group": "navigation@1",
"title": "DCS Lua: Run Current File",
"icon": "$(run)"
},
{
"command": "dcs-lua-runner.run-selected",
"title": "DCS Lua: Run Selected Code"
},
{
"command": "dcs-lua-runner.set-local",
"title": "DCS Lua: Set Run Code on Local Machine"
},
{
"command": "dcs-lua-runner.set-local-button",
"title": "DCS: Remote"
},
{
"command": "dcs-lua-runner.set-remote",
"title": "DCS Lua: Set Run Code on Remote Server"
},
{
"command": "dcs-lua-runner.set-remote-button",
"title": "DCS: Local"
},
{
"command": "dcs-lua-runner.set-missionEnv",
"title": "DCS Lua: Set Run Code in Mission Environment"
},
{
"command": "dcs-lua-runner.set-missionEnv-button",
"title": "Env: GUI"
},
{
"command": "dcs-lua-runner.set-guiEnv",
"title": "DCS Lua: Set Run Code in GUI Environment"
},
{
"command": "dcs-lua-runner.set-guiEnv-button",
"title": "Env: Mission"
},
{
"command": "dcs-lua-runner.show-setup-guide",
"title": "DCS Lua: Show Setup Guide"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
},
"dependencies": {
"axios": "^1.6.5"
}
}