Fix comment threads starting expanded (#218684)

This commit is contained in:
Alex Ross
2024-06-27 11:29:37 +02:00
committed by GitHub
parent 5ba8a8b7a1
commit 53ed07606e
3 changed files with 9 additions and 5 deletions

View File

@@ -424,6 +424,7 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
this._id,
this._uri,
extHostTypeConverter.Range.from(this._range),
this._comments.map(cmt => convertToDTOComment(this, cmt, this._commentsMap, this.extensionDescription)),
extensionDescription.identifier,
this._isTemplate,
editorId
@@ -436,9 +437,6 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
this.eventuallyUpdateCommentThread();
}));
// set up comments after ctor to batch update events.
this.comments = _comments;
this._localDisposables.push({
dispose: () => {
proxy.$deleteCommentThread(