Skip to content
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

Fix error when opening create project from db dialog without connection #23864

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

kisantia
Copy link
Contributor

Fix for #23861. The update project from db dialog did not have this problem because it uses getAzdataApi()!.connection.getCurrentConnection() to get the current connection, rather than using the profile that may or may not be passed in. Since it would be a bigger change to update the create project from db dialog to do the same thing, this is a smaller fix to verify that the profile actually has connection information, and not only { preserverFocus: false}.

I tested the other entry points (right click on server or db, command palette) to the create project from db dialog to make sure they are still working as expected.

…DatabaseDialog.ts

Co-authored-by: Benjin Dubishar <benjin.dubishar@gmail.com>
@kisantia kisantia merged commit 221408c into main Jul 13, 2023
@kisantia kisantia deleted the kisantia/fixOpenCreateProjectFromDb branch July 13, 2023 21:56
kisantia added a commit that referenced this pull request Jul 13, 2023
…on (#23864)

* Fix error when opening create project from db dialog without connection

* Update extensions/sql-database-projects/src/dialogs/createProjectFromDatabaseDialog.ts

Co-authored-by: Benjin Dubishar <benjin.dubishar@gmail.com>

---------

Co-authored-by: Benjin Dubishar <benjin.dubishar@gmail.com>
chlafreniere pushed a commit that referenced this pull request Jul 14, 2023
…on (#23864) (#23871)

* Fix error when opening create project from db dialog without connection

* Update extensions/sql-database-projects/src/dialogs/createProjectFromDatabaseDialog.ts



---------

Co-authored-by: Benjin Dubishar <benjin.dubishar@gmail.com>
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.

3 participants