mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
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:
13
extensions/data-workspace/src/dataworkspace.d.ts
vendored
13
extensions/data-workspace/src/dataworkspace.d.ts
vendored
@@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user