avoid redundant range update

This commit is contained in:
Peng Lyu
2019-03-12 14:25:44 -07:00
parent 51ba7278af
commit 9f6d5c009e
2 changed files with 5 additions and 3 deletions

View File

@@ -328,8 +328,10 @@ export class ExtHostCommentThread implements vscode.CommentThread {
}
set range(range: vscode.Range) {
this._range = range;
this._proxy.$updateCommentThreadRange(this._commentControlHandle, this.handle, extHostTypeConverter.Range.from(this._range));
if (range.isEqual(this._range)) {
this._range = range;
this._proxy.$updateCommentThreadRange(this._commentControlHandle, this.handle, extHostTypeConverter.Range.from(this._range));
}
}
get range(): vscode.Range {