Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed May 23, 2024
1 parent 84c1d17 commit 63a1c13
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/client/pythonEnvironments/base/locator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ export type BasicEnvInfo = {
*/
pythonRunCommand?: string[];
identifiedUsingNativeLocator?: boolean;
arch?: Architecture,
ctime?: number,
mtime?: number,
arch?: Architecture;
ctime?: number;
mtime?: number;
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function resolveBasicEnv(env: BasicEnvInfo): Promise<PythonEnvInfo>
await updateEnvUsingRegistry(resolvedEnv);
}
setEnvDisplayString(resolvedEnv);
if (env.arch && !resolvedEnv.arch){
if (env.arch && !resolvedEnv.arch) {
resolvedEnv.arch = env.arch;
}
if (env.ctime && env.mtime) {
Expand Down

0 comments on commit 63a1c13

Please sign in to comment.