-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
557 lines (557 loc) · 17.7 KB
/
package.json
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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
{
"name": "gams-ide",
"displayName": "gams-ide",
"description": "A GAMS integrated development environment for VSCode",
"version": "0.0.92",
"repository": {
"type": "git",
"url": "https://github.com/chrispahm/gams-ide"
},
"license": "MIT",
"publisher": "chrispahm",
"engines": {
"vscode": "^1.70.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:gams"
],
"contributes": {
"commands": [
{
"command": "gams.run",
"title": "GAMS: Run"
},
{
"command": "gams.runThisFile",
"title": "GAMS: Run this file"
},
{
"command": "gams.compile",
"title": "GAMS: Compile"
},
{
"command": "gams.compileThisFile",
"title": "GAMS: Compile this file"
},
{
"command": "gams.openSidebar",
"title": "GAMS: Open Sidebar"
},
{
"command": "gams.openSymbolPanel",
"title": "GAMS: Open Symbol Panel"
},
{
"command": "gams.stop",
"title": "GAMS: Stop"
},
{
"command": "gams.kill",
"title": "GAMS: Kill"
},
{
"command": "gams.setAsMainGmsFile",
"title": "GAMS: Set as main GAMS file"
},
{
"command": "gams.clearMainGmsFile",
"title": "GAMS: Clear main GAMS file"
},
{
"command": "gams.addToExcludeFromMainGmsFile",
"title": "GAMS: Add to exclude from main GAMS file list"
},
{
"command": "gams.removeFromExcludeFromMainGmsFile",
"title": "GAMS: Remove from exclude from main GAMS file list"
},
{
"command": "gams.selectMainGmsFile",
"title": "GAMS: Select main GAMS file"
},
{
"command": "gams.modelTree.showEXIT",
"title": " EXIT"
},
{
"command": "gams.modelTree.hideEXIT",
"title": "✓ EXIT"
},
{
"command": "gams.modelTree.showINCLUDE",
"title": " INCLUDE"
},
{
"command": "gams.modelTree.hideINCLUDE",
"title": "✓ INCLUDE"
},
{
"command": "gams.modelTree.showBATINCLUDE",
"title": " BATINCLUDE"
},
{
"command": "gams.modelTree.hideBATINCLUDE",
"title": "✓ BATINCLUDE"
},
{
"command": "gams.modelTree.showLIBINCLUDE",
"title": " LIBINCLUDE"
},
{
"command": "gams.modelTree.hideLIBINCLUDE",
"title": "✓ LIBINCLUDE"
},
{
"command": "gams.modelTree.showSYSINCLUDE",
"title": " SYSINCLUDE"
},
{
"command": "gams.modelTree.hideSYSINCLUDE",
"title": "✓ SYSINCLUDE"
},
{
"command": "gams.modelTree.showCALL",
"title": " CALL"
},
{
"command": "gams.modelTree.hideCALL",
"title": "✓ CALL"
},
{
"command": "gams.modelTree.showCALL.ASYNC",
"title": " CALL.ASYNC"
},
{
"command": "gams.modelTree.hideCALL.ASYNC",
"title": "✓ CALL.ASYNC"
},
{
"command": "gams.modelTree.showCALL.TOOL",
"title": " CALL.TOOL"
},
{
"command": "gams.modelTree.hideCALL.TOOL",
"title": "✓ CALL.TOOL"
},
{
"command": "gams.modelTree.showGDXIN",
"title": " GDXIN"
},
{
"command": "gams.modelTree.hideGDXIN",
"title": "✓ GDXIN"
},
{
"command": "gams.modelTree.showGDXOUT",
"title": " GDXOUT"
},
{
"command": "gams.modelTree.hideGDXOUT",
"title": "✓ GDXOUT"
},
{
"command": "gams.modelTree.showIF_EXIST",
"title": " IF_EXIST"
},
{
"command": "gams.modelTree.hideIF_EXIST",
"title": "✓ IF_EXIST"
},
{
"command": "gams.modelTree.showIF_DEXIST",
"title": " IF_DEXIST"
},
{
"command": "gams.modelTree.hideIF_DEXIST",
"title": "✓ IF_DEXIST"
},
{
"command": "gams.modelTree.showFUNCLIBIN",
"title": " FUNCLIBIN"
},
{
"command": "gams.modelTree.hideFUNCLIBIN",
"title": "✓ FUNCLIBIN"
},
{
"command": "gams.modelTree.showTERMINATE",
"title": " TERMINATE"
},
{
"command": "gams.modelTree.hideTERMINATE",
"title": "✓ TERMINATE"
},
{
"command": "gams.modelTree.showSTOP",
"title": " STOP"
},
{
"command": "gams.modelTree.hideSTOP",
"title": "✓ STOP"
},
{
"command": "gams.modelTree.hideFile",
"title": "Hide file from tree view",
"icon": {
"dark": "media/dark/hide.svg",
"light": "media/light/hide.svg"
}
},
{
"command": "gams.modelTree.resetHiddenFiles",
"title": "Reset hidden files",
"icon": {
"dark": "media/dark/reset.svg",
"light": "media/light/reset.svg"
}
}
],
"configuration": {
"title": "GAMS-IDE",
"properties": {
"gamsIde.gamsExecutable": {
"description": "Path to GAMS executable, will default to PATH or common install directories.",
"type": "string",
"default": ""
},
"gamsIde.scratchDirectory": {
"description": "The (scratch) directory where gams-ide will read/write temp files. Ideally located on a fast internal disk.",
"type": "string",
"default": ""
},
"gamsIde.enableModelIncludeTreeView": {
"description": "Enable a tree view of all includes/batincludes of the model in the sidebar. Make sure that the 'Include File Summary' is printed to the listing file, and $offInclude isn't present in the model source.",
"type": "boolean",
"default": true
},
"gamsIde.maxErrorsToDisplay": {
"description": "Maximum amount of errors that will be highlighted by gams-ide. Put a 0 if no maximum should be defined. Keep in mind that often only the first error is an actual GAMS error, while the subsequent errors may result from the first error.",
"type": "integer",
"default": 1
},
"gamsIde.showCompilationNotifications": {
"description": "Notify when GAMS encountered system issues (e.g. missing .opt files) during compilation.",
"type": "boolean",
"default": true
},
"gamsIde.jumpToFirstError": {
"description": "Automatically scroll to the first error in the listing file when compilation errors are encountered.",
"type": "boolean",
"default": true
},
"gamsIde.jumpToAbort": {
"description": "If found, automatically scroll to the first abort parameter found in the listing file.",
"type": "boolean",
"default": true
},
"gamsIde.autoUnfoldListingEntriesTreshold": {
"description": "Automatically unfold listing entries (e.g. Displays) if their amount does not exceed the following value.",
"type": "integer",
"default": 10
},
"gamsIde.onlyAutoUnfoldDisplayStatements": {
"description": "Limit 'Auto unfold listing entries treshold' to display statements. Other listing entries will not be unfolded automatically.",
"type": "boolean",
"default": true
},
"gamsIde.defaultParameterToJumpToAfterSolve": {
"description": "If found, the listing will be auto-scrolled to the following display paramter.",
"type": "string",
"default": "p_sumRes"
},
"gamsIde.autoScrollToEndOfListing": {
"description": "Automatically scroll to the end of the listing after a solve.",
"type": "boolean",
"default": true
},
"gamsIde.mainGmsFile": {
"description": "Main GAMS file to execute if your model consists of multiple files. This file will be executed when you press the 'Run' button, and compiled when saving any file in your workspace. Common main GMS files are 'exp_starter.gms' (FarmDyn), 'capmod.gms' (CAPRI), and 'com_.gms' (CGEBOX).",
"type": "string",
"default": "exp_starter.gms"
},
"gamsIde.excludeFromMainGmsFile": {
"description": "Ignore the 'main GAMS file' setting for these files and folders. This is useful if you have a file or folders that are only used for data generation, but not for the actual model. Note: Only relative and absolute paths without glob characters are supported. Relative paths are relative to the (first) workspace root.",
"type": "array",
"default": []
},
"gamsIde.commandLineArguments_compilation": {
"description": "Additional command line arguments to pass to GAMS during compilation.",
"type": "array",
"default": []
},
"gamsIde.commandLineArguments_execution": {
"description": "Additional command line arguments to pass to GAMS during execution.",
"type": "array",
"default": []
},
"gamsIde.parseGamsData": {
"description": "Show symbol values for each solve in a console panel in the bottom dock. Recommended only for high end computers with >= 8gb RAM",
"type": "boolean",
"default": false
},
"gamsIde.consoleLimrow": {
"description": "LIMROW setting if parse symbol values is turned on",
"type": "integer",
"default": 3
},
"gamsIde.consoleLimcol": {
"description": "LIMCOL setting if parse symbol values is turned on",
"type": "integer",
"default": 3
},
"gamsIde.consoleDispWidth": {
"description": "dispWidth setting if parse symbol values is turned on",
"type": "integer",
"default": 15
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "gamsIdeViewContainer",
"title": "GAMS References",
"icon": "media/logo.svg"
}
],
"panel": [
{
"id": "gamsIdeSymbolContainer",
"title": "GAMS Data",
"icon": "media/logo.svg"
}
]
},
"menus": {
"view/title": [
{
"command": "gams.modelTree.resetHiddenFiles",
"when": "view == gamsIdeModelTree",
"group": "navigation"
},
{
"command": "gams.modelTree.hideEXIT",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenEXIT",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showEXIT",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenEXIT",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideINCLUDE",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenINCLUDE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showINCLUDE",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenINCLUDE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideBATINCLUDE",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenBATINCLUDE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showBATINCLUDE",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenBATINCLUDE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideLIBINCLUDE",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenLIBINCLUDE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showLIBINCLUDE",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenLIBINCLUDE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideSYSINCLUDE",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenSYSINCLUDE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showSYSINCLUDE",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenSYSINCLUDE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideCALL",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenCALL",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showCALL",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenCALL",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideCALL.ASYNC",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenCALL.ASYNC",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showCALL.ASYNC",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenCALL.ASYNC",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideCALL.TOOL",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenCALL.TOOL",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showCALL.TOOL",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenCALL.TOOL",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideGDXIN",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenGDXIN",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showGDXIN",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenGDXIN",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideGDXOUT",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenGDXOUT",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showGDXOUT",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenGDXOUT",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideIF_EXIST",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenIF_EXIST",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showIF_EXIST",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenIF_EXIST",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideIF_DEXIST",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenIF_DEXIST",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showIF_DEXIST",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenIF_DEXIST",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideFUNCLIBIN",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenFUNCLIBIN",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showFUNCLIBIN",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenFUNCLIBIN",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideTERMINATE",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenTERMINATE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showTERMINATE",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenTERMINATE",
"group": "includeTypes"
},
{
"command": "gams.modelTree.hideSTOP",
"when": "view == gamsIdeModelTree && !gamsIde:modelTreeIsHiddenSTOP",
"group": "includeTypes"
},
{
"command": "gams.modelTree.showSTOP",
"when": "view == gamsIdeModelTree && gamsIde:modelTreeIsHiddenSTOP",
"group": "includeTypes"
}
],
"view/item/context": [
{
"command": "gams.modelTree.hideFile",
"when": "view == gamsIdeModelTree",
"group": "inline"
}
]
},
"views": {
"explorer": [
{
"id": "gamsIdeModelTree",
"name": "GAMS Model Tree"
}
],
"gamsIdeViewContainer": [
{
"type": "webview",
"id": "gamsIdeView",
"name": ""
}
],
"gamsIdeSymbolContainer": [
{
"type": "webview",
"id": "gamsIdeDataView",
"name": ""
}
]
}
},
"main": "./dist/gams-ide.js",
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js",
"build": "vsce package",
"vscode:prepublish": "npm run package",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^9.1.1",
"@types/node": "16.x",
"@types/vscode": "^1.70.0",
"@vscode/test-electron": "^2.1.5",
"eslint": "^8.20.0",
"mocha": "^10.0.0",
"peggy": "^3.0.2",
"typescript": "^4.7.4",
"vitepress": "^1.0.0-rc.20",
"vsce": "^2.15.0",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@vscode/codicons": "^0.0.33",
"glob": "^10.2.7",
"lodash": "^4.17.21",
"readline-specific": "^1.0.4",
"shelljs": "^0.8.5"
},
"extensionDependencies": [
"lolow.gams"
]
}