Skip to content

Add Change Connection to SQL editor context menu#22098

Open
aasimkhan30 wants to merge 1 commit into
mainfrom
aasim/fix/20383
Open

Add Change Connection to SQL editor context menu#22098
aasimkhan30 wants to merge 1 commit into
mainfrom
aasim/fix/20383

Conversation

@aasimkhan30
Copy link
Copy Markdown
Contributor

Description

Adds the existing mssql.changeConnection command to the SQL editor right-click context menu so users can switch connections from an open editor tab without using the command palette.

Fixes #20383

Validation:

  • Parsed extensions/mssql/package.json with Node to verify the manifest remains valid JSON.
  • Precommit hook ran successfully during commit.

Code Changes Checklist

  • New or updated unit tests added
  • All existing tests pass (npm run test)
  • Code follows contributing guidelines
  • Telemetry/logging updated if relevant
  • No regressions or UX breakage

Reviewers: Please read our reviewer guidelines

Copy link
Copy Markdown
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

Adds the existing mssql.changeConnection command to the SQL editor’s right-click context menu, improving discoverability and making it easier to switch connections directly from an open .sql editor tab (per #20383).

Changes:

  • Contributes mssql.changeConnection to the editor/context menu for SQL editors.
  • Gates visibility to appropriate states (not diff editor, connected resource, not running a query, UI not hidden).

@github-actions
Copy link
Copy Markdown

PR Changes

Category Target Branch PR Branch Difference
vscode-mssql VSIX 78066 KB 78066 KB ⚪ 0 KB ( 0% )
sql-database-projects VSIX 6310 KB 6310 KB ⚪ 0 KB ( 0% )
data-workspace VSIX 535 KB 535 KB ⚪ 0 KB ( 0% )
keymap VSIX 7 KB 7 KB ⚪ 0 KB ( 0% )

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.83%. Comparing base (218a589) to head (2984c35).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #22098   +/-   ##
=======================================
  Coverage   74.83%   74.83%           
=======================================
  Files         394      394           
  Lines      120403   120403           
  Branches     7197     7197           
=======================================
  Hits        90102    90102           
  Misses      30301    30301           
Flag Coverage Δ
data-workspace 77.10% <ø> (ø)
mssql 74.52% <ø> (ø)
sqlproj 77.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add "Change Connection" to Right-Click Context Menu in Editor Window

3 participants