Pick up new markdown LS version (#157843)

This commit is contained in:
Matt Bierner
2022-08-10 18:16:24 -07:00
committed by GitHub
parent f3e488a7b7
commit 38ea5c22a6
8 changed files with 118 additions and 142 deletions

View File

@@ -3,17 +3,25 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export interface LsConfiguration {
/**
* List of file extensions should be considered as markdown.
*
* These should not include the leading `.`.
*/
readonly markdownFileExtensions: readonly string[];
}
import { LsConfiguration } from 'vscode-markdown-languageservice/out/config';
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 {