We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea8fbb commit e545871Copy full SHA for e545871
src/vs/workbench/api/browser/mainThreadComments.ts
@@ -109,8 +109,10 @@ export class MainThreadCommentThread<T> implements languages.CommentThread<T> {
109
}
110
111
set collapsibleState(newState: languages.CommentThreadCollapsibleState | undefined) {
112
- this._collapsibleState = newState;
113
- this._onDidChangeCollapsibleState.fire(this._collapsibleState);
+ if (newState !== this._collapsibleState) {
+ this._collapsibleState = newState;
114
+ this._onDidChangeCollapsibleState.fire(this._collapsibleState);
115
+ }
116
117
118
private _initialCollapsibleState: languages.CommentThreadCollapsibleState | undefined;
0 commit comments