We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97d4fc1 commit 7e7204fCopy full SHA for 7e7204f
1 file changed
src/client/providers/execInTerminalProvider.ts
@@ -1,9 +1,6 @@
1
"use strict";
2
-import * as child_process from 'child_process';
3
-import * as path from "path";
4
import * as vscode from "vscode";
5
import * as settings from "./../common/configSettings";
6
-import * as utils from "./../common/utils";
7
8
export function activateExecInTerminalProvider() {
9
vscode.commands.registerCommand("python.execInTerminal", execInTerminal);
@@ -29,6 +26,8 @@ function execInTerminal(filePath: string) {
29
26
}
30
27
31
28
const terminal = (<any>vscode.window).createTerminal(`Ext Terminal`);
+ // Temporary workaround until a promise of terminal readiness is available:
+ // https://github.com/Tyriar/vscode-terminal-api-example/issues/2
32
setTimeout(() => {
33
terminal.sendText(`${currentPythonPath} ${filePath}`);
34
}, 1000);
0 commit comments