Skip to content

Commit

Permalink
#69360 Move quick fix action to beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Feb 25, 2019
1 parent 8e00b00 commit 05d66ec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/vs/editor/contrib/hover/modesContentHover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,15 +531,6 @@ export class ModesContentHoverWidget extends ContentHoverWidget {
const hoverElement = $('div.hover-row.status-bar');
const disposables: IDisposable[] = [];
const actionsElement = dom.append(hoverElement, $('div.actions'));
disposables.push(this.renderAction(actionsElement, {
label: nls.localize('peek problem', "Peek Problem"),
commandId: NextMarkerAction.ID,
run: () => {
this.hide();
MarkerController.get(this._editor).show(markerHover.marker);
this._editor.focus();
}
}));
disposables.push(this.renderAction(actionsElement, {
label: nls.localize('quick fixes', "Quick Fix..."),
commandId: QuickFixAction.Id,
Expand All @@ -554,6 +545,15 @@ export class ModesContentHoverWidget extends ContentHoverWidget {
});
}
}));
disposables.push(this.renderAction(actionsElement, {
label: nls.localize('peek problem', "Peek Problem"),
commandId: NextMarkerAction.ID,
run: () => {
this.hide();
MarkerController.get(this._editor).show(markerHover.marker);
this._editor.focus();
}
}));
this.renderDisposable = combinedDisposable(disposables);
return hoverElement;
}
Expand Down

0 comments on commit 05d66ec

Please sign in to comment.