From 63a1c13baf2b11dff0ebdfe031be50ffd74ae285 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Fri, 24 May 2024 07:31:24 +1000 Subject: [PATCH] Fix formatting --- .../base/info/environmentInfoService.ts | 7 +++++-- src/client/pythonEnvironments/base/locator.ts | 6 +++--- .../base/locators/common/nativePythonFinder.ts | 8 ++++---- .../base/locators/composite/resolverUtils.ts | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/client/pythonEnvironments/base/info/environmentInfoService.ts b/src/client/pythonEnvironments/base/info/environmentInfoService.ts index d42271401f06..4c437431823a 100644 --- a/src/client/pythonEnvironments/base/info/environmentInfoService.ts +++ b/src/client/pythonEnvironments/base/info/environmentInfoService.ts @@ -256,8 +256,11 @@ class EnvironmentInfoService implements IEnvironmentInfoService { }); } - private static getInterpreterInfo(env: PythonEnvInfo, allowPartialVersions?: boolean): InterpreterInformation | undefined { - if (allowPartialVersions ){ + private static getInterpreterInfo( + env: PythonEnvInfo, + allowPartialVersions?: boolean, + ): InterpreterInformation | undefined { + if (allowPartialVersions) { if (env.version.major > -1 && env.version.minor > -1 && env.location) { return { arch: env.arch, diff --git a/src/client/pythonEnvironments/base/locator.ts b/src/client/pythonEnvironments/base/locator.ts index df007b6b30dd..d61f530f46ab 100644 --- a/src/client/pythonEnvironments/base/locator.ts +++ b/src/client/pythonEnvironments/base/locator.ts @@ -163,9 +163,9 @@ export type BasicEnvInfo = { */ pythonRunCommand?: string[]; identifiedUsingNativeLocator?: boolean; - arch?: Architecture, - ctime?: number, - mtime?: number, + arch?: Architecture; + ctime?: number; + mtime?: number; }; /** diff --git a/src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts b/src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts index 86124e2cfd27..ac89d9e3aaf8 100644 --- a/src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts +++ b/src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts @@ -28,10 +28,10 @@ export interface NativeEnvInfo { * Path to the project directory when dealing with pipenv virtual environments. */ projectPath?: string; - arch?: 'X64' |'X86', - symlinks?: string[], - creationTime?: number, - modifiedTime?: number, + arch?: 'X64' | 'X86'; + symlinks?: string[]; + creationTime?: number; + modifiedTime?: number; } export interface NativeEnvManagerInfo { diff --git a/src/client/pythonEnvironments/base/locators/composite/resolverUtils.ts b/src/client/pythonEnvironments/base/locators/composite/resolverUtils.ts index 2d796d7d4389..d1ad91493eab 100644 --- a/src/client/pythonEnvironments/base/locators/composite/resolverUtils.ts +++ b/src/client/pythonEnvironments/base/locators/composite/resolverUtils.ts @@ -64,7 +64,7 @@ export async function resolveBasicEnv(env: BasicEnvInfo): Promise await updateEnvUsingRegistry(resolvedEnv); } setEnvDisplayString(resolvedEnv); - if (env.arch && !resolvedEnv.arch){ + if (env.arch && !resolvedEnv.arch) { resolvedEnv.arch = env.arch; } if (env.ctime && env.mtime) {