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

Add vscode support for System database package references for SDK-style sql projects #23383

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

kisantia
Copy link
Contributor

This adds support for system database package references for SDK-style projects in the sql projects vscode extension, now that the system database nuget packages are available:

New quickpick step to choose between PackageReference and ArtifactReference. This only shows up for SDK-style projects, not legacy projects.
image

Adding a system db ref as a PackageReference, followed by adding one as an ArtifactReference:
https://github.com/microsoft/azuredatastudio/assets/31145923/194cf0db-b46d-4a43-82e5-f45d1cba0a5b

@kisantia kisantia requested review from Benjin and SakshiS-harma June 13, 2023 23:32
@@ -1112,7 +1113,7 @@ declare module 'vscode-mssql' {
packageFilePath: string;
databaseName: string;
upgradeExisting: boolean;
sqlCommandVariableValues?: Map<string, string>;
sqlCommandVariableValues?: Record<string, string>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied over the state of the file in main in the vscode-mssql repo so that they're synced up, so there are a few changes like this one made in microsoft/vscode-mssql#17683, that hadn't made over to the ADS copy of the file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this!

@@ -1112,7 +1113,7 @@ declare module 'vscode-mssql' {
packageFilePath: string;
databaseName: string;
upgradeExisting: boolean;
sqlCommandVariableValues?: Map<string, string>;
sqlCommandVariableValues?: Record<string, string>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this!

@kisantia kisantia merged commit 42a0622 into main Jun 14, 2023
@kisantia kisantia deleted the kisantia/vscodePackageRef branch June 14, 2023 23:30
kavitham10 pushed a commit that referenced this pull request Jun 15, 2023
…le sql projects (#23383)

* changes for supporting system db package references in vscode

* cleanup

* address comments
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.

2 participants