File tree Expand file tree Collapse file tree
src/client/interpreter/locators Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as _ from 'lodash';
33import * as path from 'path' ;
44import { Disposable , Uri , workspace } from 'vscode' ;
55import { IPlatformService } from '../../common/platform/types' ;
6- import { IDisposableRegistry , IsWindows } from '../../common/types' ;
6+ import { IDisposableRegistry } from '../../common/types' ;
77import { arePathsSame } from '../../common/utils' ;
88import { IServiceContainer } from '../../ioc/types' ;
99import {
@@ -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 '' ;
You can’t perform that action at this time.
0 commit comments