-
Notifications
You must be signed in to change notification settings - Fork 937
Fixing the missing option from vscode "create project from database" #26317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Is there a way to add a test for this launch point? |
Yeah, having a test that checks the option would be helpful to catch any such regression in future, will add a test for that! |
There was a problem hiding this 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 addresses the issue where the 'create project from database' option was not visible in VS Code by updating the "when" condition for the command in package.json.
- Updated the regex in the "when" condition to match the new viewItem syntax.
- Simplified the viewItem constraint to support the correct visibility.
Comments suppressed due to low confidence (1)
extensions/sql-database-projects/package.json:480
- Consider adding an inline comment explaining the rationale behind the updated regex pattern for clarity and future maintenance.
"when": "!azdataAvailable && view == objectExplorer && viewItem =~ /\btype=(disconnectedServer|Server|Database)\b/",
Pull Request Template – Azure Data Studio
This pull request includes a small change to the
extensions/sql-database-projects/package.json
file. The change simplifies thewhen
condition for thesqlDatabaseProjects.createProjectFromDatabase
command by updating specificviewItem
constraints.Description
'Create project from database' option is not visible to the users in vscode with one of the recent releases. This PR fixes the issue by updating the
viewItem
constraint from thewhen
condition for thesqlDatabaseProjects.createProjectFromDatabase
command in thepackage.json
file that is stopping the option being visible, as viewItem current syntax is not supported.Issue: #26309
Code Changes Checklist
npm run test
)Reviewers: Please read our reviewer guidelines
Before: VsCode


After: VsCode

