@vscjava/java-language-server 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/jdtls.js +16 -1
- package/package.json +9 -9
package/bin/jdtls.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -277,6 +277,21 @@ function main() {
|
|
|
277
277
|
// Handle parent process signals
|
|
278
278
|
process.on('SIGTERM', () => child.kill('SIGTERM'));
|
|
279
279
|
process.on('SIGINT', () => child.kill('SIGINT'));
|
|
280
|
+
|
|
281
|
+
// When stdin closes (Copilot CLI exits / LSP transport closed), kill Java process.
|
|
282
|
+
// This is the primary exit mechanism on Windows where SIGTERM/SIGINT don't work.
|
|
283
|
+
process.stdin.on('end', () => {
|
|
284
|
+
child.kill();
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
// Ensure Java process is cleaned up when Node exits for any reason
|
|
288
|
+
process.on('exit', () => {
|
|
289
|
+
try {
|
|
290
|
+
child.kill();
|
|
291
|
+
} catch {
|
|
292
|
+
// Child may already be dead
|
|
293
|
+
}
|
|
294
|
+
});
|
|
280
295
|
}
|
|
281
296
|
|
|
282
297
|
main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscjava/java-language-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Java Language Server (Eclipse JDT LS) for Copilot CLI",
|
|
5
5
|
"license": "EPL-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"postinstall": "node lib/postinstall.js"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@vscjava/java-ls-config-win32": "0.1.
|
|
25
|
-
"@vscjava/java-ls-config-linux": "0.1.
|
|
26
|
-
"@vscjava/java-ls-config-darwin": "0.1.
|
|
27
|
-
"@vscjava/java-ls-jre-win32-x64": "0.1.
|
|
28
|
-
"@vscjava/java-ls-jre-linux-x64": "0.1.
|
|
29
|
-
"@vscjava/java-ls-jre-linux-arm64": "0.1.
|
|
30
|
-
"@vscjava/java-ls-jre-darwin-arm64": "0.1.
|
|
31
|
-
"@vscjava/java-ls-jre-darwin-x64": "0.1.
|
|
24
|
+
"@vscjava/java-ls-config-win32": "0.1.1",
|
|
25
|
+
"@vscjava/java-ls-config-linux": "0.1.1",
|
|
26
|
+
"@vscjava/java-ls-config-darwin": "0.1.1",
|
|
27
|
+
"@vscjava/java-ls-jre-win32-x64": "0.1.1",
|
|
28
|
+
"@vscjava/java-ls-jre-linux-x64": "0.1.1",
|
|
29
|
+
"@vscjava/java-ls-jre-linux-arm64": "0.1.1",
|
|
30
|
+
"@vscjava/java-ls-jre-darwin-arm64": "0.1.1",
|
|
31
|
+
"@vscjava/java-ls-jre-darwin-x64": "0.1.1"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=16.0.0"
|