Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,17 @@ export class InterpreterSelector implements IInterpreterSelector {
const interpreters = this.interpreterManager.getInterpreters(resource);
interpreters.sort(this.envTypeComparer.compare.bind(this.envTypeComparer));

return interpreters.map((item) => this.suggestionToQuickPickItem(item, resource, useFullDisplayName));
const interpreterLists = interpreters.map((item) =>
this.suggestionToQuickPickItem(item, resource, useFullDisplayName),
);
// Truncate ' ' inside parenthesis for Select Interpreter Lists.
for (const singleInterpreter of interpreterLists) {
if (singleInterpreter.label.includes('(') && singleInterpreter.label.includes(')')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the right change. You should be able to find where this is set by following where label is set.

singleInterpreter.label = singleInterpreter.label.replace(/'/g, '');
}
}

return interpreterLists;
}

public async getAllSuggestions(resource: Resource): Promise<IInterpreterQuickPickItem[]> {
Expand Down
Loading