Skip to content

Commit

Permalink
Fixes leaking Ghost Text model by properly registering it.
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Jun 25, 2021
1 parent 72e47d9 commit f9f0798
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class GhostTextContextKeys {
*/
export class ActiveGhostTextController extends Disposable {
private readonly contextKeys = new GhostTextContextKeys(this.contextKeyService);
public readonly model = this.instantiationService.createInstance(GhostTextModel, this.editor);
public readonly model = this._register(this.instantiationService.createInstance(GhostTextModel, this.editor));
public readonly widget = this._register(this.instantiationService.createInstance(GhostTextWidget, this.editor, this.model));

constructor(
Expand Down

0 comments on commit f9f0798

Please sign in to comment.