This is an automated email from the ASF dual-hosted git repository. lkishalmi pushed a commit to branch delivery in repository https://gitbox.apache.org/repos/asf/netbeans.git
commit e3f81ad9ecdb43eca556fad9117bfc4f4d113d78 Author: Dusan Balek <[email protected]> AuthorDate: Wed Nov 4 11:52:41 2020 +0100 Renaming debug configuration to Java 8+. --- java/java.lsp.server/vscode/package.json | 20 ++++++++++++++++---- java/java.lsp.server/vscode/src/extension.ts | 6 +++--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/java/java.lsp.server/vscode/package.json b/java/java.lsp.server/vscode/package.json index 5330b52..797fa1b 100644 --- a/java/java.lsp.server/vscode/package.json +++ b/java/java.lsp.server/vscode/package.json @@ -65,8 +65,8 @@ ], "debuggers": [ { - "type": "java-polyglot", - "label": "Java (Polyglot)", + "type": "java8+", + "label": "Java 8+", "runtime": "node", "languages": [ "java" @@ -103,11 +103,23 @@ }, "initialConfigurations": [ { - "type": "java-polyglot", + "type": "java8+", "request": "launch", - "name": "Java (Polyglot)", + "name": "Launch Java 8+ App", "mainClass": "${file}" } + ], + "configurationSnippets": [ + { + "label": "Java 8+: Launch Java 8+ Application", + "description": "Launch a Java 8+ Application in debug mode", + "body": { + "type": "java8+", + "request": "launch", + "name": "Launch Java 8+ App", + "mainClass": "^\"${1:\\${file\\}}\"" + } + } ] } ], diff --git a/java/java.lsp.server/vscode/src/extension.ts b/java/java.lsp.server/vscode/src/extension.ts index 54ee558..ed89378 100644 --- a/java/java.lsp.server/vscode/src/extension.ts +++ b/java/java.lsp.server/vscode/src/extension.ts @@ -129,10 +129,10 @@ export function activate(context: ExtensionContext) { //register debugger: let configProvider = new NetBeansConfigurationProvider(); - context.subscriptions.push(vscode.debug.registerDebugConfigurationProvider('java-polyglot', configProvider)); + context.subscriptions.push(vscode.debug.registerDebugConfigurationProvider('java8+', configProvider)); let debugDescriptionFactory = new NetBeansDebugAdapterDescriptionFactory(); - context.subscriptions.push(vscode.debug.registerDebugAdapterDescriptorFactory('java-polyglot', debugDescriptionFactory)); + context.subscriptions.push(vscode.debug.registerDebugAdapterDescriptorFactory('java8+', debugDescriptionFactory)); // register commands context.subscriptions.push(commands.registerCommand('java.workspace.compile', () => { @@ -383,7 +383,7 @@ class NetBeansConfigurationProvider implements vscode.DebugConfigurationProvider resolveDebugConfiguration(_folder: vscode.WorkspaceFolder | undefined, config: vscode.DebugConfiguration, _token?: vscode.CancellationToken): vscode.ProviderResult<vscode.DebugConfiguration> { if (!config.type) { - config.type = 'java-polyglot'; + config.type = 'java8+'; } if (!config.request) { config.request = 'launch'; --------------------------------------------------------------------- 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
