Skip to content

Commit 1bd76eb

Browse files
authored
Fix "Command '' not found" error. (#8609)
* Fix "Command '' not found" error. * Remove unneeded initialization.
1 parent 6d99657 commit 1bd76eb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • Extension/src/LanguageServer

Extension/src/LanguageServer/ui.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,18 @@ export class UI {
6868

6969
this.referencesStatusBarItem = vscode.window.createStatusBarItem("c.cpp.references.statusbar", vscode.StatusBarAlignment.Right, 901);
7070
this.referencesStatusBarItem.name = localize("c.cpp.references.statusbar", "C/C++ References Status");
71-
this.referencesStatusBarItem.text = "";
7271
this.referencesStatusBarItem.tooltip = "";
7372
this.referencesStatusBarItem.command = "C_Cpp.ShowReferencesProgress";
7473
this.ShowReferencesIcon = false;
7574

7675
this.intelliSenseStatusBarItem = vscode.window.createStatusBarItem("c.cpp.intellisense.statusbar", vscode.StatusBarAlignment.Right, 903);
7776
this.intelliSenseStatusBarItem.name = localize("c.cpp.intellisense.statusbar", "C/C++ IntelliSense Status");
78-
this.intelliSenseStatusBarItem.text = "";
7977
this.intelliSenseStatusBarItem.tooltip = this.updatingIntelliSenseTooltip;
8078
this.ShowFlameIcon = false;
8179

8280
this.browseEngineStatusBarItem = vscode.window.createStatusBarItem("c.cpp.tagparser.statusbar", vscode.StatusBarAlignment.Right, 902);
8381
this.browseEngineStatusBarItem.name = localize("c.cpp.tagparser.statusbar", "C/C++ Tag Parser Status");
84-
this.browseEngineStatusBarItem.text = "";
8582
this.browseEngineStatusBarItem.tooltip = localize("discovering.files.tooltip", "Discovering files");
86-
this.browseEngineStatusBarItem.command = "";
8783
this.ShowDBIcon = false;
8884

8985
this.codeAnalysisProgram = "clang-tidy";
@@ -117,7 +113,7 @@ export class UI {
117113
if (val) {
118114
this.browseEngineStatusBarItem.command = "C_Cpp.ShowParsingCommands";
119115
} else {
120-
this.browseEngineStatusBarItem.command = "";
116+
this.browseEngineStatusBarItem.command = undefined;
121117
}
122118
}
123119

0 commit comments

Comments
 (0)