You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by lk...@apache.org on 2020/11/04 15:06:15 UTC
[netbeans] 02/02: Renaming debug configuration to Java 8+.
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 <du...@oracle.com>
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: 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