Skip to content

Commit 06bf33d

Browse files
author
Kartik Raj
authored
Add warning icon next to problematic conda envs without an interpreter (#19252)
1 parent 1ae84e9 commit 06bf33d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/client/common/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export namespace Octicons {
7171
export const Search_Stop = '$(search-stop)';
7272
export const Star = '$(star-full)';
7373
export const Gear = '$(gear)';
74+
export const Warning = '$(warning)';
7475
}
7576

7677
export const DEFAULT_INTERPRETER_SETTING = 'python';

src/client/interpreter/configuration/interpreterSelector/commands/setInterpreter.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,15 @@ export class SetInterpreterCommand extends BaseInterpreterSelectorCommand {
328328
if (index !== -1) {
329329
items[index] = recommended;
330330
}
331+
items.forEach((item, i) => {
332+
if (
333+
isInterpreterQuickPickItem(item) &&
334+
item.interpreter.path === 'python' &&
335+
item.interpreter.envType === EnvironmentType.Conda
336+
) {
337+
items[i].label = `${Octicons.Warning} ${items[i].label}`;
338+
}
339+
});
331340
}
332341
}
333342

0 commit comments

Comments
 (0)