Skip to content

Commit

Permalink
Also show interpreter in status bar when a Python related output chan…
Browse files Browse the repository at this point in the history
…nel is opened
  • Loading branch information
Kartik Raj committed Aug 29, 2023
1 parent 3fa5d4b commit 20e2440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/interpreter/interpreterService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
PythonEnvironmentsChangedEvent,
} from './contracts';
import { traceError, traceLog } from '../logging';
import { Commands, PYTHON_LANGUAGE } from '../common/constants';
import { Commands, PVSC_EXTENSION_ID, PYTHON_LANGUAGE } from '../common/constants';
import { reportActiveInterpreterChanged } from '../environmentApi';
import { IPythonExecutionFactory } from '../common/process/types';
import { Interpreters } from '../common/utils/localize';
Expand Down Expand Up @@ -138,7 +138,7 @@ export class InterpreterService implements Disposable, IInterpreterService {
return false;
}
const document = this.docManager.activeTextEditor?.document;
if (document?.fileName.endsWith('settings.json')) {
if (document?.fileName.endsWith('settings.json') || document?.fileName.includes(PVSC_EXTENSION_ID)) {
return false;
}
return document?.languageId !== PYTHON_LANGUAGE;
Expand Down

0 comments on commit 20e2440

Please sign in to comment.