Skip to content

Commit

Permalink
Merge pull request #312 from Tyriar/strongly_type_createTerminal
Browse files Browse the repository at this point in the history
Strongly type createTerminal
  • Loading branch information
DonJayamanne authored Sep 15, 2016
2 parents a392521 + 4404c1a commit dff46b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"theme": "dark"
},
"engines": {
"vscode": "^1.4.0"
"vscode": "^1.5.0"
},
"categories": [
"Languages",
Expand Down
4 changes: 2 additions & 2 deletions src/client/providers/execInTerminalProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function execInTerminal(fileUri?: vscode.Uri) {
if (filePath.indexOf(' ') > 0) {
filePath = `"${filePath}"`;
}
const terminal = (<any>vscode.window).createTerminal(`Python`);
const terminal = vscode.window.createTerminal(`Python`);
terminal.sendText(`${currentPythonPath} ${filePath}`);

}
Expand All @@ -54,6 +54,6 @@ function execSelectionInTerminal() {
return;
}
const code = vscode.window.activeTextEditor.document.getText(new vscode.Range(selection.start, selection.end));
const terminal = (<any>vscode.window).createTerminal(`Python`);
const terminal = vscode.window.createTerminal(`Python`);
terminal.sendText(`${currentPythonPath} -c "${code}"`);
}
2 changes: 1 addition & 1 deletion src/client/unittests/common/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function runTestInTerminal(file: string, args: string[], cwd: string): Promise<a
commands.push(`cd ${cwd}`);
}
commands.push(`${file} ${args.join(' ')}`);
terminal = (<any>window).createTerminal(`Python Test Log`);
terminal = window.createTerminal(`Python Test Log`);

return new Promise<any>((resolve) => {
setTimeout(function () {
Expand Down

0 comments on commit dff46b4

Please sign in to comment.