Fixes #37: Debugging language servers without legacy protocol

This commit is contained in:
Dirk Baeumer
2017-11-09 08:51:24 +01:00
parent 8fb95dc0f7
commit e871f00999
2 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,6 @@
"outFiles": [
"${workspaceRoot}/client/server/**/*.js"
],
"protocol": "legacy",
"preLaunchTask": "watch:server"
}
]

View File

@ -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