Skip to content

Commit

Permalink
Fix memory leak in InlineSuggestionHintsContentWidget (#241877)
Browse files Browse the repository at this point in the history
fix leak
  • Loading branch information
benibenj authored Feb 25, 2025
1 parent ae43cc7 commit 949b5cf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ export class InlineSuggestionHintsContentWidget extends Disposable implements IC
return action;
}

private readonly previousAction = this.createCommandAction(showPreviousInlineSuggestionActionId, localize('previous', 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon));
private readonly availableSuggestionCountAction = new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false);
private readonly nextAction = this.createCommandAction(showNextInlineSuggestionActionId, localize('next', 'Next'), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon));
private readonly previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, localize('previous', 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon)));
private readonly availableSuggestionCountAction = this._register(new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false));
private readonly nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, localize('next', 'Next'), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon)));

private readonly toolBar: CustomizedMenuWorkbenchToolBar;

Expand Down

0 comments on commit 949b5cf

Please sign in to comment.