Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unimported command prefix. #6851

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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>();
Expand All @@ -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);
Expand Down