mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Added short description and disable-extensions
This commit is contained in:
parent
a19f52f9ae
commit
b446384956
17
.vscode/launch.json
vendored
17
.vscode/launch.json
vendored
@ -2,14 +2,21 @@
|
|||||||
// Use IntelliSense to learn about possible attributes.
|
// Use IntelliSense to learn about possible attributes.
|
||||||
// Hover to view descriptions of existing attributes.
|
// Hover to view descriptions of existing attributes.
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
|
||||||
|
// NOTE: --disable-extensions
|
||||||
|
// Disable all installed extensions for increas performance of playground
|
||||||
|
// and prevent potential problem and collision with developer's extansion
|
||||||
|
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
|
// Used for testing extansion that located in extensionDevelopmentPath
|
||||||
"name": "Run Extension",
|
"name": "Run Extension",
|
||||||
"type": "extensionHost",
|
"type": "extensionHost",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeExecutable": "${execPath}",
|
"runtimeExecutable": "${execPath}",
|
||||||
"args": [
|
"args": [
|
||||||
|
"--disable-extensions",
|
||||||
"--extensionDevelopmentPath=${workspaceFolder}/editors/code"
|
"--extensionDevelopmentPath=${workspaceFolder}/editors/code"
|
||||||
],
|
],
|
||||||
"outFiles": [
|
"outFiles": [
|
||||||
@ -18,11 +25,13 @@
|
|||||||
"preLaunchTask": "Build Extension"
|
"preLaunchTask": "Build Extension"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
// Used for testing extansion with local lsp server located in __RA_LSP_SERVER_DEBUG
|
||||||
"name": "Run Extension (Dev Server)",
|
"name": "Run Extension (Dev Server)",
|
||||||
"type": "extensionHost",
|
"type": "extensionHost",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeExecutable": "${execPath}",
|
"runtimeExecutable": "${execPath}",
|
||||||
"args": [
|
"args": [
|
||||||
|
"--disable-extensions",
|
||||||
"--extensionDevelopmentPath=${workspaceFolder}/editors/code"
|
"--extensionDevelopmentPath=${workspaceFolder}/editors/code"
|
||||||
],
|
],
|
||||||
"outFiles": [
|
"outFiles": [
|
||||||
@ -34,7 +43,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Debug Lsp Server",
|
// Attaching LLDB by Pid to lsp server
|
||||||
|
// NOTE: it requires root permission, also for better debugging
|
||||||
|
// if you want more than just assembler representation for ex:
|
||||||
|
// walk in file, you need debugging symbols.
|
||||||
|
// Project can build with it, for set - chane inside
|
||||||
|
// ./Cargo.toml field debug
|
||||||
|
"name": "Attach To Server",
|
||||||
"type": "lldb",
|
"type": "lldb",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"program": "${workspaceFolder}/target/debug/ra_lsp_server",
|
"program": "${workspaceFolder}/target/debug/ra_lsp_server",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user