Drag and drop support for sql projects tree (#21956)

* Drag and drop working

* update comment

* move to projectController

* remove registerTreeDataProvider

* add tests

* fix dragging to project root

* cleanup

* addressing comments
This commit is contained in:
Kim Santiago
2023-02-21 15:45:25 -08:00
committed by GitHub
parent effdf4f538
commit a7f68ebd33
8 changed files with 260 additions and 7 deletions

View File

@@ -121,6 +121,19 @@ declare module 'dataworkspace' {
* Gets the project image to be used as background in dashboard container
*/
readonly image?: azdata.ThemedIconPath;
/**
* Whether or not the tree data provider supports drag and drop
*/
readonly supportsDragAndDrop?: boolean;
/**
* Moves a file from the source to target location. Must be implemented if supportsDragAndDrop is true
* @param projectUri
* @param source
* @param target
*/
moveFile?(projectUri: vscode.Uri, source: any, target: WorkspaceTreeItem): Promise<void>;
}
/**