microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.58k stars 908 forks source link

Fix target platform when creating project from database via quickpick #26049

Closed zijchen closed 1 week ago

zijchen commented 1 week ago

When creating a project from database via VS Code quickpick, the connection data is never passed to the controller, so it always defaulted to 160/Sql2022 target platform in the sqlproj. There used to be an option to create project from right clicking on a database in mssql, but it was removed at some point, making quickpick the only option. This PR fixes the code path via quickpick by passing the create project function as a callback.

coveralls commented 1 week ago

Pull Request Test Coverage Report for Build 11803821484

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
extensions/sql-database-projects/src/controllers/projectController.ts 0 1 0.0%
<!-- Total: 4 5 80.0% -->
Totals Coverage Status
Change from base Build 11786211831: 0.004%
Covered Lines: 30722
Relevant Lines: 68916

💛 - Coveralls