mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 01:25:36 -05:00
* Automatically add intermediate folders for SQL project items. While using the SQL database projects through the API, I noticed that project may end up in somewhat inconsistent state, where files will be added to the project, but their parent folders will not. This in turn resulted in failure to remove these folders from project - they will show up in the UI tree, but deleting them will cause an error. In order to align with how Visual Studio manages the projects, this change will ensure that all intermediate folders are present in the project, when new files or folders are added. While this change improves project "correctness" when accessing it through SQL projects extension APIs, there is still a possibility that someone will open an "incorrect" previously created project. This change does not address it and folder removal may still fail. * Update the code to never throw on duplicate items when adding files and folders to project. After a conversation with the sqlproj owners, we agreed that there are no scenarios that would prompt us to throw an error, if duplicate item is being added to the project. Ultimately, the goal of such a request would be to have an item in the project file, which is already present, therefore the call becomes a no-op. This allowed me to simplify the new code that was ensuring all intermediate folders are present in the project when adding files and folders.
Microsoft SQL Server Database Projects for Azure Data Studio
Microsoft SQL Server Database Projects for Azure Data Studio includes:
Database Projects
The Database Projects extension provides a way to design, edit, and publish schemas for SQL databases from a source controlled project.
Please report issues and feature requests here.
Getting Started with Database Projects
- Create a new database project by going to the Projects viewlet or by searching Projects: New in the command palette.
- Existing database projects can be opened by going to the Projects viewlet or by searching Projects: Open Existing in the command palette.
- Start from an existing database by using Create Project From Database from the command palette or database context menu.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Privacy Statement
The Microsoft Enterprise and Developer Privacy Statement describes the privacy statement of this software.
License
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Source EULA.