Skip to content

Commit ddb64e1

Browse files
author
Kartik Raj
authored
Set display name for the component if it's not set (#14919)
* Set displayname for the component if it's not set * Code reviews
1 parent c8aa070 commit ddb64e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/client/interpreter/interpreterService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ export class InterpreterService implements Disposable, IInterpreterService {
178178
public async getInterpreterDetails(pythonPath: string, resource?: Uri): Promise<PythonEnvironment | undefined> {
179179
const info = await this.pyenvs.getInterpreterDetails(pythonPath);
180180
if (info !== undefined) {
181+
if (!info.displayName) {
182+
// Set display name for the environment returned by component if it's not set (this should eventually go away)
183+
info.displayName = await this.getDisplayName(info, resource);
184+
}
181185
return info;
182186
}
183187

0 commit comments

Comments
 (0)