This is an automated email from the ASF dual-hosted git repository.
sdedic 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 925ad68e97 invoke 'java.db.preferred.connection' command only for
database connection node
new 136e2d7b82 Merge pull request #5628 from thurka/GCN-1733
925ad68e97 is described below
commit 925ad68e97d6cabff897129abfc34f2e7accbe3d
Author: Tomas Hurka <[email protected]>
AuthorDate: Wed Mar 8 12:57:23 2023 +0100
invoke 'java.db.preferred.connection' command only for database connection
node
---
java/java.lsp.server/vscode/src/extension.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/java.lsp.server/vscode/src/extension.ts
b/java/java.lsp.server/vscode/src/extension.ts
index e880871f7b..3eb245bdbe 100644
--- a/java/java.lsp.server/vscode/src/extension.ts
+++ b/java/java.lsp.server/vscode/src/extension.ts
@@ -1033,7 +1033,7 @@ function doActivateWithJDK(specifiedJDK: string | null,
context: ExtensionContex
}
async decorateTreeItem(vis : Visualizer, item : vscode.TreeItem) :
Promise<vscode.TreeItem> {
- if (!(item.contextValue &&
item.contextValue.match(/class:ddl.DBConnection/))) {
+ if (!(item.contextValue &&
item.contextValue.match(/class:org.netbeans.api.db.explorer.DatabaseConnection/)))
{
return item;
}
return
vscode.commands.executeCommand('java.db.preferred.connection').then((id) => {
---------------------------------------------------------------------
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