Skip to content

Commit 35ab3eb

Browse files
authored
Add Configure IntelliSense tooltip (#10858)
* Add Configure IntelliSense tooltip.
1 parent 302f422 commit 35ab3eb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Extension/src/LanguageServer/ui.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export class OldUI implements UI {
8484
private codeAnalysisPausedTooltip: string = "";
8585
get isNewUI(): boolean { return false; };
8686
private readonly configureIntelliSenseText: string = localize("c.cpp.configureIntelliSenseStatus.text", "Configure IntelliSense");
87+
private readonly cppConfigureIntelliSenseText: string = localize("c.cpp.configureIntelliSenseStatus.cppText", "C/C++ Configure IntelliSense");
8788

8889
constructor() {
8990
const configTooltip: string = localize("c.cpp.configuration.tooltip", "C/C++ Configuration");
@@ -108,7 +109,8 @@ export class OldUI implements UI {
108109
this.ShowReferencesIcon = false;
109110

110111
this.configureIntelliSenseStatusItem = vscode.window.createStatusBarItem(`c.cpp.configureIntelliSenseStatus.statusbar`, vscode.StatusBarAlignment.Right, 901);
111-
this.configureIntelliSenseStatusItem.name = localize("c.cpp.configureIntelliSenseStatus.cppText", "C/C++ Configure IntelliSense");
112+
this.configureIntelliSenseStatusItem.name = this.cppConfigureIntelliSenseText;
113+
this.configureIntelliSenseStatusItem.tooltip = this.cppConfigureIntelliSenseText;
112114
this.configureIntelliSenseStatusItem.text = `$(warning) ${this.configureIntelliSenseText}`;
113115
this.configureIntelliSenseStatusItem.backgroundColor = new vscode.ThemeColor('statusBarItem.warningBackground');
114116
this.configureIntelliSenseStatusItem.command = {

Extension/src/LanguageServer/ui_new.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export class NewUI implements UI {
8686
private readonly iconDelayTime: number = 1000;
8787
get isNewUI(): boolean { return true; };
8888
private readonly configureIntelliSenseText: string = localize("c.cpp.configureIntelliSenseStatus.text", "Configure IntelliSense");
89+
private readonly cppConfigureIntelliSenseText: string = localize("c.cpp.configureIntelliSenseStatus.cppText", "C/C++ Configure IntelliSense");
8990

9091
constructor() {
9192
const configTooltip: string = localize("c.cpp.configuration.tooltip", "C/C++ Configuration");
@@ -110,7 +111,8 @@ export class NewUI implements UI {
110111
this.ShowReferencesIcon = false;
111112

112113
this.configureIntelliSenseStatusItem = vscode.window.createStatusBarItem(`c.cpp.configureIntelliSenseStatus.statusbar`, vscode.StatusBarAlignment.Right, 0);
113-
this.configureIntelliSenseStatusItem.name = localize("c.cpp.configureIntelliSenseStatus.cppText", "C/C++ Configure IntelliSense");
114+
this.configureIntelliSenseStatusItem.name = this.cppConfigureIntelliSenseText;
115+
this.configureIntelliSenseStatusItem.tooltip = this.cppConfigureIntelliSenseText;
114116
this.configureIntelliSenseStatusItem.text = `$(warning) ${this.configureIntelliSenseText}`;
115117
this.configureIntelliSenseStatusItem.backgroundColor = new vscode.ThemeColor('statusBarItem.warningBackground');
116118
this.configureIntelliSenseStatusItem.command = {

0 commit comments

Comments
 (0)