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