Skip to content

Commit 7323483

Browse files
committed
use constant
1 parent 5cd321d commit 7323483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/providers/execInTerminalProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
import * as vscode from 'vscode';
33
import * as settings from '../common/configSettings';
4-
import { Commands } from '../common/constants';
4+
import { Commands, PythonLanguage } from '../common/constants';
55
let path = require('path');
66

77
export function activateExecInTerminalProvider() {
@@ -18,7 +18,7 @@ function execInTerminal(fileUri?: vscode.Uri) {
1818
const activeEditor = vscode.window.activeTextEditor;
1919
if (activeEditor !== undefined) {
2020
if (!activeEditor.document.isUntitled) {
21-
if (activeEditor.document.languageId === 'python') {
21+
if (activeEditor.document.languageId === PythonLanguage.language) {
2222
filePath = activeEditor.document.fileName;
2323
} else {
2424
vscode.window.showErrorMessage('The active file is not a Python source file');

0 commit comments

Comments
 (0)