Skip to content

Commit 2abec37

Browse files
authored
Improved telemetry for Native Locator (#23664)
1 parent c880947 commit 2abec37

File tree

4 files changed

+655
-242
lines changed

4 files changed

+655
-242
lines changed

src/client/pythonEnvironments/base/info/environmentInfoService.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -205,40 +205,6 @@ class EnvironmentInfoService implements IEnvironmentInfoService {
205205
}
206206
});
207207
}
208-
209-
private static getInterpreterInfo(
210-
env: PythonEnvInfo,
211-
allowPartialVersions?: boolean,
212-
): InterpreterInformation | undefined {
213-
if (allowPartialVersions) {
214-
if (env.version.major > -1 && env.version.minor > -1 && env.location) {
215-
return {
216-
arch: env.arch,
217-
executable: {
218-
filename: env.executable.filename,
219-
ctime: -1,
220-
mtime: -1,
221-
sysPrefix: env.location,
222-
},
223-
version: env.version,
224-
};
225-
}
226-
}
227-
228-
if (env.version.major > -1 && env.version.minor > -1 && env.version.micro > -1 && env.location) {
229-
return {
230-
arch: env.arch,
231-
executable: {
232-
filename: env.executable.filename,
233-
ctime: -1,
234-
mtime: -1,
235-
sysPrefix: env.location,
236-
},
237-
version: env.version,
238-
};
239-
}
240-
return undefined;
241-
}
242208
}
243209

244210
function addToQueue(

0 commit comments

Comments
 (0)