Skip to content

Commit 40fbc61

Browse files
author
Kartik Raj
committed
Fix bug with interpreter display
1 parent bcbe444 commit 40fbc61

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/client/interpreter/display/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { IDisposableRegistry, IExperimentService, IPathUtils, Resource } from '.
99
import { InterpreterQuickPickList, Interpreters } from '../../common/utils/localize';
1010
import { IServiceContainer } from '../../ioc/types';
1111
import { traceLog } from '../../logging';
12-
import { PythonEnvironment } from '../../pythonEnvironments/info';
1312
import {
1413
IInterpreterDisplay,
1514
IInterpreterHelper,
@@ -99,13 +98,8 @@ export class InterpreterDisplay implements IInterpreterDisplay, IExtensionSingle
9998
filter.changed(this.updateVisibility, this, disposableRegistry);
10099
}
101100
}
102-
private onDidChangeInterpreterInformation(info: PythonEnvironment) {
103-
if (
104-
!this.currentlySelectedInterpreterDisplay ||
105-
this.currentlySelectedInterpreterDisplay === info.detailedDisplayName
106-
) {
107-
this.updateDisplay(this.currentlySelectedWorkspaceFolder).ignoreErrors();
108-
}
101+
private onDidChangeInterpreterInformation() {
102+
this.updateDisplay(this.currentlySelectedWorkspaceFolder).ignoreErrors();
109103
}
110104
private async updateDisplay(workspaceFolder?: Uri) {
111105
const interpreter = await this.interpreterService.getActiveInterpreter(workspaceFolder);

0 commit comments

Comments
 (0)