mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Trim down launch configurations
This commit is contained in:
parent
b63fbae482
commit
7192ee842d
5 changed files with 15 additions and 71 deletions
16
.vscode/launch.json
vendored
16
.vscode/launch.json
vendored
|
@ -5,18 +5,22 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Debug Extension",
|
"name": "Run Extension",
|
||||||
"type": "extensionHost",
|
"type": "extensionHost",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeExecutable": "${execPath}",
|
"runtimeExecutable": "${execPath}",
|
||||||
"args": [
|
"args": [
|
||||||
"--extensionDevelopmentPath=${workspaceFolder}/editors/code",
|
"--disable-extensions",
|
||||||
"--disable-extensions"
|
"--user-data-dir",
|
||||||
|
"${workspaceFolder}/target/vscode",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/editors/code"
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/ra_lsp_server"
|
"__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/ra_lsp_server"
|
||||||
},
|
},
|
||||||
"outFiles": ["${workspaceFolder}/editors/code/bundle/**/*.js"],
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/editors/code/bundle/**/*.js"
|
||||||
|
],
|
||||||
"preLaunchTask": "Build All"
|
"preLaunchTask": "Build All"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -25,7 +29,9 @@
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"program": "${workspaceFolder}/target/debug/ra_lsp_server",
|
"program": "${workspaceFolder}/target/debug/ra_lsp_server",
|
||||||
"pid": "${command:pickMyProcess}",
|
"pid": "${command:pickMyProcess}",
|
||||||
"sourceLanguages": ["rust"]
|
"sourceLanguages": [
|
||||||
|
"rust"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
8
.vscode/tasks.json
vendored
8
.vscode/tasks.json
vendored
|
@ -4,9 +4,9 @@
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
|
"label": "Build Extension",
|
||||||
"type": "npm",
|
"type": "npm",
|
||||||
"script": "compile",
|
"script": "compile",
|
||||||
"label": "Build Extension",
|
|
||||||
"problemMatcher": {
|
"problemMatcher": {
|
||||||
"owner": "typescript",
|
"owner": "typescript",
|
||||||
"pattern": "$tsc",
|
"pattern": "$tsc",
|
||||||
|
@ -18,9 +18,9 @@
|
||||||
"path": "editors/code/"
|
"path": "editors/code/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Build Lsp",
|
"label": "Build Server",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cargo build",
|
"command": "cargo build --package ra_lsp_server",
|
||||||
"problemMatcher": "$rustc"
|
"problemMatcher": "$rustc"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
"group": "build",
|
"group": "build",
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"Build Extension",
|
"Build Extension",
|
||||||
"Build Lsp"
|
"Build Server"
|
||||||
],
|
],
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
|
|
31
editors/code/.vscode/launch.json
vendored
31
editors/code/.vscode/launch.json
vendored
|
@ -1,31 +0,0 @@
|
||||||
// A launch configuration that compiles the extension and then opens it inside a new window
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
{
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "Extension",
|
|
||||||
"type": "extensionHost",
|
|
||||||
"request": "launch",
|
|
||||||
"runtimeExecutable": "${execPath}",
|
|
||||||
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
|
|
||||||
"outFiles": ["${workspaceFolder}/out/**/*.js"],
|
|
||||||
"preLaunchTask": "npm: watch"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Extension Tests",
|
|
||||||
"type": "extensionHost",
|
|
||||||
"request": "launch",
|
|
||||||
"runtimeExecutable": "${execPath}",
|
|
||||||
"args": [
|
|
||||||
"${workspaceFolder}/src/test/",
|
|
||||||
"--extensionDevelopmentPath=${workspaceFolder}",
|
|
||||||
"--extensionTestsPath=${workspaceFolder}/out/test"
|
|
||||||
],
|
|
||||||
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
|
|
||||||
"preLaunchTask": "npm: watch"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
11
editors/code/.vscode/settings.json
vendored
11
editors/code/.vscode/settings.json
vendored
|
@ -1,11 +0,0 @@
|
||||||
// Place your settings in this file to overwrite default and user settings.
|
|
||||||
{
|
|
||||||
"files.exclude": {
|
|
||||||
"out": false // set this to true to hide the "out" folder with the compiled JS files
|
|
||||||
},
|
|
||||||
"search.exclude": {
|
|
||||||
"out": true // set this to false to include "out" folder in search results
|
|
||||||
},
|
|
||||||
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
|
|
||||||
"typescript.tsc.autoDetect": "off"
|
|
||||||
}
|
|
20
editors/code/.vscode/tasks.json
vendored
20
editors/code/.vscode/tasks.json
vendored
|
@ -1,20 +0,0 @@
|
||||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
||||||
// for the documentation about the tasks.json format
|
|
||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"type": "npm",
|
|
||||||
"script": "watch",
|
|
||||||
"problemMatcher": "$tsc-watch",
|
|
||||||
"isBackground": true,
|
|
||||||
"presentation": {
|
|
||||||
"reveal": "never"
|
|
||||||
},
|
|
||||||
"group": {
|
|
||||||
"kind": "build",
|
|
||||||
"isDefault": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in a new issue