File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 111111 "title" : " Refactor: Extract Method" ,
112112 "group" : " Refactor" ,
113113 "when" : " editorHasSelection && editorLangId == python"
114+ },
115+ {
116+ "when" : " resourceLangId == python" ,
117+ "command" : " python.execInTerminal" ,
118+ "group" : " Python"
114119 }
115120 ],
116121 "explorer/context" : [
117122 {
118123 "command" : " python.runtests" ,
119124 "group" : " Python"
120125 },
121- {
126+ {
122127 "when" : " resourceLangId == python" ,
123128 "command" : " python.execInTerminal" ,
124129 "group" : " Python"
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ function execInTerminal(fileUri?: vscode.Uri) {
1010 const currentPythonPath = settings . PythonSettings . getInstance ( ) . pythonPath ;
1111 let filePath : string ;
1212
13- console . log ( fileUri ) ;
1413 if ( fileUri === undefined ) {
1514 const activeEditor = vscode . window . activeTextEditor ;
1615 if ( activeEditor !== undefined ) {
You can’t perform that action at this time.
0 commit comments