[Monaco][Peek] Support .vsconfig, .sln, .vcproj, .vcxproj files (#26318)

This commit is contained in:
Stefan Markovic 2023-05-26 09:46:12 +02:00 committed by GitHub
parent 42e707966d
commit 5cff678322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,9 @@ import { regDefinition } from './customLanguages/reg.js';
export async function registerAdditionalLanguages(monaco){
await languageDefinitions();
registerAdditionalLanguage("cppExt", [".ino", ".pde"], "cpp", monaco)
registerAdditionalLanguage("xmlExt", [".xsd", ".wsdl", ".xslt"], "xml", monaco)
registerAdditionalLanguage("xmlExt", [".xsd", ".wsdl", ".xslt", ".csproj", ".vcxproj"], "xml", monaco)
registerAdditionalLanguage("jsonExt", [".vsconfig"], "json", monaco)
registerAdditionalLanguage("txtExt", [".sln"], "txt", monaco)
registerAdditionalLanguage("razorExt", [".razor"], "razor", monaco)
registerAdditionalLanguage("logExt", [".log"], "log", monaco)
registerAdditionalNewLanguage("reg", [".reg"], regDefinition(), monaco)

File diff suppressed because one or more lines are too long