Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds the initial scaffold for a Code Analysis configuration dialog in the mssql extension. The implementation follows an iterative-first approach, focusing on UI structure and state wiring without backend save/apply functionality, as stated in the PR description. The dialog allows users to view code analysis rules for SQL database projects with a table-based interface showing rule status, severity, and enabled state.
Changes:
- Added React-based Code Analysis dialog with table view for displaying SQL code analysis rules
- Integrated webview controller with telemetry and state management
- Added localization support for dialog labels and messages
- Added SVG icons for light and dark themes
- Registered command handler in mainController and integrated with sql-database-projects extension
Reviewed changes
Copilot reviewed 16 out of 18 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| extensions/mssql/src/codeAnalysis/codeAnalysisWebViewController.ts | New controller managing the Code Analysis webview, state, and RPC handlers with placeholder rule loading |
| extensions/mssql/src/sharedInterfaces/codeAnalysis.ts | Type definitions for Code Analysis state, rules, reducers, and provider interface |
| extensions/mssql/src/reactviews/pages/CodeAnalysis/codeAnalysis.tsx | React component implementing the dialog UI with rules table and action buttons |
| extensions/mssql/src/reactviews/pages/CodeAnalysis/codeAnalysisStateProvider.tsx | React context provider for managing Code Analysis state and webview RPC |
| extensions/mssql/src/reactviews/pages/CodeAnalysis/codeAnalysisSelector.ts | Custom hook for selecting Code Analysis state slices |
| extensions/mssql/src/reactviews/pages/CodeAnalysis/index.tsx | Entry point for rendering the Code Analysis page with providers |
| extensions/mssql/src/reactviews/common/locConstants.ts | Added codeAnalysis localization section and common.save string |
| extensions/mssql/src/constants/locConstants.ts | Added CodeAnalysis.Title localization constant |
| extensions/mssql/src/constants/constants.ts | Added command constant and view ID for Code Analysis |
| extensions/mssql/src/enums.ts | Added RuleSeverity enum for code analysis severity levels |
| extensions/mssql/src/controllers/mainController.ts | Registered configureCodeAnalysisSettings command handler |
| extensions/mssql/src/sharedInterfaces/telemetry.ts | Added telemetry actions for Code Analysis dialog events |
| extensions/mssql/test/unit/codeAnalysisWebViewController.test.ts | Basic unit tests for controller initialization and icon paths |
| extensions/mssql/scripts/bundle-reactviews.js | Added codeAnalysis entry point to build configuration |
| extensions/mssql/media/codeAnalysis_light.svg | Light theme icon for Code Analysis dialog |
| extensions/mssql/media/codeAnalysis_dark.svg | Dark theme icon for Code Analysis dialog |
| localization/xliff/vscode-mssql.xlf | Added localization entries for Code Analysis strings |
| extensions/mssql/l10n/bundle.l10n.json | Added/reorganized localization strings including Code Analysis entries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PR Changes
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #21270 +/- ##
==========================================
+ Coverage 71.84% 71.88% +0.04%
==========================================
Files 281 283 +2
Lines 90090 90333 +243
Branches 4648 4651 +3
==========================================
+ Hits 64722 64934 +212
- Misses 25368 25399 +31
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 18 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 18 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 18 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 18 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 18 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 18 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
This PR Adds:
Code Changes Checklist
npm run test)Reviewers: Please read our reviewer guidelines