Skip to content

Commit 8bdd966

Browse files
author
Kartik Raj
authored
Make sure warning icon next to interpreter item isn't added multiple times (#19253)
1 parent 06bf33d commit 8bdd966

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ export class SetInterpreterCommand extends BaseInterpreterSelectorCommand {
334334
item.interpreter.path === 'python' &&
335335
item.interpreter.envType === EnvironmentType.Conda
336336
) {
337-
items[i].label = `${Octicons.Warning} ${items[i].label}`;
337+
if (!items[i].label.includes(Octicons.Warning)) {
338+
items[i].label = `${Octicons.Warning} ${items[i].label}`;
339+
}
338340
}
339341
});
340342
}

0 commit comments

Comments
 (0)