mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Editing Books (#13535)
* start work on ui * Move notebooks complete * Simplify version handling * fix issues with add section method * fix issues with the edit experience and add the quick pick for editing * add version handler for re-writing tocs * fix book toc manager tests * add notebook test * fix localize constant * normalize paths on windows * check that a section has sections before attempting to mve files * Implement method for renaming duplicated files * moving last notebook from section converts the section into notebook * Add recovery method restore original state of file system * Add clean up, for files that are copied instead of renamed * remove dir complexity * divide edit book in methods for easier testing and remove promise chain * Keep structure of toc * normalize paths on windows * fix external link * Add other fields for versions * fix paths in uri of findSection * add section to section test * Add error messages * address pr comments and add tests * check that the new path of a notebook is different from the original path before deleting
This commit is contained in:
@@ -19,6 +19,7 @@ import { RemoteBookDialog } from './dialog/remoteBookDialog';
|
||||
import { RemoteBookDialogModel } from './dialog/remoteBookDialogModel';
|
||||
import { IconPathHelper } from './common/iconHelper';
|
||||
import { ExtensionContextHelper } from './common/extensionContextHelper';
|
||||
import { BookTreeItem } from './book/bookTreeItem';
|
||||
|
||||
const localize = nls.loadMessageBundle();
|
||||
|
||||
@@ -69,6 +70,10 @@ export async function activate(extensionContext: vscode.ExtensionContext): Promi
|
||||
});
|
||||
}));
|
||||
|
||||
extensionContext.subscriptions.push(vscode.commands.registerCommand('notebook.command.moveTo', async (book: BookTreeItem) => {
|
||||
await bookTreeViewProvider.editBook(book);
|
||||
}));
|
||||
|
||||
let model = new RemoteBookDialogModel();
|
||||
let remoteBookController = new RemoteBookController(model, appContext.outputChannel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user