You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by en...@apache.org on 2021/04/01 21:35:19 UTC

[netbeans] 03/03: The debug test needs to specify configuration, after a second Native Image configuration was added.

This is an automated email from the ASF dual-hosted git repository.

entl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git

commit f0b395c63b7d40ff18c8655bd2abe596aa04a3a0
Author: Martin Entlicher <ma...@oracle.com>
AuthorDate: Thu Apr 1 19:54:21 2021 +0200

    The debug test needs to specify configuration, after a second Native Image configuration was added.
---
 java/java.lsp.server/vscode/src/test/suite/extension.test.ts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/java/java.lsp.server/vscode/src/test/suite/extension.test.ts b/java/java.lsp.server/vscode/src/test/suite/extension.test.ts
index 2d8053a..5f4e7ec 100644
--- a/java/java.lsp.server/vscode/src/test/suite/extension.test.ts
+++ b/java/java.lsp.server/vscode/src/test/suite/extension.test.ts
@@ -194,8 +194,9 @@ class Main {
                         then(() => waitUserApplication(5, false, () => resolve(true)));
                 }
                 console.log("Test: invoking debug debug.run");
-                vscode.commands.executeCommand("workbench.action.debug.run").then(
-                    () => waitUserApplication(5, true, onProcessStarted));
+                const workspaceFolder = (vscode.workspace.workspaceFolders!)[0];
+                vscode.debug.startDebugging(workspaceFolder, {type: "java8+", name: "Launch Java 8+ App", request: "launch"}, {}).
+                    then(() => waitUserApplication(5, true, onProcessStarted));
             });
             return r;
         } catch (error) {

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists