mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Support trusted books in new version of Jupyter Books (#12874)
* Fix path gor v1 and v2 boooks * Add tests and address PR comments * fix failing tests * Address pr comments * address pr comments
This commit is contained in:
@@ -92,7 +92,7 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
|
||||
trustBook(bookTreeItem?: BookTreeItem): void {
|
||||
let bookPathToTrust: string = bookTreeItem ? bookTreeItem.root : this.currentBook?.bookPath;
|
||||
if (bookPathToTrust) {
|
||||
let trustChanged = this._bookTrustManager.setBookAsTrusted(bookPathToTrust);
|
||||
let trustChanged = this._bookTrustManager.setBookAsTrusted(bookPathToTrust, true);
|
||||
if (trustChanged) {
|
||||
let notebookDocuments = azdata.nb.notebookDocuments;
|
||||
if (notebookDocuments) {
|
||||
|
||||
Reference in New Issue
Block a user