aboutsummaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorMikhail Rakhmanov <[email protected]>2020-06-03 19:10:54 +0100
committerMikhail Rakhmanov <[email protected]>2020-06-03 19:10:54 +0100
commiteefa10bc6bff3624ddd0bbb6bc89d8beb4bed186 (patch)
tree15c38c2993c52f4065d338090ca9185cc1fcd3da /.vscode
parenta9d567584857b1be4ca8eaa5ef2c7d85f7b2845e (diff)
parent794f6da821c5d6e2490b996baffe162e4753262d (diff)
Merge branch 'master' into assists_extract_enum
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json34
-rw-r--r--.vscode/tasks.json12
2 files changed, 46 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 6a2fff906..8ca27d878 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -71,6 +71,28 @@
71 } 71 }
72 }, 72 },
73 { 73 {
74 // Used for testing the extension with a local build of the LSP server (in `target/release`)
75 // with all other extendions loaded.
76 "name": "Run With Extensions",
77 "type": "extensionHost",
78 "request": "launch",
79 "runtimeExecutable": "${execPath}",
80 "args": [
81 "--disable-extension", "matklad.rust-analyzer",
82 "--extensionDevelopmentPath=${workspaceFolder}/editors/code"
83 ],
84 "outFiles": [
85 "${workspaceFolder}/editors/code/out/**/*.js"
86 ],
87 "preLaunchTask": "Build Server (Release) and Extension",
88 "skipFiles": [
89 "<node_internals>/**/*.js"
90 ],
91 "env": {
92 "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/release/rust-analyzer"
93 }
94 },
95 {
74 // Used to attach LLDB to a running LSP server. 96 // Used to attach LLDB to a running LSP server.
75 // NOTE: Might require root permissions. For this run: 97 // NOTE: Might require root permissions. For this run:
76 // 98 //
@@ -87,5 +109,17 @@
87 "rust" 109 "rust"
88 ] 110 ]
89 }, 111 },
112 {
113 "name": "Run Unit Tests",
114 "type": "extensionHost",
115 "request": "launch",
116 "runtimeExecutable": "${execPath}",
117 "args": [
118 "--extensionDevelopmentPath=${workspaceFolder}/editors/code",
119 "--extensionTestsPath=${workspaceFolder}/editors/code/out/tests/unit" ],
120 "sourceMaps": true,
121 "outFiles": [ "${workspaceFolder}/editors/code/out/tests/unit/**/*.js" ],
122 "preLaunchTask": "Pretest"
123 }
90 ] 124 ]
91} 125}
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 0969ce89a..a25dff19e 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -40,6 +40,18 @@
40 "command": "cargo build --release --package rust-analyzer", 40 "command": "cargo build --release --package rust-analyzer",
41 "problemMatcher": "$rustc" 41 "problemMatcher": "$rustc"
42 }, 42 },
43 {
44 "label": "Pretest",
45 "group": "build",
46 "isBackground": false,
47 "type": "npm",
48 "script": "pretest",
49 "path": "editors/code/",
50 "problemMatcher": {
51 "base": "$tsc",
52 "fileLocation": ["relative", "${workspaceFolder}/editors/code/"]
53 }
54 },
43 55
44 { 56 {
45 "label": "Build Server and Extension", 57 "label": "Build Server and Extension",