You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is everything (all configuration setings) we need to pass to the native locator
constpythonPathSettings=(workspace.workspaceFolders||[]).map((w)=>getPythonSettingAndUntildify(DEFAULT_INTERPRETER_PATH_SETTING_KEY,w.uri.fsPath),);pythonPathSettings.push(getPythonSettingAndUntildify(DEFAULT_INTERPRETER_PATH_SETTING_KEY));// We can have multiple workspaces, each with its own setting.constpythonSettings=Array.from(newSet(pythonPathSettings.filter((item)=>!!item)).values()).map((p)=>// We only want the parent directories.path.dirname(p!),);trackPromiseAndNotifyOnCompletion(this.connection.sendRequest<{duration: number}>('refresh',// Send configuration information to the Python finder.// We need a cleaner configuration object.{// This has a special meaning in locator, its lot a low priority// as we treat this as workspace folders that can contain a large number of files.search_paths: (workspace.workspaceFolders||[]).map((w)=>w.uri.fsPath),// Also send the python paths that are configured in the settings.python_path_settings: pythonSettings,conda_executable: getPythonSettingAndUntildify(CONDAPATH_SETTING_KEY),poetry_path: getPythonSettingAndUntildify('poetryPath'),pipenv_path: getPythonSettingAndUntildify('pipenvPath'),// We do not want to mix this with `search_paths`// Need a better name for `search_paths`.virtual_env_dirs: getCustomVirtualEnvDirs(),},).then(({ duration })=>traceInfo(`Native Python Finder completed in ${duration}ms`)).catch((ex)=>traceError('Error in Native Python Finder',ex)),);
Note
The text was updated successfully, but these errors were encountered: