Skip to content

Use startColumn in growUntilVariableBoundaries - #324523

Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit into
microsoft:mainfrom
yavanosta:use-start-column-for-long-distance-widget
Jul 7, 2026
Merged

Benjamin Christopher Simmonds (benibenj) merged 1 commit into
microsoft:mainfrom
yavanosta:use-start-column-for-long-distance-widget

Conversation

@yavanosta

Copy link
Copy Markdown
Contributor

Seems that it should be used the same way as endColumn but due to the typo it is not used at all

Seems that it should be used the same way as `endColumn` but due to the typo it is not used at all
Copilot AI review requested due to automatic review settings July 6, 2026 15:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the growUntilVariableBoundaries helper of the long-distance inline-edit preview editor. The function computes a grown left boundary in the local variable startColumn (lines 396–399), but the returned Range mistakenly used the original, un-grown startPosition.column, making the leftward-growth loop dead code. The fix uses startColumn, making the start edge symmetric with how the already-correct endColumn is used.

Changes:

  • Return the computed startColumn instead of startPosition.column so the range actually grows leftward to the variable boundary.
@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit b3978bb into microsoft:main Jul 7, 2026
29 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.129.0 milestone Jul 7, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Aug 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

5 participants