mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -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:
@@ -22,6 +22,18 @@ export class SqlDatabaseProjectProvider implements dataworkspace.IProjectProvide
|
||||
|
||||
}
|
||||
|
||||
supportsDragAndDrop: boolean = true;
|
||||
|
||||
/**
|
||||
* Move a file in the project tree
|
||||
* @param projectUri
|
||||
* @param source
|
||||
* @param target
|
||||
*/
|
||||
public async moveFile(projectUri: vscode.Uri, source: any, target: dataworkspace.WorkspaceTreeItem): Promise<void> {
|
||||
return this.projectController.moveFile(projectUri, source, target);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the project tree data provider
|
||||
* @param projectFilePath The project file Uri
|
||||
|
||||
Reference in New Issue
Block a user