You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,18 +48,29 @@ This will build and place the binaries under the `server` folder. Alternately yo
48
48
49
49
While developing the language server and the extension, you don't need to deploy the server every time to try out changes. Instead you can run the language server out of its Eclipse workspace:
50
50
51
+
### _Launch Extension - Remote Server_
52
+
51
53
- Open VSCode on the `vscode-java` folder
52
54
- In the debug viewlet, run the launch _Launch Extension - Remote Server_
53
55
- The extension will open a socket on port 3333 and will wait for the JDT language server to connect
54
56
- In Eclipse, run the JDT language server as an Eclipse application.
55
-
- Create a debug configuration of type _Eclipse Application_.
57
+
- Create a debug configuration of type _Eclipse Application_.
56
58
- in the main tab of the debug configuration set the product to `org.eclipse.jdt.ls.core.product`.
57
59
- in the Environment tab, define a variable `CLIENT_PORT` with value `3333`.
58
60
- if your workspace contains 'org.eclipse.jdt.ui', use the Plug-Ins tab in the debug configuration to exclude the plug-in. The presence of 'org.eclipse.jdt.ui' will cause the language server to hang.
61
+
- You can also use the `jdt.ls.remote.server` launch configuration.
62
+
59
63
- In the debug console of VSCode you can see if the connection was successful.
60
64
- When the server is running breakpoints can be reached and hot code replace can be used to make fixes without restarting the server.
61
65
- You can modify `launch.json` to use a different port:
62
-
- Modify `SERVER_PORT` to specify the port the JST LS server should connect to.
66
+
- Modify `SERVER_PORT` to specify the port the JDT LS server should connect to.
67
+
68
+
### _Launch Extension - JDTLS Client_
69
+
70
+
- start the `jdt.ls.socket-stream` launch configuration in Eclipse
71
+
- start the _Launch Extension - JDTLS Client_ in VS Code
72
+
- You can modify `launch.json` to use a different port:
73
+
- Modify `JDTLS_CLIENT_PORT` to specify the port VS Code should connect to.
0 commit comments