mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
19 lines
745 B
TypeScript
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'));
|
|
}
|