mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 09:35:41 -05:00
Edit book using drag and drop (#16906)
- Use the onDrop method for moving notebooks/sections in the Notebooks Tree View. - Allow multi selection in tree view - Modify notebook commands to only show when a single tree item is selected.
This commit is contained in:
@@ -62,8 +62,9 @@ export async function activate(extensionContext: vscode.ExtensionContext): Promi
|
||||
await pinnedBookTreeViewProvider.removeNotebookFromPinnedView(book);
|
||||
}));
|
||||
|
||||
extensionContext.subscriptions.push(vscode.commands.registerCommand('notebook.command.moveTo', async (book: BookTreeItem) => {
|
||||
await bookTreeViewProvider.editBook(book);
|
||||
extensionContext.subscriptions.push(vscode.commands.registerCommand('notebook.command.moveTo', async (firstTreeItem: BookTreeItem, treeItems?: BookTreeItem[]) => {
|
||||
let allTreeItems = treeItems ? [firstTreeItem, ...treeItems] : [firstTreeItem];
|
||||
await bookTreeViewProvider.moveTreeItems(allTreeItems);
|
||||
}));
|
||||
|
||||
let model = new RemoteBookDialogModel();
|
||||
|
||||
Reference in New Issue
Block a user