Skip to content

Commit

Permalink
removed unnecessary api call
Browse files Browse the repository at this point in the history
  • Loading branch information
Chillee committed May 17, 2017
1 parent f534ce5 commit 1e8dab5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/actions/commands/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,9 @@ class CommandEsc extends BaseCommand {

public async exec(position: Position, vimState: VimState): Promise<VimState> {
if (vimState.currentMode === ModeName.Normal && !vimState.isMultiCursor) {
// If there's nothing to do on the vim side, we might as well call vscode's default "close notification" actions.
await vscode.commands.executeCommand('workbench.action.closeMessages');
// If there's nothing to do on the vim side, we might as well call some
// of vscode's default "close notification" actions. I think we should
// just add to this list as needed.
await vscode.commands.executeCommand('closeReferenceSearchEditor');
return vimState;
}
Expand Down

0 comments on commit 1e8dab5

Please sign in to comment.