MartinBalin commented on code in PR #24:
URL: https://github.com/apache/netbeans-vscode/pull/24#discussion_r4186721641
##########
vscode/src/extension.ts:
##########
@@ -1317,16 +1326,21 @@ function doActivateWithJDK(promise:
Promise<NbLanguageClient>, specifiedJDK: str
server.listen(() => {
const address: any = server.address();
let extras : string[] = ["--modules",
"-J-XX:PerfMaxStringConstLength=10240"];
- if (isDarkColorTheme()) {
- extras.push('--laf', 'com.formdev.flatlaf.FlatDarkLaf');
- }
- if (isJavaSupportEnabled()) {
- extras.push('--direct-disable',
'org.netbeans.modules.nbcode.integration.java');
+ let ownArgs = process.env.netbeans_args;
+ if (!ownArgs) {
Review Comment:
**Extra arguments prevent the language server from starting.**
The documented command `npm run nbcode --
-J-Dnetbeans.extra.dirs=/path/to/extension` sets `netbeans_args`, which skips
both `--start-java-language-server` and `--start-java-debug-adapter-server`. VS
Code waits for a connection that NetBeans never initiates. Extra JVM arguments
should be appended while retaining the server startup arguments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists