Skip to content

Commit

Permalink
Do not clear interpreter cache (#621)
Browse files Browse the repository at this point in the history
Fixes #617
  • Loading branch information
DonJayamanne authored Jan 25, 2018
1 parent df39217 commit 60187ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/client/interpreter/locators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as _ from 'lodash';
import * as path from 'path';
import { Disposable, Uri, workspace } from 'vscode';
import { IPlatformService } from '../../common/platform/types';
import { IDisposableRegistry, IsWindows } from '../../common/types';
import { IDisposableRegistry } from '../../common/types';
import { arePathsSame } from '../../common/utils';
import { IServiceContainer } from '../../ioc/types';
import {
Expand All @@ -27,7 +27,6 @@ export class PythonInterpreterLocatorService implements IInterpreterLocatorServi

constructor( @inject(IServiceContainer) private serviceContainer: IServiceContainer) {
this.interpretersPerResource = new Map<string, Promise<PythonInterpreter[]>>();
this.disposables.push(workspace.onDidChangeConfiguration(this.onConfigChanged, this));
serviceContainer.get<Disposable[]>(IDisposableRegistry).push(this);
this.platform = serviceContainer.get<IPlatformService>(IPlatformService);
}
Expand All @@ -42,9 +41,6 @@ export class PythonInterpreterLocatorService implements IInterpreterLocatorServi
public dispose() {
this.disposables.forEach(disposable => disposable.dispose());
}
private onConfigChanged() {
this.interpretersPerResource.clear();
}
private getResourceKey(resource?: Uri) {
if (!resource) {
return '';
Expand Down

0 comments on commit 60187ea

Please sign in to comment.