Skip to content

Commit

Permalink
Improved telemetry for Native Locator (#23664)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne authored Jun 24, 2024
1 parent c880947 commit 2abec37
Show file tree
Hide file tree
Showing 4 changed files with 655 additions and 242 deletions.
34 changes: 0 additions & 34 deletions src/client/pythonEnvironments/base/info/environmentInfoService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,40 +205,6 @@ class EnvironmentInfoService implements IEnvironmentInfoService {
}
});
}

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,
executable: {
filename: env.executable.filename,
ctime: -1,
mtime: -1,
sysPrefix: env.location,
},
version: env.version,
};
}
}

if (env.version.major > -1 && env.version.minor > -1 && env.version.micro > -1 && env.location) {
return {
arch: env.arch,
executable: {
filename: env.executable.filename,
ctime: -1,
mtime: -1,
sysPrefix: env.location,
},
version: env.version,
};
}
return undefined;
}
}

function addToQueue(
Expand Down
Loading

0 comments on commit 2abec37

Please sign in to comment.