Skip to content

Commit

Permalink
LSP: Enable custom run config params for 'java' configuration. (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalek authored Jan 4, 2023
1 parent 6e18d43 commit e707a7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/java.lsp.server/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"id": "run-config",
"name": "Run Configuration",
"contextualTitle": "Run Configuration",
"when": "runConfigurationInitialized && config.netbeans.javaSupport.enabled"
"when": "runConfigurationInitialized"
}
]
},
Expand Down Expand Up @@ -833,7 +833,7 @@
},
{
"command": "java.workspace.configureRunSettings",
"when": "view == run-config && viewItem == configureRunSettings && config.netbeans.javaSupport.enabled",
"when": "view == run-config && viewItem == configureRunSettings",
"group": "inline@1"
}
]
Expand Down
1 change: 1 addition & 0 deletions java/java.lsp.server/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
initializeRunConfiguration().then(initialized => {
if (initialized) {
context.subscriptions.push(vscode.debug.registerDebugConfigurationProvider('java8+', runConfigurationProvider));
context.subscriptions.push(vscode.debug.registerDebugConfigurationProvider('java', runConfigurationProvider));
context.subscriptions.push(vscode.window.registerTreeDataProvider('run-config', runConfigurationNodeProvider));
context.subscriptions.push(vscode.commands.registerCommand('java.workspace.configureRunSettings', (...params: any[]) => {
configureRunSettings(context, params);
Expand Down

0 comments on commit e707a7b

Please sign in to comment.