Dragging a folding marker results in The cursor must be within a commenting range to add a comment. (#240985)

Fixes #240306
This commit is contained in:
Alex Ross
2025-02-17 11:29:29 +01:00
committed by GitHub
parent 978e8605eb
commit a9a797c322
@@ -1084,7 +1084,7 @@ export class CommentController implements IEditorContribution {
}
private onEditorMouseDown(e: IEditorMouseEvent): void {
this.mouseDownInfo = parseMouseDownInfoFromEvent(e);
this.mouseDownInfo = this._activeEditorHasCommentingRange.get() ? parseMouseDownInfoFromEvent(e) : null;
}
private onEditorMouseUp(e: IEditorMouseEvent): void {