Skip to content

Commit

Permalink
Fix: Increment server debug port
Browse files Browse the repository at this point in the history
The bash-ide extension also uses port 6009 for debugging.
Increment the port to avoid conflicts.
  • Loading branch information
deribaucourt committed Dec 1, 2023
1 parent ece8e93 commit 4c59df3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"name": "Attach to Server",
"type": "node",
"request": "attach",
"port": 6009,
"port": 6010,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/client/server/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion client/src/language/languageClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const notifyFileRenameChanged = async (
export async function activateLanguageServer (context: ExtensionContext): Promise<LanguageClient> {
const serverModule = context.asAbsolutePath(path.join('server', 'server.js'))
// The debug options for the server
const debugOptions = { execArgv: ['--nolazy', '--inspect=6009'] }
// Use --inspect-brk instead of --inspect if you want to debug the server startup code
const debugOptions = { execArgv: ['--nolazy', '--inspect=localhost:6010'] }

// If the extension is launched in debug mode then the debug server options are used
// Otherwise the run options are used
Expand Down

0 comments on commit 4c59df3

Please sign in to comment.