mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Fix comment threads starting expanded (#218684)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user