Skip to content

Commit

Permalink
wrong tab selected after :quit, fixes #2984
Browse files Browse the repository at this point in the history
  • Loading branch information
insidewhy committed Dec 7, 2018
1 parent f7556dc commit fd46565
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/cmd_line/commands/quit.ts
Expand Up @@ -34,19 +34,11 @@ export class QuitCommand extends node.CommandBase {
if (this._arguments.quitAll) {
await vscode.commands.executeCommand('workbench.action.closeAllEditors');
} else {
let oldViewColumn = this.activeTextEditor!.viewColumn;
if (!this.arguments.bang) {
await vscode.commands.executeCommand('workbench.action.closeActiveEditor');
} else {
await vscode.commands.executeCommand('workbench.action.revertAndCloseActiveEditor');
}

if (
vscode.window.activeTextEditor !== undefined &&
vscode.window.activeTextEditor.viewColumn === oldViewColumn
) {
await vscode.commands.executeCommand('workbench.action.previousEditor');
}
}
}
}

0 comments on commit fd46565

Please sign in to comment.