Skip to content

Commit 60187ea

Browse files
authored
Do not clear interpreter cache (#621)
Fixes #617
1 parent df39217 commit 60187ea

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/client/interpreter/locators/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as _ from 'lodash';
33
import * as path from 'path';
44
import { Disposable, Uri, workspace } from 'vscode';
55
import { IPlatformService } from '../../common/platform/types';
6-
import { IDisposableRegistry, IsWindows } from '../../common/types';
6+
import { IDisposableRegistry } from '../../common/types';
77
import { arePathsSame } from '../../common/utils';
88
import { IServiceContainer } from '../../ioc/types';
99
import {
@@ -27,7 +27,6 @@ export class PythonInterpreterLocatorService implements IInterpreterLocatorServi
2727

2828
constructor( @inject(IServiceContainer) private serviceContainer: IServiceContainer) {
2929
this.interpretersPerResource = new Map<string, Promise<PythonInterpreter[]>>();
30-
this.disposables.push(workspace.onDidChangeConfiguration(this.onConfigChanged, this));
3130
serviceContainer.get<Disposable[]>(IDisposableRegistry).push(this);
3231
this.platform = serviceContainer.get<IPlatformService>(IPlatformService);
3332
}
@@ -42,9 +41,6 @@ export class PythonInterpreterLocatorService implements IInterpreterLocatorServi
4241
public dispose() {
4342
this.disposables.forEach(disposable => disposable.dispose());
4443
}
45-
private onConfigChanged() {
46-
this.interpretersPerResource.clear();
47-
}
4844
private getResourceKey(resource?: Uri) {
4945
if (!resource) {
5046
return '';

0 commit comments

Comments
 (0)