mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Feat/create book (#9159)
* added secondary action * create book command * open as untitled * create toc.yml and update title * added comments * throw error if filenames have unsupported chars * update prompt message * remove the toLocaleLower * added await * moced createbookpath out of the command handler * removed tolocalelower and added comments * moved the formatting and file handling code from core to notebook * fixes for contents with folders * collapse the code cell * remove output * reused existing command to open book * comment typu and added await
This commit is contained in:
@@ -180,6 +180,15 @@
|
||||
"dark": "resources/dark/open_notebook_inverse.svg",
|
||||
"light": "resources/light/open_notebook.svg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "notebook.command.createBook",
|
||||
"title": "%title.createJupyterBook%",
|
||||
"category": "%books-preview-category%",
|
||||
"icon": {
|
||||
"dark": "resources/dark/open_notebook_inverse.svg",
|
||||
"light": "resources/light/open_notebook.svg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"languages": [
|
||||
@@ -321,6 +330,10 @@
|
||||
"command": "notebook.command.openBook",
|
||||
"when": "view == bookTreeView",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
"command": "notebook.command.createBook",
|
||||
"when": "view == bookTreeView"
|
||||
}
|
||||
],
|
||||
"notebook/toolbar": [
|
||||
|
||||
Reference in New Issue
Block a user