This is an automated email from the ASF dual-hosted git repository.
jhorvath 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 91d6081157 Fix unimported command prefix.
new b740e2e6be Merge pull request #6851 from
jhorvath/odouda/database/propertiesView-fix
91d6081157 is described below
commit 91d6081157c5c67cba1d961dfc82ad96de851f8d
Author: Ondřej Douda <[email protected]>
AuthorDate: Fri Dec 15 11:52:27 2023 +0100
Fix unimported command prefix.
---
java/java.lsp.server/vscode/src/propertiesView/propertiesView.ts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/java/java.lsp.server/vscode/src/propertiesView/propertiesView.ts
b/java/java.lsp.server/vscode/src/propertiesView/propertiesView.ts
index 98616810a3..fa8be55b05 100644
--- a/java/java.lsp.server/vscode/src/propertiesView/propertiesView.ts
+++ b/java/java.lsp.server/vscode/src/propertiesView/propertiesView.ts
@@ -29,8 +29,8 @@ function isVisualizer(node : any) : node is Visualizer {
return node?.id && node?.rootId;
}
export class PropertiesView {
- private static readonly COMMAND_GET_NODE_PROPERTIES = COMMAND_PREFIX +
".node.properties.get"; // NOI18N
- private static readonly COMMAND_SET_NODE_PROPERTIES = COMMAND_PREFIX +
".node.properties.set"; // NOI18N
+ private readonly COMMAND_GET_NODE_PROPERTIES = COMMAND_PREFIX +
".node.properties.get"; // NOI18N
+ private readonly COMMAND_SET_NODE_PROPERTIES = COMMAND_PREFIX +
".node.properties.set"; // NOI18N
private static extensionUri: vscode.Uri;
private static scriptPath: vscode.Uri;
@@ -148,7 +148,7 @@ export class PropertiesView {
}
private async get(): Promise<Map<String, Properties>> {
- const resp = await
vscode.commands.executeCommand(PropertiesView.COMMAND_GET_NODE_PROPERTIES,
this.id);
+ const resp = await
vscode.commands.executeCommand(this.COMMAND_GET_NODE_PROPERTIES, this.id);
if (!isObject(resp)) {
// TODO - possibly report protocol error ?
return new Map<String, Properties>();
@@ -165,7 +165,7 @@ export class PropertiesView {
const msg: Record<string, Properties> = {};
msg[this.properties.name] = this.properties;
-
vscode.commands.executeCommand(PropertiesView.COMMAND_SET_NODE_PROPERTIES,
this.id, msg)
+
vscode.commands.executeCommand(this.COMMAND_SET_NODE_PROPERTIES, this.id, msg)
.then(done => {
if (isRecord(isRecord.bind(null, isString) as
IsType<Record<string, string>>, done)) {
this.processSaveError(done);
---------------------------------------------------------------------
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