This is an automated email from the ASF dual-hosted git repository. dbalek pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 59d85ae VSCode: Cannot run tests via Test Explorer when no file is opened in editor. (#3457) 59d85ae is described below commit 59d85aefb41842b9ddcae9bf9351be5eb8bc285f Author: Dusan Balek <dusan.ba...@oracle.com> AuthorDate: Mon Jan 17 11:42:28 2022 +0100 VSCode: Cannot run tests via Test Explorer when no file is opened in editor. (#3457) --- java/java.lsp.server/vscode/src/extension.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/java.lsp.server/vscode/src/extension.ts b/java/java.lsp.server/vscode/src/extension.ts index 9594f53..d3bd89c 100644 --- a/java/java.lsp.server/vscode/src/extension.ts +++ b/java/java.lsp.server/vscode/src/extension.ts @@ -1157,7 +1157,9 @@ class NetBeansConfigurationResolver implements vscode.DebugConfigurationProvider if (!config.request) { config.request = 'launch'; } - config.file = '${file}'; + if (vscode.window.activeTextEditor) { + config.file = '${file}'; + } if (!config.classPaths) { config.classPaths = ['any']; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists