mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Use start position when going reverse (microsoft/vscode-copilot#5946)
This commit is contained in:
parent
e96934d9a3
commit
49930e26dc
|
@ -728,7 +728,7 @@ export class CommentController implements IEditorContribution {
|
|||
return;
|
||||
}
|
||||
|
||||
const after = this.editor.getSelection().getEndPosition();
|
||||
const after = reverse ? this.editor.getSelection().getStartPosition() : this.editor.getSelection().getEndPosition();
|
||||
const sortedWidgets = this._commentWidgets.sort((a, b) => {
|
||||
if (reverse) {
|
||||
const temp = a;
|
||||
|
|
Loading…
Reference in a new issue