提交 34fc91ae 编写于 作者: M Matt Bierner

Strict null check markersPanelActions

上级 ae16d04a
......@@ -611,6 +611,7 @@
"./vs/workbench/parts/markers/electron-browser/markersFileDecorations.ts",
"./vs/workbench/parts/markers/electron-browser/markersFilterOptions.ts",
"./vs/workbench/parts/markers/electron-browser/markersModel.ts",
"./vs/workbench/parts/markers/electron-browser/markersPanelActions.ts",
"./vs/workbench/parts/markers/electron-browser/messages.ts",
"./vs/workbench/parts/outline/electron-browser/outline.ts",
"./vs/workbench/parts/output/common/output.ts",
......
......@@ -356,7 +356,7 @@ export class QuickFixAction extends Action {
pinned: false,
revealIfVisible: true
},
}, ACTIVE_GROUP).then(() => null);
}, ACTIVE_GROUP).then(() => void 0);
}
private getFixes(marker: Marker): Promise<CodeAction[]> {
......@@ -408,6 +408,9 @@ export class QuickFixActionItem extends ActionItem {
public onClick(event: DOM.EventLike): void {
DOM.EventHelper.stop(event, true);
if (!this.element) {
return;
}
const elementPosition = DOM.getDomNodePagePosition(this.element);
(<QuickFixAction>this.getAction()).getQuickFixActions().then(actions => {
this.contextMenuService.showContextMenu({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册