File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11'use strict' ; 
22import  *  as  vscode  from  'vscode' ; 
33import  *  as  settings  from  '../common/configSettings' ; 
4- import  {  Commands  }  from  '../common/constants' ; 
4+ import  {  Commands ,   PythonLanguage  }  from  '../common/constants' ; 
55let  path  =  require ( 'path' ) ; 
66
77export  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' ) ; 
                         You can’t perform that action at this time. 
           
                  
0 commit comments