mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Dispose scoped instantiation service in comments (#213808)
This commit is contained in:
parent
49930e26dc
commit
7e451df2cf
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue