Skip to content

Commit 37687d0

Browse files
For internal debug, use the JDTLS_SERVER_PORT environment variable instead of SERVER_PORT (#3259)
1 parent 8eaabf2 commit 37687d0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"sourceMaps": true,
3333
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
3434
"env": {
35-
"SERVER_PORT": "3333",
35+
"JDTLS_SERVER_PORT": "3333",
3636
"DEBUG_VSCODE_JAVA":"true",
3737
"VSCODE_REDHAT_TELEMETRY_DEBUG":"true"
3838
},

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ While developing the language server and the extension, you don't need to deploy
166166
- In the debug console of VSCode you can see if the connection was successful.
167167
- When the server is running breakpoints can be reached and hot code replace can be used to make fixes without restarting the server.
168168
- You can modify `launch.json` to use a different port:
169-
- Modify `SERVER_PORT` to specify the port the JDT LS server should connect to.
169+
- Modify `JDTLS_SERVER_PORT` to specify the port the JDT LS server should connect to.
170170

171171
## C-2) The language server opens the connection first, and waits the extension to connect to it.
172172
- Start the language server via `jdt.ls.socket-stream` launch configuration in VS Code or Eclipse

src/standardLanguageClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class StandardLanguageClient {
8686
});
8787

8888
let serverOptions;
89-
const port = process.env['SERVER_PORT'];
89+
const port = process.env['JDTLS_SERVER_PORT'];
9090
if (!port) {
9191
const lsPort = process.env['JDTLS_CLIENT_PORT'];
9292
if (!lsPort) {

0 commit comments

Comments
 (0)