Skip to content

Conversation

@dmitrivMS
Copy link
Contributor

Fixes #280540

Also removed ARIA label since it wasn't read by all readers and the plan is to add a command for current location.

Copilot AI review requested due to automatic review settings December 21, 2025 12:56
@dmitrivMS dmitrivMS added the quick-open Quick-open issues (search, commands) label Dec 21, 2025
@dmitrivMS dmitrivMS self-assigned this Dec 21, 2025
@dmitrivMS dmitrivMS enabled auto-merge December 21, 2025 12:56
@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 21, 2025
Copy link
Contributor

Copilot AI left a comment

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 enhances the "Go To Line" feature to treat column numbers as visible columns rather than character positions, which correctly handles tabs and other multi-column characters. The PR also removes the ARIA label, as mentioned in the description, with plans to replace it with a command for current location.

Key Changes

  • Column numbers in "Go To Line" input are now interpreted as visible columns, accounting for tabs and other multi-column characters
  • The CursorColumns utility is used to convert between visible columns (what users see) and actual column positions (character offsets)
  • ARIA label removed from the quick pick interface
  • Comprehensive tests added for tab handling with positive and negative column offsets

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.ts Added visible column calculations using CursorColumns utility for both offset mode and line:column mode; removed ARIA label assignment; imports CursorColumns
src/vs/editor/contrib/quickAccess/test/browser/gotoLineQuickAccess.test.ts Added runTabTest helper function and comprehensive test suite for tab handling with 26 test cases covering various column positions and negative offsets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

quick-open Quick-open issues (search, commands)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Go To Offset - position in the quick input does not match editor position

2 participants