mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fixes #37: Debugging language servers without legacy protocol
This commit is contained in:
1
lsp-sample/.vscode/launch.json
vendored
1
lsp-sample/.vscode/launch.json
vendored
@ -26,7 +26,6 @@
|
||||
"outFiles": [
|
||||
"${workspaceRoot}/client/server/**/*.js"
|
||||
],
|
||||
"protocol": "legacy",
|
||||
"preLaunchTask": "watch:server"
|
||||
}
|
||||
]
|
||||
|
||||
@ -14,7 +14,7 @@ export function activate(context: ExtensionContext) {
|
||||
// The server is implemented in node
|
||||
let serverModule = context.asAbsolutePath(path.join('server', 'server.js'));
|
||||
// The debug options for the server
|
||||
let debugOptions = { execArgv: ["--nolazy", "--debug=6009"] };
|
||||
let debugOptions = { execArgv: ["--nolazy", "--inspect=6009"] };
|
||||
|
||||
// If the extension is launched in debug mode then the debug server options are used
|
||||
// Otherwise the run options are used
|
||||
|
||||
Reference in New Issue
Block a user