Fix run active file when no editor is focused

Fixes #53019
This commit is contained in:
Daniel Imms
2018-07-09 13:19:28 -07:00
parent 0cadfe1834
commit c3bc031c1a
@@ -625,7 +625,7 @@ export class RunActiveFileInTerminalAction extends Action {
if (!instance) {
return TPromise.as(void 0);
}
const editor = this.codeEditorService.getFocusedCodeEditor();
const editor = this.codeEditorService.getActiveCodeEditor();
if (!editor) {
return TPromise.as(void 0);
}