diff options
Diffstat (limited to 'code/.vscode')
-rw-r--r-- | code/.vscode/launch.json | 40 | ||||
-rw-r--r-- | code/.vscode/settings.json | 9 | ||||
-rw-r--r-- | code/.vscode/tasks.json | 49 |
3 files changed, 51 insertions, 47 deletions
diff --git a/code/.vscode/launch.json b/code/.vscode/launch.json index a5dd523df..c174db304 100644 --- a/code/.vscode/launch.json +++ b/code/.vscode/launch.json | |||
@@ -1,22 +1,36 @@ | |||
1 | // A launch configuration that compiles the extension and then opens it inside a new window | ||
2 | // Use IntelliSense to learn about possible attributes. | ||
3 | // Hover to view descriptions of existing attributes. | ||
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
1 | { | 5 | { |
2 | // Use IntelliSense to learn about possible attributes. | 6 | "version": "0.2.0", |
3 | // Hover to view descriptions of existing attributes. | ||
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
5 | "version": "0.2.0", | ||
6 | "configurations": [ | 7 | "configurations": [ |
7 | { | 8 | { |
8 | "name": "Launch Extension", | 9 | "name": "Extension", |
9 | "type": "extensionHost", | 10 | "type": "extensionHost", |
10 | "request": "launch", | 11 | "request": "launch", |
11 | "runtimeExecutable": "${execPath}", | 12 | "runtimeExecutable": "${execPath}", |
12 | "args": ["--extensionDevelopmentPath='./'"], | 13 | "args": [ |
13 | "env": { | 14 | "--extensionDevelopmentPath=${workspaceFolder}" |
14 | "RUST_LOG": "m=trace" | 15 | ], |
15 | }, | 16 | "outFiles": [ |
16 | "stopOnEntry": false, | 17 | "${workspaceFolder}/out/**/*.js" |
17 | "sourceMaps": true, | 18 | ], |
18 | "outFiles": [ "./out/src/**/*.js" ], | 19 | "preLaunchTask": "npm: watch" |
19 | "preLaunchTask": "npm" | ||
20 | }, | 20 | }, |
21 | { | ||
22 | "name": "Extension Tests", | ||
23 | "type": "extensionHost", | ||
24 | "request": "launch", | ||
25 | "runtimeExecutable": "${execPath}", | ||
26 | "args": [ | ||
27 | "--extensionDevelopmentPath=${workspaceFolder}", | ||
28 | "--extensionTestsPath=${workspaceFolder}/out/test" | ||
29 | ], | ||
30 | "outFiles": [ | ||
31 | "${workspaceFolder}/out/test/**/*.js" | ||
32 | ], | ||
33 | "preLaunchTask": "npm: watch" | ||
34 | } | ||
21 | ] | 35 | ] |
22 | } | 36 | } |
diff --git a/code/.vscode/settings.json b/code/.vscode/settings.json index 2910204e8..30bf8c2d3 100644 --- a/code/.vscode/settings.json +++ b/code/.vscode/settings.json | |||
@@ -1,10 +1,11 @@ | |||
1 | // Place your settings in this file to overwrite default and user settings. | 1 | // Place your settings in this file to overwrite default and user settings. |
2 | { | 2 | { |
3 | "files.exclude": { | 3 | "files.exclude": { |
4 | "out": true | 4 | "out": false // set this to true to hide the "out" folder with the compiled JS files |
5 | // "node_modules": true | ||
6 | }, | 5 | }, |
7 | "search.exclude": { | 6 | "search.exclude": { |
8 | "out": true // set this to false to include "out" folder in search results | 7 | "out": true // set this to false to include "out" folder in search results |
9 | } | 8 | }, |
10 | } | 9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts |
10 | "typescript.tsc.autoDetect": "off" | ||
11 | } \ No newline at end of file | ||
diff --git a/code/.vscode/tasks.json b/code/.vscode/tasks.json index e1cfa4deb..604e38f5a 100644 --- a/code/.vscode/tasks.json +++ b/code/.vscode/tasks.json | |||
@@ -1,31 +1,20 @@ | |||
1 | 1 | // See https://go.microsoft.com/fwlink/?LinkId=733558 | |
2 | // Available variables which can be used inside of strings. | 2 | // for the documentation about the tasks.json format |
3 | // ${workspaceRoot}: the root folder of the team | ||
4 | // ${file}: the current opened file | ||
5 | // ${fileBasename}: the current opened file's basename | ||
6 | // ${fileDirname}: the current opened file's dirname | ||
7 | // ${fileExtname}: the current opened file's extension | ||
8 | // ${cwd}: the current working directory of the spawned process | ||
9 | |||
10 | // A task runner that calls a custom npm script that compiles the extension. | ||
11 | { | 3 | { |
12 | "version": "0.2.0", | 4 | "version": "2.0.0", |
13 | 5 | "tasks": [ | |
14 | // we want to run npm | 6 | { |
15 | "command": "npm", | 7 | "type": "npm", |
16 | 8 | "script": "watch", | |
17 | // the command is a shell script | 9 | "problemMatcher": "$tsc-watch", |
18 | "isShellCommand": true, | 10 | "isBackground": true, |
19 | 11 | "presentation": { | |
20 | // show the output window only if unrecognized errors occur. | 12 | "reveal": "never" |
21 | "showOutput": "silent", | 13 | }, |
22 | 14 | "group": { | |
23 | // we run the custom script "compile" as defined in package.json | 15 | "kind": "build", |
24 | "args": ["run", "compile",], | 16 | "isDefault": true |
25 | 17 | } | |
26 | // The tsc compiler is started in watching mode | 18 | } |
27 | "isBackground": true, | 19 | ] |
28 | 20 | } \ No newline at end of file | |
29 | // use the standard tsc in watch mode problem matcher to find compile problems in the output. | ||
30 | "problemMatcher": "$tsc-watch" | ||
31 | } | ||