@@ -30,19 +30,6 @@ export interface IEnvironmentInfoService {
30
30
env : PythonEnvInfo ,
31
31
priority ?: EnvironmentInfoServiceQueuePriority ,
32
32
) : Promise < InterpreterInformation | undefined > ;
33
- /**
34
- * Get the mandatory interpreter information for the given environment.
35
- * E.g. executable path, version and sysPrefix are considered mandatory.
36
- * However if we only have part of the version, thats still sufficient.
37
- * If the fully resolved and acurate information for all parts of the env is required, then
38
- * used `getEnvironmentInfo`.
39
- * @param env The environment to get the interpreter information for.
40
- * @param priority The priority of the request.
41
- */
42
- getMandatoryEnvironmentInfo (
43
- env : PythonEnvInfo ,
44
- priority ?: EnvironmentInfoServiceQueuePriority ,
45
- ) : Promise < InterpreterInformation | undefined > ;
46
33
/**
47
34
* Reset any stored interpreter information for the given environment.
48
35
* @param searchLocation Search location of the environment.
@@ -137,36 +124,6 @@ class EnvironmentInfoService implements IEnvironmentInfoService {
137
124
return deferred . promise ;
138
125
}
139
126
140
- public async getMandatoryEnvironmentInfo (
141
- env : PythonEnvInfo ,
142
- priority ?: EnvironmentInfoServiceQueuePriority ,
143
- ) : Promise < InterpreterInformation | undefined > {
144
- const interpreterPath = env . executable . filename ;
145
- const result = this . cache . get ( normCasePath ( interpreterPath ) ) ;
146
- if ( result !== undefined ) {
147
- // Another call for this environment has already been made, return its result.
148
- return result . promise ;
149
- }
150
-
151
- const deferred = createDeferred < InterpreterInformation > ( ) ;
152
- const info = EnvironmentInfoService . getInterpreterInfo ( env , true ) ;
153
- if ( info !== undefined ) {
154
- this . cache . set ( normCasePath ( interpreterPath ) , deferred ) ;
155
- deferred . resolve ( info ) ;
156
- return info ;
157
- }
158
-
159
- this . cache . set ( normCasePath ( interpreterPath ) , deferred ) ;
160
- this . _getEnvironmentInfo ( env , priority )
161
- . then ( ( r ) => {
162
- deferred . resolve ( r ) ;
163
- } )
164
- . catch ( ( ex ) => {
165
- deferred . reject ( ex ) ;
166
- } ) ;
167
- return deferred . promise ;
168
- }
169
-
170
127
public async _getEnvironmentInfo (
171
128
env : PythonEnvInfo ,
172
129
priority ?: EnvironmentInfoServiceQueuePriority ,
0 commit comments