Skip to content

Commit 7e7204f

Browse files
jaboothDonJayamanne
authored andcommitted
remove unneeded imports, doc workaround
1 parent 97d4fc1 commit 7e7204f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/client/providers/execInTerminalProvider.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
"use strict";
2-
import * as child_process from 'child_process';
3-
import * as path from "path";
42
import * as vscode from "vscode";
53
import * as settings from "./../common/configSettings";
6-
import * as utils from "./../common/utils";
74

85
export function activateExecInTerminalProvider() {
96
vscode.commands.registerCommand("python.execInTerminal", execInTerminal);
@@ -29,6 +26,8 @@ function execInTerminal(filePath: string) {
2926
}
3027

3128
const terminal = (<any>vscode.window).createTerminal(`Ext Terminal`);
29+
// Temporary workaround until a promise of terminal readiness is available:
30+
// https://github.com/Tyriar/vscode-terminal-api-example/issues/2
3231
setTimeout(() => {
3332
terminal.sendText(`${currentPythonPath} ${filePath}`);
3433
}, 1000);

0 commit comments

Comments
 (0)