Dispose scoped instantiation service in comments (#213808)

This commit is contained in:
Alex Ross 2024-06-03 02:45:27 -07:00 committed by GitHub
parent 49930e26dc
commit 7e451df2cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,9 +139,9 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
super(editor, { keepEditorSelection: true, isAccessible: true });
this._contextKeyService = contextKeyService.createScoped(this.domNode);
this._scopedInstantiationService = instantiationService.createChild(new ServiceCollection(
this._scopedInstantiationService = this._globalToDispose.add(instantiationService.createChild(new ServiceCollection(
[IContextKeyService, this._contextKeyService]
));
)));
const controller = this.commentService.getCommentController(this._uniqueOwner);
if (controller) {