gemini
gemini copied to clipboard
Q: CodeEditor but only with one language
Hi, Is there any chance how to use NuGet Gemini.Modules.CodeEditor but only with one language, for example only with C#?
Thanks, Elpablos
I have a possible solution, but it's a bit hacky:
-
[Import]
an instance ofLanguageDefinitionManager
- Grab the
LanguageDefinitions
property, but cast it to aList<ILanguageDefinition>
- Remove the ones you don't want
I don't know why it's currently an IEnumerable<>
. I don't think there's a good reason for that.