Files
vscode/extensions/markdown-language-features/server/src/config.ts
Matt Bierner 82c1bf86bf Show better error when rename fails in md (#161525)
* Show better error when rename fails in md

* Pick up latest MDLanguage service
2022-09-22 16:27:25 -07:00

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,
};
}