mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Only keep one pending comment per location for continue on (#193555)
This commit is contained in:
@@ -430,7 +430,7 @@ export class CommentService extends Disposable implements ICommentService {
|
|||||||
changedOwners.add(pendingComment.owner);
|
changedOwners.add(pendingComment.owner);
|
||||||
} else {
|
} else {
|
||||||
const commentsForOwner = this._continueOnComments.get(pendingComment.owner)!;
|
const commentsForOwner = this._continueOnComments.get(pendingComment.owner)!;
|
||||||
if (commentsForOwner.every(comment => (comment.uri.toString() !== pendingComment.uri.toString()) || !Range.equalsRange(comment.range, pendingComment.range) || (comment.body !== pendingComment.body))) {
|
if (commentsForOwner.every(comment => (comment.uri.toString() !== pendingComment.uri.toString()) || !Range.equalsRange(comment.range, pendingComment.range))) {
|
||||||
commentsForOwner.push(pendingComment);
|
commentsForOwner.push(pendingComment);
|
||||||
changedOwners.add(pendingComment.owner);
|
changedOwners.add(pendingComment.owner);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user