File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/vs/editor/contrib/codeAction/browser Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
146
146
private focusedEnabledItem : number | undefined ;
147
147
private currSelectedItem : number = 0 ;
148
148
private hasSeperator : boolean = false ;
149
- private block : HTMLElement | null = null ;
149
+ private block ? : HTMLElement ;
150
150
151
151
public static readonly ID : string = 'editor.contrib.codeActionMenu' ;
152
152
@@ -216,7 +216,6 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
216
216
this . block . style . height = '100%' ;
217
217
this . block . style . zIndex = '-1' ;
218
218
219
- // TODO@Steven : this is never getting disposed
220
219
renderDisposables . add ( dom . addDisposableListener ( this . block , dom . EventType . MOUSE_DOWN , e => e . stopPropagation ( ) ) ) ;
221
220
222
221
renderMenu . id = 'codeActionMenuWidget' ;
@@ -290,8 +289,6 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
290
289
// List Focus
291
290
this . codeActionList . value . domFocus ( ) ;
292
291
const focusTracker = dom . trackFocus ( element ) ;
293
-
294
- element . focus ( ) ;
295
292
const blurListener = focusTracker . onDidBlur ( ( ) => {
296
293
this . hideCodeActionWidget ( ) ;
297
294
// this._contextViewService.hideContextView({ source: this });
You can’t perform that action at this time.
0 commit comments