mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
parent
4dc272701b
commit
1b8ac1d09d
|
@ -382,6 +382,7 @@ export class CommentController implements IEditorContribution {
|
|||
this._commentingRangeDecorator.update(this.editor, []);
|
||||
this._commentThreadRangeDecorator.update(this.editor, []);
|
||||
dispose(this._commentWidgets);
|
||||
this._commentWidgets = [];
|
||||
}
|
||||
}));
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ export class CommentsPanel extends ViewPane {
|
|||
const commentToReveal = element instanceof ResourceWithCommentThreads ? element.commentThreads[0].comment.uniqueIdInThread : element.comment.uniqueIdInThread;
|
||||
if (threadToReveal && isCodeEditor(editor)) {
|
||||
const controller = CommentController.get(editor);
|
||||
controller?.revealCommentThread(threadToReveal, commentToReveal, false);
|
||||
controller?.revealCommentThread(threadToReveal, commentToReveal, true);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue