Skip to content

Load VS extension for all SQL scripts#576

Merged
ErikEJ merged 2 commits into
masterfrom
load-on-sql
Jun 16, 2026
Merged

Load VS extension for all SQL scripts#576
ErikEJ merged 2 commits into
masterfrom
load-on-sql

Conversation

@ErikEJ

@ErikEJ ErikEJ commented Jun 16, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 16, 2026 12:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Not ready to approve

The new activation constraints can prevent the extension (and its command contributions) from loading when a SQL project is active but no SQL editor is open, causing a functional regression.

Pull request overview

This PR updates the Visual Studio (VSIX) extension activation logic so the extension loads based on the active editor’s SQL content type, rather than only when a SQL project is active (SqlProj / Microsoft.Build.Sql / classic .sqlproj).

Changes:

  • Replaced project-capability/build-property activation constraints with editor content-type activation constraints (SQL, SQL Server Tools).
File summaries
File Description
tools/SqlAnalyzerVsix/SqlAnalyzerExtension.cs Changes when the VSIX extension loads by switching from project-based to editor content-type-based activation.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

Comment thread tools/SqlAnalyzerVsix/SqlAnalyzerExtension.cs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Not ready to approve

The new hard-coded Sql170 fallback can change behavior and potentially break command execution for users whose installed analyzer CLI/tooling defaults to (or only supports) Sql160.

Copilot's findings
  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

Comment thread tools/SqlAnalyzerVsix/SqlAnalyzerDiagnosticsService.cs
@ErikEJ ErikEJ merged commit 9144740 into master Jun 16, 2026
2 checks passed
@ErikEJ ErikEJ deleted the load-on-sql branch June 16, 2026 13:11
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.

2 participants