Files
llm-in-text/completions-sample-code/vscode-node/lib/src/language/test/generatedLanguages.test.ts
T
ydy0615 d9ab341223 Add documentation for using Milkdown with various frameworks
- Created a new document for using components in Milkdown.
- Added a guide for using plugins in Milkdown, including toggling plugins programmatically and listing official plugins.
- Introduced a recipe for integrating Milkdown with Angular, including installation steps and component creation.
- Added a recipe for using Milkdown with Next.js, detailing installation and component setup.
- Created a guide for integrating Milkdown with NuxtJS, including installation and component creation.
- Added a comprehensive guide for using Milkdown with React, covering both Crepe and core Milkdown usage.
- Introduced a recipe for SolidJS integration with Milkdown, including installation and component creation.
- Added a guide for using Milkdown with Svelte, detailing installation and component setup.
- Created a comprehensive guide for integrating Milkdown with Vue, covering both Crepe and core Milkdown usage.
- Added a recipe for using Milkdown with Vue2, including installation and component creation.
2026-01-17 14:18:08 +08:00

27 lines
1.1 KiB
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { knownLanguages } from '../generatedLanguages';
import { languageMarkers } from '../../../../prompt/src/languageMarker';
import * as assert from 'assert';
suite('generated languages', function () {
// tex exists as latex and tex in language markers
// jsx exists as jsx and javascriptreact in language markers. However jsx is never detected according to telemetry data
// vue-html will be detected as html
const ignoredMappings = ['jsx', 'tex', 'vue-html'];
for (const marker in languageMarkers) {
if (!ignoredMappings.includes(marker)) {
test(`'${marker}' is generated`, function () {
assert.ok(
marker in knownLanguages,
'language for comment marker ' + marker + ' has not been generated'
);
});
}
}
});