@@ -16,7 +16,7 @@ export enum EnvironmentInfoServiceQueuePriority {
16
16
export const IEnvironmentInfoService = Symbol ( 'IEnvironmentInfoService' ) ;
17
17
export interface IEnvironmentInfoService {
18
18
getEnvironmentInfo (
19
- environment : PythonEnvInfo ,
19
+ interpreterPath : string ,
20
20
priority ?: EnvironmentInfoServiceQueuePriority
21
21
) : Promise < InterpreterInformation | undefined > ;
22
22
}
@@ -49,7 +49,7 @@ export class EnvironmentInfoService implements IEnvironmentInfoService {
49
49
}
50
50
51
51
public async getEnvironmentInfo (
52
- environment : PythonEnvInfo ,
52
+ interpreterPath : string ,
53
53
priority ?: EnvironmentInfoServiceQueuePriority ,
54
54
) : Promise < InterpreterInformation | undefined > {
55
55
const result = this . cache . get ( interpreterPath ) ;
@@ -60,8 +60,8 @@ export class EnvironmentInfoService implements IEnvironmentInfoService {
60
60
const deferred = createDeferred < InterpreterInformation > ( ) ;
61
61
this . cache . set ( interpreterPath , deferred ) ;
62
62
return ( priority === EnvironmentInfoServiceQueuePriority . High
63
- ? this . workerPool . addToQueue ( environment , QueuePosition . Front )
64
- : this . workerPool . addToQueue ( environment , QueuePosition . Back )
63
+ ? this . workerPool . addToQueue ( interpreterPath , QueuePosition . Front )
64
+ : this . workerPool . addToQueue ( interpreterPath , QueuePosition . Back )
65
65
) . then ( ( r ) => {
66
66
deferred . resolve ( r ) ;
67
67
if ( r === undefined ) {
0 commit comments