mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Jupyter Book Search First Steps (#7704)
* Crawling for book search. needs icon * Remove context until decision on entry point * Add undefined check
This commit is contained in:
@@ -42,6 +42,8 @@ export class BookTreeItem extends vscode.TreeItem {
|
||||
this._sections = book.page;
|
||||
if (book.isUntitled) {
|
||||
this.contextValue = 'untitledBook';
|
||||
} else {
|
||||
this.contextValue = 'savedBook';
|
||||
}
|
||||
} else {
|
||||
this.setPageVariables();
|
||||
|
||||
@@ -191,7 +191,13 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public async searchJupyterBooks(): Promise<void> {
|
||||
if (this.currentBook && this.currentBook.bookPath) {
|
||||
let filesToIncludeFiltered = path.join(this.currentBook.bookPath, '**', '*.md') + ',' + path.join(this.currentBook.bookPath, '**', '*.ipynb');
|
||||
vscode.commands.executeCommand('workbench.action.findInFiles', { filesToInclude: filesToIncludeFiltered, query: '' });
|
||||
}
|
||||
}
|
||||
|
||||
private runThrottledAction(resource: string, action: () => void) {
|
||||
|
||||
Reference in New Issue
Block a user