mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +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);
|
||||
} else {
|
||||
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);
|
||||
changedOwners.add(pendingComment.owner);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user