jtulach commented on code in PR #24:
URL: https://github.com/apache/netbeans-vscode/pull/24#discussion_r4191880354
##########
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 JVM arguments should be appended while retaining the server startup
arguments.
- appending since acaba7e
- now the documented workflow works for [Enso VSCode
Extension](https://marketplace.visualstudio.com/items?itemName=Enso.enso4vscode):
```
$ cd /tmp/enso
/tmp/enso$ unzip enso4vscode-1.50.78.vsix
$ cd /netbeans-vscode/vscode
netbeans-vscode/vscode$ npm run nbcode --
-J-Dnetbeans.extra.dirs=/tmp/enso/extension/nbcode/enso4igv/
```
the `/tmp/enso/extension/nbcode/enso4igv/` contains _NetBeans cluster_ with
one module. That module gets loaded by the VSCode extension:
```
org.enso.tools.enso4igv [1.51 1.51-20260325 202603251503]
```
--
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