Adding a multi-line comment is jarring (#159766)

Fixes #159765
This commit is contained in:
Alex Ross
2022-09-01 16:55:48 +02:00
committed by GitHub
parent 4a31932b73
commit d73ccaa856
@@ -173,7 +173,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
public reveal(commentUniqueId?: number, focus: boolean = false) {
if (!this._isExpanded) {
this.show({ lineNumber: this._commentThread.range.startLineNumber, column: 1 }, 2);
this.show({ lineNumber: this._commentThread.range.endLineNumber, column: 1 }, 2);
}
if (commentUniqueId !== undefined) {
@@ -258,7 +258,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
public expand(): Promise<void> {
this._commentThread.collapsibleState = languages.CommentThreadCollapsibleState.Expanded;
const lineNumber = this._commentThread.range.startLineNumber;
const lineNumber = this._commentThread.range.endLineNumber;
this.show({ lineNumber, column: 1 }, 2);
return Promise.resolve();