-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathpackage.json
More file actions
377 lines (377 loc) · 11.1 KB
/
package.json
File metadata and controls
377 lines (377 loc) · 11.1 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
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
{
"name": "language-matlab",
"displayName": "MATLAB",
"description": "Edit MATLAB code with syntax highlighting, linting, navigation support, and more",
"icon": "public/L-Membrane_RGB_128x128.png",
"license": "MIT",
"version": "1.3.10",
"engines": {
"vscode": "^1.67.0"
},
"publisher": "MathWorks",
"author": {
"name": "The MathWorks, Inc."
},
"repository": {
"url": "https://github.com/mathworks/MATLAB-extension-for-vscode"
},
"categories": [
"Programming Languages",
"Snippets",
"Debuggers"
],
"activationEvents": [
"onDebugResolve:matlab",
"onDebugDynamicConfigurations:matlab",
"onLanguage:matlab",
"onTerminalProfile:matlab.terminal-profile"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "matlab.changeMatlabConnection",
"title": "MATLAB: Change MATLAB Connection"
},
{
"command": "matlab.runFile",
"title": "MATLAB: Run File",
"icon": "$(play)",
"when": "!matlab.isDebugging"
},
{
"command": "matlab.runSection",
"title": "MATLAB: Run Current Section",
"icon": "$(play)",
"when": "!matlab.isDebugging"
},
{
"command": "matlab.runSelection",
"title": "MATLAB: Run Current Selection",
"icon": "$(play)",
"when": "!matlab.isDebugging"
},
{
"command": "matlab.openCommandWindow",
"title": "MATLAB: Open Command Window",
"icon": "$(output)"
},
{
"command": "matlab.interrupt",
"title": "MATLAB: Interrupt"
},
{
"command": "matlab.addFolderToPath",
"title": "Selected Folder"
},
{
"command": "matlab.addFolderAndSubfoldersToPath",
"title": "Selected Folder and Subfolders"
},
{
"command": "matlab.changeDirectory",
"title": "MATLAB: Change current directory"
},
{
"command": "matlab.enableSignIn",
"title": "MATLAB: Manage Sign In Options"
},
{
"command": "matlab.openFile",
"title": "MATLAB: Open File"
},
{
"command": "matlab.resetDeprecationPopups",
"title": "MATLAB: Reset Deprecation Warning Popups"
},
{
"command": "matlab.showLanguageServerOutput",
"title": "MATLAB: Show Language Server Output"
}
],
"keybindings": [
{
"command": "matlab.runFile",
"key": "f5",
"when": "editorTextFocus && editorLangId == matlab && !findInputFocussed && !replaceInputFocussed && resourceScheme != 'untitled' && !matlab.isDebugging"
},
{
"command": "matlab.runSection",
"key": "Ctrl+enter",
"when": "editorTextFocus && editorLangId == matlab && !findInputFocussed && !replaceInputFocussed && !matlab.isDebugging"
},
{
"command": "matlab.runSelection",
"key": "shift+enter",
"when": "editorTextFocus && editorHasSelection && !editorHasMultipleSelections && editorLangId == matlab && !findInputFocussed && !replaceInputFocussed && !matlab.isDebugging"
},
{
"command": "matlab.interrupt",
"key": "Ctrl+C",
"when": "((editorTextFocus && !editorHasSelection && editorLangId == matlab) || (terminalFocus && matlab.isActiveTerminal && !matlab.terminalHasSelection && !terminalTextSelectedInFocused))"
}
],
"breakpoints": [
{
"language": "matlab"
}
],
"debuggers": [
{
"type": "matlab",
"languages": [
"matlab"
],
"label": "MATLAB",
"initialConfigurations": [
{
"type": "matlab",
"name": "Debug MATLAB"
}
]
}
],
"menus": {
"commandPalette": [
{
"command": "matlab.addFolderToPath",
"when": "false"
},
{
"command": "matlab.addFolderAndSubfoldersToPath",
"when": "false"
},
{
"command": "matlab.changeDirectory",
"when": "false"
}
],
"editor/title/run": [
{
"command": "matlab.runFile",
"when": "editorLangId == matlab && resourceScheme != 'untitled' && !matlab.isDebugging",
"group": "1_run"
},
{
"command": "matlab.runSection",
"when": "editorLangId == matlab && !matlab.isDebugging",
"group": "2_run"
},
{
"command": "matlab.runSelection",
"when": "editorLangId == matlab && editorHasSelection && !editorHasMultipleSelections && !matlab.isDebugging",
"group": "3_run"
}
],
"editor/context": [
{
"command": "matlab.runFile",
"when": "editorLangId == matlab && resourceScheme != 'untitled' && !matlab.isDebugging",
"group": "1_run"
},
{
"command": "matlab.runSection",
"when": "editorLangId == matlab && !matlab.isDebugging",
"group": "2_run"
},
{
"command": "matlab.runSelection",
"when": "editorLangId == matlab && editorHasSelection && !editorHasMultipleSelections && !matlab.isDebugging",
"group": "3_run"
}
],
"explorer/context": [
{
"submenu": "matlab.addPath",
"when": "explorerResourceIsFolder"
},
{
"command": "matlab.changeDirectory",
"when": "explorerResourceIsFolder"
},
{
"command": "matlab.openFile",
"when": "!explorerResourceIsFolder",
"group": "files"
}
],
"matlab.addPath": [
{
"command": "matlab.addFolderToPath",
"when": "explorerResourceIsFolder"
},
{
"command": "matlab.addFolderAndSubfoldersToPath",
"when": "explorerResourceIsFolder"
}
]
},
"submenus": [
{
"id": "matlab.addPath",
"label": "MATLAB: Add to Path"
}
],
"configuration": {
"title": "MATLAB",
"properties": {
"MATLAB.installPath": {
"type": "string",
"markdownDescription": "The full path to the top-level directory of the MATLAB installation you want to use with this extension. You can determine the full path to your MATLAB installation using the `matlabroot` command in MATLAB. For more information, refer to the [README](https://github.com/mathworks/MATLAB-extension-for-vscode/blob/main/README.md). This setting can be specified for both the user and workspace setting scopes using the User and Workspace tabs above.",
"scope": "machine-overridable"
},
"MATLAB.matlabConnectionTiming": {
"type": "string",
"default": "onStart",
"description": "Choose when this extension starts MATLAB in the background. Some functionality will be unavailable without MATLAB running in the background.",
"enum": [
"onStart",
"onDemand",
"never"
],
"enumDescriptions": [
"Start MATLAB as soon as a MATLAB code file is opened",
"Start MATLAB when needed for a given action",
"Never start MATLAB"
],
"scope": "window"
},
"MATLAB.indexWorkspace": {
"type": "boolean",
"default": true,
"description": "Automatically index all MATLAB code files (.m) in the current workspace.",
"scope": "window"
},
"MATLAB.startDebuggerAutomatically": {
"type": "boolean",
"default": false,
"markdownDescription": "Automatically start the Visual Studio Code debugger when MATLAB reaches a breakpoint.",
"scope": "window"
},
"MATLAB.telemetry": {
"type": "boolean",
"default": true,
"markdownDescription": "Help improve this extension by sending user experience information to MathWorks. For more information, see the [MathWorks Privacy Policy](https://www.mathworks.com/company/aboutus/policies_statements.html).",
"scope": "window",
"tags": [
"telemetry",
"usesOnlineServices"
]
},
"MATLAB.signIn": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable this option to present Sign In Options for unactivated MATLAB installations.",
"scope": "machine"
},
"MATLAB.showFeatureNotAvailableError": {
"type": "boolean",
"default": true,
"description": "Display an error when a feature requires MATLAB and MATLAB is unable to start.",
"scope": "window"
},
"MATLAB.maxFileSizeForAnalysis": {
"type": "number",
"default": 0,
"markdownDescription": "The maximum number of characters a file can contain for features such as linting, code navigation, and symbol renaming to be enabled. Use `0` for no limit.",
"scope": "window"
},
"MATLAB.prewarmGraphics": {
"type": "boolean",
"default": true,
"description": "Prewarm graphics at MATLAB startup to improve performance of first-time graphics rendering.",
"scope": "window"
},
"MATLAB.defaultEditor": {
"type": "boolean",
"default": true,
"markdownDescription": "Use Visual Studio Code instead of the MATLAB Editor to open and edit files using the `open` and `edit` commands. Certain file types always open in MATLAB by default — for example, live scripts saved in the binary Live Code file format (.mlx) and MATLAB app files (.mlapp).",
"scope": "window"
}
}
},
"languages": [
{
"id": "matlab",
"aliases": [
"MATLAB",
"matlab"
],
"extensions": [
".m"
],
"configuration": "./language-configuration.json",
"icon": {
"light": "./public/fileIcon_24x24.png",
"dark": "./public/fileIcon_24x24.png"
}
}
],
"grammars": [
{
"language": "matlab",
"scopeName": "source.matlab",
"path": "./syntaxes/Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage"
}
],
"snippets": [
{
"language": "matlab",
"path": "./snippets/matlab.json"
}
],
"terminal": {
"profiles": [
{
"title": "MATLAB",
"id": "matlab.terminal-profile"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile && cd server && npm prune --production && cd ..",
"compile": "tsc -p ./ && cd server && npm run compile && cd ..",
"watch": "tsc -watch -p ./ && cd server && npm run watch && cd ..",
"test-setup": "npm run compile && npm run lint && npm run copy-test-files && npm run copy-config-files",
"copy-test-files": "cd src && copyfiles ./test/test-files/**/*.m ./../out/ && cd ..",
"copy-config-files": "cd src && copyfiles ./test/tools/config/*.* ./../out/ -all && cd ..",
"lint": "eslint src --ext ts",
"lint:fix": "eslint src --ext ts --fix",
"test-smoke": "npm run test-setup && node ./out/test/smoke/runTest.js",
"test-ui": "npm run test-setup && node ./out/test/ui/runTest.js",
"test-smoke:fast": "node ./out/test/smoke/runTest.js",
"test-ui:fast": "node ./out/test/ui/runTest.js",
"test": "npm run test-setup && npm run test:fast",
"test:fast": "npm run test-smoke:fast && npm run test-ui:fast",
"project-install": "node ./build/projectInstall.js",
"project-install-clean": "node ./build/projectInstall.js --clean",
"package": "vsce package"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^9.1.1",
"@types/node": "^18.19.50",
"@types/node-fetch": "^2.6.2",
"@types/vscode": "^1.67.0",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^2.19.0",
"copyfiles": "^2.4.1",
"eslint": "^8.23.0",
"eslint-config-standard-with-typescript": "^22.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.1",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"typescript": "^5.0.4",
"vscode-extension-tester": "8.14.1"
},
"dependencies": {
"@vscode/debugadapter": "^1.56.0",
"node-fetch": "^2.6.6",
"vscode-languageclient": "^8.0.2"
}
}