Books/navigation (#6280)

* added previous and next buttons

* previous and next notebook API

* links for prev/next notebooks

* fixed first and last pages

* made code more readable

* addressed Kevin's comments

* moved logic over to BookTreeItem

* show buttons in dev mode only

* added BookTreeItemFormat interface

* added interface and enum

* removed localize call
This commit is contained in:
Lucy Zhang
2019-07-12 10:18:46 -07:00
committed by GitHub
parent 6606be998b
commit a706ff4d5b
13 changed files with 347 additions and 37 deletions

View File

@@ -5255,6 +5255,19 @@ declare module 'azdata' {
value: string;
}
export function registerNavigationProvider(provider: NavigationProvider): vscode.Disposable;
export interface NavigationProvider {
readonly providerId: string;
getNavigation(notebookUri: vscode.Uri): Thenable<NavigationResult>;
}
export interface NavigationResult {
hasNavigation: boolean;
previous?: vscode.Uri;
next?: vscode.Uri;
}
//#endregion
}