From 91d6081157c5c67cba1d961dfc82ad96de851f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Douda?= Date: Fri, 15 Dec 2023 11:52:27 +0100 Subject: [PATCH] Fix unimported command prefix. --- .../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 98616810a3a8..fa8be55b052e 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> { - 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(); @@ -165,7 +165,7 @@ export class PropertiesView { const msg: Record = {}; 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>, done)) { this.processSaveError(done);