mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Remove build and folder includes when converting to SDK-style project (#18889)
* remove Build and Folder Includes * add tests * cleanup * rollback if there was an error during the conversion
This commit is contained in:
@@ -887,15 +887,19 @@ export class ProjectsController {
|
||||
*/
|
||||
public async convertToSdkStyleProject(context: dataworkspace.WorkspaceTreeItem): Promise<void> {
|
||||
const project = this.getProjectFromContext(context);
|
||||
const updateResult = await project.convertProjectToSdkStyle();
|
||||
|
||||
await project.convertProjectToSdkStyle();
|
||||
void this.reloadProject(context);
|
||||
if (!updateResult) {
|
||||
void vscode.window.showErrorMessage(constants.updatedToSdkStyleError(project.projectFileName));
|
||||
} else {
|
||||
void this.reloadProject(context);
|
||||
|
||||
// show message that project file can be simplified
|
||||
const result = await vscode.window.showInformationMessage(constants.projectUpdatedToSdkStyle(project.projectFileName), constants.learnMore);
|
||||
// show message that project file can be simplified
|
||||
const result = await vscode.window.showInformationMessage(constants.projectUpdatedToSdkStyle(project.projectFileName), constants.learnMore);
|
||||
|
||||
if (result === constants.learnMore) {
|
||||
void vscode.env.openExternal(vscode.Uri.parse(constants.sdkLearnMoreUrl!));
|
||||
if (result === constants.learnMore) {
|
||||
void vscode.env.openExternal(vscode.Uri.parse(constants.sdkLearnMoreUrl!));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user