[Application QuickStart] [Backend] Adding support for opening Swagger (REST) and Nitro (GraphQL) endpoints for DAB directly in VS Code#21495
Conversation
There was a problem hiding this comment.
Pull request overview
Adds the ability for the Schema Designer DAB deployment completion screen to open REST/GraphQL-related endpoints (Swagger + Nitro) directly in VS Code’s built-in browser via a new webview→extension notification.
Changes:
- Introduces a new DAB notification (
dab/openUrl) and exposes anopenUrlcallback through the DAB React context. - Adds “View Swagger” / “Open Nitro” actions to the DAB deployment completion UI to launch endpoints in the built-in browser.
- Adds localization strings for the new UI labels.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| localization/xliff/vscode-mssql.xlf | Adds new trans-units for “Open Nitro” and “View Swagger”. |
| extensions/mssql/src/sharedInterfaces/dab.ts | Defines OpenUrlNotification + params for webview→extension URL opening. |
| extensions/mssql/src/schemaDesigner/schemaDesignerWebviewController.ts | Handles dab/openUrl by invoking simpleBrowser.show. |
| extensions/mssql/src/reactviews/pages/SchemaDesigner/dab/deployment/dabDeploymentComplete.tsx | Adds new endpoint actions (open URL + copy) for REST/GraphQL endpoints. |
| extensions/mssql/src/reactviews/pages/SchemaDesigner/dab/dabContext.tsx | Exposes openUrl() in DAB context via RPC notification. |
| extensions/mssql/src/reactviews/common/locConstants.ts | Adds localized constants for “View Swagger” / “Open Nitro”. |
| extensions/mssql/l10n/bundle.l10n.json | Adds l10n entries for the new strings. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
PR Changes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21495 +/- ##
=======================================
Coverage 72.53% 72.53%
=======================================
Files 330 330
Lines 98173 98201 +28
Branches 5430 5435 +5
=======================================
+ Hits 71206 71234 +28
Misses 26967 26967
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.

Description
This pull request adds new functionality to the Schema Designer deployment completion screen, allowing users to open API endpoints (such as Swagger and Nitro) directly in VS Code's built-in browser.
API and context changes:
dab/openUrl) and associated parameters for opening URLs in the webview/browser.openUrlcallback to the Dab context and provider, making it available to UI components.Code Changes Checklist
npm run test)Reviewers: Please read our reviewer guidelines