Files
vscode/extensions/markdown/preview-src/settings.ts
Matt Bierner 3c4002f850 Type settings
2018-03-05 11:56:22 -08:00

19 lines
745 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export interface PreviewSettings {
source: string;
line: number;
lineCount: number;
scrollPreviewWithEditor: boolean;
scrollEditorWithPreview: boolean;
disableSecurityWarnings: boolean;
doubleClickToSwitchToEditor: boolean;
}
export function getSettings(): PreviewSettings {
return JSON.parse(document.getElementById('vscode-markdown-preview-data').getAttribute('data-settings'));
}