mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Introduce Trust Book in Book Viewlet (#9414)
This commit is contained in:
@@ -12,6 +12,10 @@ import { CommandContext, BuiltInCommands } from './constants';
|
||||
* this API from our code
|
||||
*/
|
||||
export class ApiWrapper {
|
||||
public getWorkspaceFolders(): vscode.WorkspaceFolder[] {
|
||||
return [].concat(vscode.workspace.workspaceFolders || []);
|
||||
}
|
||||
|
||||
public createOutputChannel(name: string): vscode.OutputChannel {
|
||||
return vscode.window.createOutputChannel(name);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ export const pythonVersion = '3.6.6';
|
||||
export const pythonPathConfigKey = 'pythonPath';
|
||||
export const existingPythonConfigKey = 'useExistingPython';
|
||||
export const notebookConfigKey = 'notebook';
|
||||
export const trustedBooksConfigKey = 'trustedBooks';
|
||||
export const maxBookSearchDepth = 'maxBookSearchDepth';
|
||||
|
||||
export const winPlatform = 'win32';
|
||||
@@ -33,6 +34,8 @@ export const localhostName = 'localhost';
|
||||
export const localhostTitle = localize('managePackages.localhost', "localhost");
|
||||
export const PackageNotFoundError = localize('managePackages.packageNotFound', "Could not find the specified package");
|
||||
|
||||
export const visitedNotebooksMementoKey = 'notebooks.visited';
|
||||
|
||||
export enum BuiltInCommands {
|
||||
SetContext = 'setContext'
|
||||
}
|
||||
|
||||
@@ -21,8 +21,12 @@ export const confirmReplace = localize('confirmReplace', "Folder already exists.
|
||||
export const openNotebookCommand = localize('openNotebookCommand', "Open Notebook");
|
||||
export const openMarkdownCommand = localize('openMarkdownCommand', "Open Markdown");
|
||||
export const openExternalLinkCommand = localize('openExternalLinkCommand', "Open External Link");
|
||||
|
||||
export const msgBookTrusted = localize('msgBookTrusted', "Book is now trusted in the workspace.");
|
||||
export const msgBookAlreadyTrusted = localize('msgBookAlreadyTrusted', "Book is already trusted in this workspace.");
|
||||
export const msgBookUntrusted = localize('msgBookUntrusted', "Book is no longer trusted in this workspace");
|
||||
export const msgBookAlreadyUntrusted = localize('msgBookAlreadyUntrusted', "Book is already untrusted in this workspace.");
|
||||
export const missingTocError = localize('bookInitializeFailed', "Failed to find a toc.yml.");
|
||||
|
||||
export function missingFileError(title: string): string { return localize('missingFileError', "Missing file : {0}", title); }
|
||||
export function invalidTocFileError(): string { return localize('InvalidError.tocFile', "Invalid toc file"); }
|
||||
export function invalidTocError(title: string): string { return localize('Invalid toc.yml', "Error: {0} has an incorrect toc.yml file", title); }
|
||||
|
||||
Reference in New Issue
Block a user