mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
@@ -13,6 +13,7 @@ import * as crypto from 'crypto';
|
||||
import { notebookLanguages, notebookConfigKey, pinnedBooksConfigKey, AUTHTYPE, INTEGRATED_AUTH, KNOX_ENDPOINT_PORT, KNOX_ENDPOINT_SERVER } from './constants';
|
||||
import { IPrompter, IQuestion, QuestionTypes } from '../prompts/question';
|
||||
import * as loc from '../common/localizedConstants';
|
||||
import { BookTreeItemFormat, BookTreeItemType } from '../book/bookTreeItem';
|
||||
|
||||
const localize = nls.loadMessageBundle();
|
||||
|
||||
@@ -441,6 +442,15 @@ export function isBookItemPinned(notebookPath: string): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
export function getNotebookType(book: BookTreeItemFormat): BookTreeItemType {
|
||||
if (book.tableOfContents.sections) {
|
||||
return BookTreeItemType.savedBookNotebook;
|
||||
}
|
||||
else {
|
||||
return BookTreeItemType.savedNotebook;
|
||||
}
|
||||
}
|
||||
|
||||
export function getPinnedNotebooks(): IBookNotebook[] {
|
||||
let config: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration(notebookConfigKey);
|
||||
let pinnedNotebooks: [] = config.get(pinnedBooksConfigKey);
|
||||
|
||||
Reference in New Issue
Block a user