Skip to content

Commit

Permalink
Fixes microsoft/monaco-editor#891: Focus editor when returning from c…
Browse files Browse the repository at this point in the history
…ontext menu
  • Loading branch information
alexdima committed May 28, 2018
1 parent 736a5a1 commit 13cc56a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vs/editor/contrib/codeAction/codeActionWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export class CodeActionContextMenu {
return at;
},
getActions: () => actions,
onHide: () => { this._visible = false; },
onHide: () => {
this._visible = false;
this._editor.focus();
},
autoSelectFirstItem: true
});
}
Expand Down

0 comments on commit 13cc56a

Please sign in to comment.