Skip to content

Commit 5c706fe

Browse files
jaboothDonJayamanne
authored andcommitted
editor context runInTerminal, python where clauses
1 parent 1d78651 commit 5c706fe

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,19 @@
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"

src/client/providers/execInTerminalProvider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)