Skip to content

Commit

Permalink
Merge pull request #3170 from ohjames/jp/2984
Browse files Browse the repository at this point in the history
Fix #2984: wrong tab selected after :quit
  • Loading branch information
jpoon committed Dec 10, 2018
2 parents 705665e + e972f5e commit 04ba8b6
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 04ba8b6

Please sign in to comment.