-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
325 lines (325 loc) · 8.13 KB
/
package.json
File metadata and controls
325 lines (325 loc) · 8.13 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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
{
"name": "ampl-plugin-official",
"displayName": "AMPL (Official)",
"publisher": "AMPLOptimizationInc",
"description": "Official AMPL language support (syntax highlighting, code browsing and more)",
"version": "0.3.5",
"engines": {
"vscode": "^1.90.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ampl/ampl-plugin-official.git"
},
"main": "./out/extension.js",
"activationEvents": [
"onLanguage:ampl",
"workspaceContains:*.mod",
"workspaceContains:*.dat",
"workspaceContains:*.run",
"workspaceContains: AMPL.files.json",
"workspaceContains: .vscode/AMPL.files.json"
],
"categories": [
"Programming Languages"
],
"icon": "resources/logo.png",
"contributes": {
"languages": [
{
"id": "ampl",
"aliases": [
"AMPL"
],
"extensions": [
".mod",
".run",
".ampl",
".inc"
],
"configuration": "./language-configuration.json"
},
{
"id": "ampl-dat",
"aliases": [
"AMPL Data"
],
"extensions": [
".dat"
],
"configuration": "./language-configuration.json"
}
],
"debuggers": [
{
"type": "ampl",
"label": "AMPL",
"program": "./out/extension.js",
"languages": [
"ampl"
],
"configurationAttributes": {
"launch": {
"properties": {
"program": {
"type": "string",
"description": "The AMPL file to run",
"default": "${file}"
}
}
}
},
"initialConfigurations": [
{
"type": "ampl",
"request": "launch",
"name": "Run AMPL file",
"program": "${file}"
}
]
}
],
"iconThemes": [
{
"id": "ampl-icons",
"label": "AMPL",
"path": "./resources/ampl-icon-theme.json"
}
],
"grammars": [
{
"language": "ampl",
"scopeName": "source.ampl",
"path": "./syntaxes/ampl.tmLanguage.json"
},
{
"language": "ampl-dat",
"scopeName": "source.ampl.dat",
"path": "./syntaxes/ampl-dat.tmLanguage.json"
}
],
"snippets": [
{
"language": "ampl",
"path": "./snippets/ampl.json"
}
],
"menus": {
"explorer/context": [
{
"command": "AMPL.runFile",
"title": "Send to AMPL",
"when": "resourceExtname == .mod || resourceExtname == .run || resourceExtname == .ampl || resourceExtname == .inc || resourceExtname == .dat",
"group": "ampl"
}
],
"editor/context": [
{
"command": "AMPL.runFile",
"when": "editorTextFocus && (editorLangId == ampl || editorLangId == ampl-dat)",
"group": "ampl"
},
{
"command": "AMPL.displayEntity",
"when": "editorTextFocus && (editorLangId == ampl || editorLangId == ampl-dat)",
"group": "ampl"
}
],
"editor/title/run": [
{
"command": "AMPL.runFile",
"group": "navigation",
"when": "editorLangId == ampl || editorLangId == ampl-dat",
"title": "Send to AMPL"
}
]
},
"terminal": {
"profiles": [
{
"id": "AMPL.shell",
"title": "AMPL"
}
]
},
"keybindings": [
{
"command": "AMPL.runFile",
"key": "ctrl+shift+enter",
"mac": "cmd+shift+enter",
"when": "editorTextFocus && (editorLangId == ampl || editorLangId == ampl-dat)"
},
{
"command": "AMPL.displayEntity",
"key": "ctrl+shift+d",
"mac": "cmd+shift+d",
"when": "editorTextFocus && (editorLangId == ampl || editorLangId == ampl-dat)"
},
{
"command": "AMPL.reset",
"key": "ctrl+shift+r",
"mac": "cmd+shift+r",
"when": "editorTextFocus && (editorLangId == ampl || editorLangId == ampl-dat)"
},
{
"command": "AMPL.solve",
"key": "ctrl+shift+l",
"mac": "cmd+shift+l",
"when": "editorTextFocus && (editorLangId == ampl || editorLangId == ampl-dat)"
}
],
"commands": [
{
"command": "AMPL.checkLanguageServerConfiguration",
"title": "Check Language Server Configuration"
},
{
"command": "AMPL.autotedectJava",
"title": "Autodetect Java Runtime"
},
{
"command": "AMPL.selectJavaFolder",
"title": "Select Java Folder"
},
{
"command": "AMPL.lmconvert",
"title": "Convert To AMPL",
"icon": "$(comment)"
},
{
"command": "AMPL.selectConfiguration",
"title": "AMPL: Select Launch Configuration",
"when": "onContext:AMPL.enableBetaCommands",
"enablement": "AMPL.enableBetaCommands"
},
{
"command": "AMPL.selectFilesToParse",
"title": "AMPL: Select files to parse",
"enablement": "AMPL.enableBetaCommands"
},
{
"command": "AMPL.displayEntity",
"title": "AMPL: Display Entity"
},
{
"command": "AMPL.openConsole",
"title": "AMPL: Open Console"
},
{
"command": "AMPL.runFile",
"title": "AMPL: Run File",
"icon": "$(play)"
},
{
"command": "AMPL.solve",
"title": "AMPL: Solve",
"icon": "$(play)",
"shortTitle": "Solve"
},
{
"command": "AMPL.reset",
"title": "AMPL: Reset",
"icon": "$(trash)",
"shortTitle": "Reset"
},
{
"command": "AMPL.createLaunchJson",
"title": "AMPL: Create launch.json for AMPL (F5 Support)",
"category": "AMPL"
}
],
"configuration": [
{
"title": "AMPL › Runtime",
"properties": {
"AMPL.Runtime.pathToAMPLBinary": {
"type": "string",
"default": "",
"description": "Path to the AMPL binary. If empty, the extension will look for it in system paths.",
"title": "Path to AMPL Binary",
"scope": "machine"
},
"AMPL.Runtime.pathToJRE": {
"type": "string",
"default": "",
"description": "Path to the Java Runtime Environment (min Java 11). If empty, the extension will look in the environment variable JAVA_HOME and then in the system paths.",
"title": "Path to JRE",
"markdownDescription": "Path to the Java Runtime Environment (min Java 11). If empty, the extension will look in the environment variable JAVA_HOME and then in the system paths.\n\n- [Check Configuration](command:AMPL.checkLanguageServerConfiguration)\n- [Autodetect Java](command:AMPL.autotedectJava)\n- [Select Java Folder](command:AMPL.selectJavaFolder)",
"scope": "machine"
},
"AMPL.Runtime.changeDirectoryOnRun": {
"type": "boolean",
"default": true,
"description": "Change the working directory of AMPL to the directory of the file being run."
}
}
},
{
"title": "AMPL › Language server",
"properties": {
"AMPL.LanguageServer.enableLanguageServer": {
"type": "boolean",
"default": true,
"description": "Enable or disable the language server for AMPL files."
},
"AMPL.LanguageServer.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Trace the communication between VS Code and the AMPL language server."
},
"AMPL.LanguageServer.diagnosticsEnabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable error highlighting for AMPL files. Requires the language server."
}
}
},
{
"title": "AMPL › Advanced",
"properties": {
"AMPL.Advanced.enablePsuedoTerminal": {
"type": "boolean",
"default": false,
"description": "Enable or disable the advanced pseudoterminal. Has more features but can be unstable."
},
"AMPL.Advanced.enableAdvancedCommands": {
"type": "boolean",
"default": false,
"description": "Enable advanced and beta features like custom configuration and file selection commands."
}
}
}
]
},
"dependencies": {
"jsonc-parser": "^3.3.1",
"vscode-languageclient": "9.0.1"
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^22.5.0",
"@types/vscode": "^1.10.0",
"@typescript-eslint/eslint-plugin": "^8.34.1",
"@typescript-eslint/parser": "^8.34.1",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.5.0",
"eslint": "^9.29.0",
"mocha": "^11.7.0",
"path": "^0.12.7",
"typescript": "^5.5.4",
"vscode-jsonrpc": "^8.2.1",
"yarn": "1.22.22"
}
}