Skip to content

Commit

Permalink
fix(openCodeBlock): remove condition that closes other editors
Browse files Browse the repository at this point in the history
resolves #16
  • Loading branch information
Ken Howard committed Nov 7, 2017
1 parent 7d47d03 commit e9d1017
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/controllers/main.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ export class MainController {
}
const directory = this._createTmpDir(codeBlock.id);

// Is there an active text editor?
if (window.activeTextEditor) {
// Close it
await commands.executeCommand('workbench.action.closeOtherEditors');
}

// Open an editor for each file in CodeFile
let i = 0;
for(let fileName in codeBlock.files) {
Expand Down Expand Up @@ -352,7 +346,7 @@ export class MainController {
const password: string = (await window.showInputBox({
prompt: `Enter your ${providerName} password.`,
password: true
}))
}));
if (!password) {
return;
}
Expand Down

0 comments on commit e9d1017

Please sign in to comment.