mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Don't show update project warning for new style sqlproj (#17490)
* don't show SSDT update warning for new style projects * update strings * add checks for the 2 other ways to specify msbuild sdk * add link to docs on how to use project sdk Co-authored-by: Kim Santiago <kisantia@Kims-MacBook-Pro.local>
This commit is contained in:
@@ -1057,25 +1057,6 @@ export class ProjectsController {
|
||||
return new AddDatabaseReferenceDialog(project);
|
||||
}
|
||||
|
||||
public async updateProjectForRoundTrip(project: Project) {
|
||||
if (project.importedTargets.includes(constants.NetCoreTargets) && !project.containsSSDTOnlySystemDatabaseReferences()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!project.importedTargets.includes(constants.NetCoreTargets)) {
|
||||
const result = await vscode.window.showWarningMessage(constants.updateProjectForRoundTrip, constants.yesString, constants.noString);
|
||||
if (result === constants.yesString) {
|
||||
await project.updateProjectForRoundTrip();
|
||||
await project.updateSystemDatabaseReferencesInProjFile();
|
||||
}
|
||||
} else if (project.containsSSDTOnlySystemDatabaseReferences()) {
|
||||
const result = await vscode.window.showWarningMessage(constants.updateProjectDatabaseReferencesForRoundTrip, constants.yesString, constants.noString);
|
||||
if (result === constants.yesString) {
|
||||
await project.updateSystemDatabaseReferencesInProjFile();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async addTemplateFiles(newProjFilePath: string, projectTypeId: string): Promise<void> {
|
||||
if (projectTypeId === constants.emptySqlDatabaseProjectTypeId || newProjFilePath === '') {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user