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:
@@ -239,6 +239,10 @@
|
||||
"command": "notebook.command.closeNotebook",
|
||||
"title": "%title.closeJupyterNotebook%"
|
||||
},
|
||||
{
|
||||
"command": "notebook.command.moveTo",
|
||||
"title": "%title.moveTo%"
|
||||
},
|
||||
{
|
||||
"command": "notebook.command.createBook",
|
||||
"title": "%title.createJupyterBook%",
|
||||
@@ -385,6 +389,10 @@
|
||||
"command": "notebook.command.closeNotebook",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "notebook.command.moveTo",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "notebook.command.revealInBooksViewlet",
|
||||
"when": "false"
|
||||
@@ -457,6 +465,10 @@
|
||||
"command": "notebook.command.closeNotebook",
|
||||
"when": "view == bookTreeView && viewItem == savedNotebook"
|
||||
},
|
||||
{
|
||||
"command": "notebook.command.moveTo",
|
||||
"when": "view == bookTreeView && viewItem == savedNotebook || view == bookTreeView && viewItem == section"
|
||||
},
|
||||
{
|
||||
"command": "notebook.command.pinNotebook",
|
||||
"when": "view == bookTreeView && viewItem == savedNotebook",
|
||||
|
||||
Reference in New Issue
Block a user