Description
Is your feature request related to a problem? Please describe.
ServerInfo
is used to determine the target platform when creating a database project from an existing database. Unfortunately, Fabric DW has the same engine edition as Serverless DW (OnDemand
) and the only way to differentiate the two is from the server URL.
Describe the solution or feature you'd like
The server URL be accessible via azdata.ServerInfo
https://github.com/microsoft/azuredatastudio/blob/25a658775c1de09448625410d9b12a2771d147ac/src/sql/azdata.d.ts#L530C19-L530C29
Describe alternatives you've considered
In #24014 I am using the server name from the ConnectionProfile, but it only works if the connection is already selected prior to creating a project (via the list of connections). There is no way to get the server name after using this dialog to select a connection:
Additional context
Server name is accessible via vscode-mssql
azuredatastudio/extensions/types/vscode-mssql.d.ts
Lines 237 to 241 in 25a6587