diff options
Diffstat (limited to 'extensions/markdown-language-features/server/src/config.ts')
-rw-r--r-- | extensions/markdown-language-features/server/src/config.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/extensions/markdown-language-features/server/src/config.ts b/extensions/markdown-language-features/server/src/config.ts new file mode 100644 index 00000000000..8fb952bb943 --- /dev/null +++ b/extensions/markdown-language-features/server/src/config.ts @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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[]; +} + +const defaultConfig: LsConfiguration = { + markdownFileExtensions: ['md'], +}; + +export function getLsConfiguration(overrides: Partial<LsConfiguration>): LsConfiguration { + return { + ...defaultConfig, + ...overrides, + }; +} |