Skip to content

Commit 0018854

Browse files
author
Kartik Raj
committed
Fix color if a valid interpreter is selected
1 parent 9b6bb7e commit 0018854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/interpreter/display/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ export class InterpreterDisplay implements IInterpreterDisplay, IExtensionSingle
137137
let text = interpreter.detailedDisplayName;
138138
text = text?.startsWith('Python') ? text?.substring('Python'.length)?.trim() : text;
139139
this.statusBar.text = text ?? '';
140+
this.statusBar.backgroundColor = undefined;
140141
this.currentlySelectedInterpreterDisplay = interpreter.detailedDisplayName;
141142
} else {
142143
this.statusBar.tooltip = '';
143-
this.statusBar.color = '';
144144
this.statusBar.backgroundColor = new ThemeColor('statusBarItem.warningBackground');
145145
this.statusBar.text = `$(alert) ${InterpreterQuickPickList.browsePath.openButtonLabel}`;
146146
this.currentlySelectedInterpreterDisplay = undefined;

0 commit comments

Comments
 (0)