Skip to content

Commit

Permalink
Do not show in case of invalid interpreters
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Oct 21, 2023
1 parent 1b160aa commit 13f1b61
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ export class TerminalIndicatorPrompt implements IExtensionSingleActivationServic
}
const prompts = [Common.doNotShowAgain];
const interpreter = await this.interpreterService.getActiveInterpreter(resource);
if (!interpreter) {
return;
}
const terminalPromptName = getPromptName(interpreter);
const selection = await this.appShell.showInformationMessage(
Interpreters.terminalEnvVarCollectionPrompt.format(terminalPromptName),
Expand Down

0 comments on commit 13f1b61

Please sign in to comment.