mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Tests/book tests (#9075)
* Conditionally add associatedResource t untitled nb * Fix Jupyter Book notebook titles (#9039) * Fix notebook titles * Fix navigation links for books * Added comments Co-authored-by: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> * PR comment nit * fix book tests * tslint formatting fixes * merged master and undid formatting * added book path to error message Co-authored-by: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
@@ -24,8 +24,6 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
|
||||
private prompter: IPrompter;
|
||||
private _initializeDeferred: Deferred<void> = new Deferred<void>();
|
||||
|
||||
// For testing
|
||||
private _errorMessage: string;
|
||||
private _openAsUntitled: boolean;
|
||||
public viewId: string;
|
||||
public books: BookModel[];
|
||||
@@ -292,10 +290,6 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
|
||||
}
|
||||
}
|
||||
|
||||
public get errorMessage() {
|
||||
return this._errorMessage;
|
||||
}
|
||||
|
||||
getUntitledNotebookUri(resource: string): vscode.Uri {
|
||||
let untitledFileName = vscode.Uri.parse(`untitled:${resource}`);
|
||||
if (!this.currentBook.getAllBooks().get(untitledFileName.fsPath) && !this.currentBook.getAllBooks().get(path.basename(untitledFileName.fsPath))) {
|
||||
|
||||
Reference in New Issue
Block a user