Skip to content

Commit ac1d03e

Browse files
committed
Added support for #7740, #7815 and #7993
1 parent 23fea05 commit ac1d03e

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

BUILD.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ This configuration will enable you to debug both the extension’s TypeScript co
121121
```json
122122
"jdk.serverVmOptions": ["-J-Dnetbeans.logger.console=true"]
123123
```
124+
4. For further debugging you can set Log Level to FINEST by appending following argument to the array:
125+
```json
126+
"jdk.serverVmOptions": ["-J-Dnetbeans.logger.console=true", "-J-Dorg.netbeans.modules.java.lsp.server.lsptrace.level=FINEST"]
127+
```
124128

125129
Both options will enable logging from the NetBeans server in the VS Code Output Channel.
126130

vscode/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@
236236
"type": "boolean",
237237
"default": false,
238238
"description": "%jdk.configuration.disableProjectSearchLimit.description%"
239+
},
240+
"jdk.completion.warning.time": {
241+
"type": "integer",
242+
"default": 10000,
243+
"description": "%jdk.debugger.configuration.completion.warning.time.description%"
239244
}
240245
}
241246
},

vscode/package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"jdk.debugger.configuration.attach.processId.description": "Process Id of the debuggee",
6262
"jdk.debugger.configuration.attach.listen.description": "Listen for the debuggee to attach",
6363
"jdk.debugger.configuration.attach.timeout.description": "Timeout while waiting to attach",
64+
"jdk.debugger.configuration.completion.warning.time.description": "When code completion takes longer than this specified time (in milliseconds), there will be a warning produced (-1 to disable)",
6465
"jdk.initialConfigurations.launchJavaApp.name": "Launch Java App",
6566
"jdk.configurationSnippets.name": "Launch Java App",
6667
"jdk.configurationSnippets.label": "Java+: Launch Java Application",

vscode/src/commands/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const runDebug = async (noDebug: boolean, testRun: boolean, uri: any, methodName
6666
}
6767
debugConfig['testRun'] = testRun;
6868
const workspaceFolder = vscode.workspace.getWorkspaceFolder(docUri);
69-
if (project) {
69+
if (project || testRun) {
7070
debugConfig['projectFile'] = docUri.toString();
7171
debugConfig['project'] = true;
7272
} else {

0 commit comments

Comments
 (0)