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
+25-32Lines changed: 25 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,17 @@ This will build and place the binaries under the `server` folder. Alternately yo
87
87
$ cd ../vscode-java
88
88
$ ./node_modules/.bin/gulp download_server
89
89
```
90
-
### Setting up the JDT Language Server in Eclipse
90
+
### Setting up the JDT Language Server
91
+
Below are the details about how to set up the JDT Language Server in different IDEs. **Notice**: You only need set up it once in any of your preferred IDE.
91
92
92
-
4. In Eclipse, import a maven project:
93
+
### B-1) Setting up the JDT Language Server in VS Code
94
+
1) Please install [Eclipse PDE support](https://marketplace.visualstudio.com/items?itemName=yaozheng.vscode-pde) extension in your VS Code first. The PDE extension's home page provides more usage details about _Reload Target Platform_, _Run JUnit Plug-in Test_, _Run Eclipse Application_.
95
+
96
+
2) Open VS Code on the `eclipse.jdt.ls` folder. The PDE extension will work with Java extension together to automatically load the eclipse.jdt.ls project. Check the status of the language tools on the lower right corner. It should show ready (thumbs up) as the image below.
97
+

98
+
99
+
### B-2) Setting up the JDT Language Server in Eclipse
@@ -126,51 +134,36 @@ this will get rid of the errors.
126
134
127
135
## **C)** Run with a remote JDT language server
128
136
129
-
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:
130
-
137
+
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. Currently we provide two kinds of connection modes between the extension and the language server.
138
+
## **C-1)** The extension opens the connection first, and waits the language server to connect to it.
131
139
### a) _Launch Extension - Client Side_
132
140
133
141
1. Open VSCode on the `vscode-java` folder
134
142
135
-
2. In the debug viewlet, run the launch _Launch Extension - Remote Server_
143
+
2. In the debug viewlet, run the launch _Launch Extension - Remote Server_
3) in the Environment tab, define a variable `CLIENT_PORT` with value `3333`.
155
-
156
-

157
-
4) 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.
158
-
159
-
### c) _Launch Debug Server - Server Side_
160
-
161
-
- With the client side **(vscode-java) running**, you can start the remote server.
0 commit comments