aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-29 23:15:39 +0000
committerAleksey Kladov <[email protected]>2019-12-29 23:16:11 +0000
commit7192ee842d05611f6fb903810d6ef3a94f63b993 (patch)
treef1a62a1500a3d7b35406aac0c0da2c46dcc4785b
parentb63fbae482f888f8be45c01b1dd0e8951d5d5116 (diff)
Trim down launch configurations
-rw-r--r--.vscode/launch.json16
-rw-r--r--.vscode/tasks.json8
-rw-r--r--editors/code/.vscode/launch.json31
-rw-r--r--editors/code/.vscode/settings.json11
-rw-r--r--editors/code/.vscode/tasks.json20
5 files changed, 15 insertions, 71 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 1a8de4854..442ebf6dd 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -5,18 +5,22 @@
5 "version": "0.2.0", 5 "version": "0.2.0",
6 "configurations": [ 6 "configurations": [
7 { 7 {
8 "name": "Debug Extension", 8 "name": "Run Extension",
9 "type": "extensionHost", 9 "type": "extensionHost",
10 "request": "launch", 10 "request": "launch",
11 "runtimeExecutable": "${execPath}", 11 "runtimeExecutable": "${execPath}",
12 "args": [ 12 "args": [
13 "--extensionDevelopmentPath=${workspaceFolder}/editors/code", 13 "--disable-extensions",
14 "--disable-extensions" 14 "--user-data-dir",
15 "${workspaceFolder}/target/vscode",
16 "--extensionDevelopmentPath=${workspaceFolder}/editors/code"
15 ], 17 ],
16 "env": { 18 "env": {
17 "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/ra_lsp_server" 19 "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/ra_lsp_server"
18 }, 20 },
19 "outFiles": ["${workspaceFolder}/editors/code/bundle/**/*.js"], 21 "outFiles": [
22 "${workspaceFolder}/editors/code/bundle/**/*.js"
23 ],
20 "preLaunchTask": "Build All" 24 "preLaunchTask": "Build All"
21 }, 25 },
22 { 26 {
@@ -25,7 +29,9 @@
25 "request": "attach", 29 "request": "attach",
26 "program": "${workspaceFolder}/target/debug/ra_lsp_server", 30 "program": "${workspaceFolder}/target/debug/ra_lsp_server",
27 "pid": "${command:pickMyProcess}", 31 "pid": "${command:pickMyProcess}",
28 "sourceLanguages": ["rust"] 32 "sourceLanguages": [
33 "rust"
34 ]
29 }, 35 },
30 ] 36 ]
31} 37}
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index b483f4375..79c24b86f 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -4,9 +4,9 @@
4 "version": "2.0.0", 4 "version": "2.0.0",
5 "tasks": [ 5 "tasks": [
6 { 6 {
7 "label": "Build Extension",
7 "type": "npm", 8 "type": "npm",
8 "script": "compile", 9 "script": "compile",
9 "label": "Build Extension",
10 "problemMatcher": { 10 "problemMatcher": {
11 "owner": "typescript", 11 "owner": "typescript",
12 "pattern": "$tsc", 12 "pattern": "$tsc",
@@ -18,9 +18,9 @@
18 "path": "editors/code/" 18 "path": "editors/code/"
19 }, 19 },
20 { 20 {
21 "label": "Build Lsp", 21 "label": "Build Server",
22 "type": "shell", 22 "type": "shell",
23 "command": "cargo build", 23 "command": "cargo build --package ra_lsp_server",
24 "problemMatcher": "$rustc" 24 "problemMatcher": "$rustc"
25 }, 25 },
26 { 26 {
@@ -28,7 +28,7 @@
28 "group": "build", 28 "group": "build",
29 "dependsOn": [ 29 "dependsOn": [
30 "Build Extension", 30 "Build Extension",
31 "Build Lsp" 31 "Build Server"
32 ], 32 ],
33 "problemMatcher": [] 33 "problemMatcher": []
34 }, 34 },
diff --git a/editors/code/.vscode/launch.json b/editors/code/.vscode/launch.json
deleted file mode 100644
index c3578f476..000000000
--- a/editors/code/.vscode/launch.json
+++ /dev/null
@@ -1,31 +0,0 @@
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
5{
6 "version": "0.2.0",
7 "configurations": [
8 {
9 "name": "Extension",
10 "type": "extensionHost",
11 "request": "launch",
12 "runtimeExecutable": "${execPath}",
13 "args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14 "outFiles": ["${workspaceFolder}/out/**/*.js"],
15 "preLaunchTask": "npm: watch"
16 },
17 {
18 "name": "Extension Tests",
19 "type": "extensionHost",
20 "request": "launch",
21 "runtimeExecutable": "${execPath}",
22 "args": [
23 "${workspaceFolder}/src/test/",
24 "--extensionDevelopmentPath=${workspaceFolder}",
25 "--extensionTestsPath=${workspaceFolder}/out/test"
26 ],
27 "outFiles": ["${workspaceFolder}/out/test/**/*.js"],
28 "preLaunchTask": "npm: watch"
29 }
30 ]
31}
diff --git a/editors/code/.vscode/settings.json b/editors/code/.vscode/settings.json
deleted file mode 100644
index fa0a10487..000000000
--- a/editors/code/.vscode/settings.json
+++ /dev/null
@@ -1,11 +0,0 @@
1// Place your settings in this file to overwrite default and user settings.
2{
3 "files.exclude": {
4 "out": false // set this to true to hide the "out" folder with the compiled JS files
5 },
6 "search.exclude": {
7 "out": true // set this to false to include "out" folder in search results
8 },
9 // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 "typescript.tsc.autoDetect": "off"
11}
diff --git a/editors/code/.vscode/tasks.json b/editors/code/.vscode/tasks.json
deleted file mode 100644
index 5deb2bccd..000000000
--- a/editors/code/.vscode/tasks.json
+++ /dev/null
@@ -1,20 +0,0 @@
1// See https://go.microsoft.com/fwlink/?LinkId=733558
2// for the documentation about the tasks.json format
3{
4 "version": "2.0.0",
5 "tasks": [
6 {
7 "type": "npm",
8 "script": "watch",
9 "problemMatcher": "$tsc-watch",
10 "isBackground": true,
11 "presentation": {
12 "reveal": "never"
13 },
14 "group": {
15 "kind": "build",
16 "isDefault": true
17 }
18 }
19 ]
20}