@@ -26,8 +26,8 @@ import { traceError, traceWarn } from '../../../../logging';
2626import { isVirtualEnvironment } from '../../../common/environmentManagers/simplevirtualenvs' ;
2727import { getWorkspaceFolderPaths } from '../../../../common/vscodeApis/workspaceApis' ;
2828
29- function getResolvers ( ) : Map < PythonEnvKind , ( env : BasicEnvInfo , useCache ?: boolean ) => Promise < PythonEnvInfo > > {
30- const resolvers = new Map < PythonEnvKind , ( _ : BasicEnvInfo , useCache ?: boolean ) => Promise < PythonEnvInfo > > ( ) ;
29+ function getResolvers ( ) : Map < PythonEnvKind , ( env : BasicEnvInfo ) => Promise < PythonEnvInfo > > {
30+ const resolvers = new Map < PythonEnvKind , ( _ : BasicEnvInfo ) => Promise < PythonEnvInfo > > ( ) ;
3131 Object . values ( PythonEnvKind ) . forEach ( ( k ) => {
3232 resolvers . set ( k , resolveGloballyInstalledEnv ) ;
3333 } ) ;
@@ -45,11 +45,11 @@ function getResolvers(): Map<PythonEnvKind, (env: BasicEnvInfo, useCache?: boole
4545 * executable and returns it. Notice `undefined` is never returned, so environment
4646 * returned could still be invalid.
4747 */
48- export async function resolveBasicEnv ( env : BasicEnvInfo , useCache = false ) : Promise < PythonEnvInfo > {
48+ export async function resolveBasicEnv ( env : BasicEnvInfo ) : Promise < PythonEnvInfo > {
4949 const { kind, source } = env ;
5050 const resolvers = getResolvers ( ) ;
5151 const resolverForKind = resolvers . get ( kind ) ! ;
52- const resolvedEnv = await resolverForKind ( env , useCache ) ;
52+ const resolvedEnv = await resolverForKind ( env ) ;
5353 resolvedEnv . searchLocation = getSearchLocation ( resolvedEnv ) ;
5454 resolvedEnv . source = uniq ( resolvedEnv . source . concat ( source ?? [ ] ) ) ;
5555 if ( getOSType ( ) === OSType . Windows && resolvedEnv . source ?. includes ( PythonEnvSource . WindowsRegistry ) ) {
0 commit comments