hide nav buttons for non-book notebooks (#6377)

* hide nav buttons for non-book notebooks

* updated buttons for all themes

* changed foregroundColor to buttonForegroundColor
This commit is contained in:
Lucy Zhang
2019-07-16 16:26:03 -07:00
committed by GitHub
parent caff76b723
commit 43bd7268e8
6 changed files with 61 additions and 24 deletions

View File

@@ -693,6 +693,10 @@ export class MainThreadNotebookDocumentsAndEditors extends Disposable implements
$registerNavigationProvider(providerId: string, handle: number): void {
this._notebookService.registerNavigationProvider({
providerId: providerId,
hasNavigation: true,
getNavigation: async (uri) => {
return await this._proxy.$getNavigation(handle, uri);
},
onNext: async (uri) => {
let result = await this._proxy.$getNavigation(handle, uri);
if (result) {