Skip to content

Conversation

@dmitrivMS
Copy link
Contributor

Fixes #247725

Copilot AI review requested due to automatic review settings December 23, 2025 21:10
@dmitrivMS dmitrivMS added the workbench-link Link protection in workbench label Dec 23, 2025
@dmitrivMS dmitrivMS self-assigned this Dec 23, 2025
@dmitrivMS dmitrivMS requested a review from lramos15 December 23, 2025 21:10
@dmitrivMS dmitrivMS enabled auto-merge December 23, 2025 21:10
@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 23, 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 user experience when opening the Trusted Domains editor by automatically positioning the cursor inside the [ ] brackets, making it immediately ready for users to add new trusted domains.

Key changes:

  • Extracts editor opening logic into a reusable openInEditor function
  • Implements JSON scanning to find the opening bracket and position cursor appropriately
  • Updates both command handler and quick pick handler to use the new function

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

Labels

workbench-link Link protection in workbench

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manage trusted domains should put cursor at line where user is expect to make a change

2 participants