提交 aabf63b0 编写于 作者: J Johannes Rieken

hide light bulb on text blur, fixes #11022

上级 5245233f
......@@ -44,7 +44,7 @@ export class LightBulbWidget implements IContentWidget, IDisposable {
this.domNode.style.width = '20px';
this.domNode.style.height = '20px';
this.domNode.className = 'lightbulb-glyph';
this.toDispose.push(dom.addDisposableListener(this.domNode, 'click', (e) => {
this.toDispose.push(dom.addDisposableListener(this.domNode, 'mousedown', (e) => {
this.editor.focus();
this.onclick(this.position);
}));
......@@ -78,4 +78,3 @@ export class LightBulbWidget implements IContentWidget, IDisposable {
this.editor.layoutContentWidget(this);
}
}
......@@ -82,6 +82,7 @@ export class QuickFixModel extends EventEmitter {
this.markerService.onMarkerChanged(this.onMarkerChanged, this, this.toLocalDispose);
this.toLocalDispose.push(this.editor.onDidChangeCursorPosition(e => this.onCursorPositionChanged()));
this.toLocalDispose.push(this.editor.onDidBlurEditorText(() => this.setDecoration(null)));
}
private onLightBulbClicked(pos: IPosition): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册