mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
33 lines
828 B
TypeScript
33 lines
828 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { LsConfiguration } from 'vscode-markdown-languageservice';
|
|
|
|
export { LsConfiguration };
|
|
|
|
const defaultConfig: LsConfiguration = {
|
|
markdownFileExtensions: ['md'],
|
|
knownLinkedToFileExtensions: [
|
|
'jpg',
|
|
'jpeg',
|
|
'png',
|
|
'gif',
|
|
'webp',
|
|
'bmp',
|
|
'tiff',
|
|
],
|
|
excludePaths: [
|
|
'**/.*',
|
|
'**/node_modules/**',
|
|
]
|
|
};
|
|
|
|
export function getLsConfiguration(overrides: Partial<LsConfiguration>): LsConfiguration {
|
|
return {
|
|
...defaultConfig,
|
|
...overrides,
|
|
};
|
|
}
|