Closed Excalidrill closed 1 year ago
Yes, It is in GetLanguageByExtension, but not in GetScopeByExtension https://github.com/danipen/TextMateSharp/blob/7845809e3e69162a3a6a1ee001d953f1dead3745/src/TextMateSharp.Grammars/RegistryOptions.cs#L77
A new package TextMateSharp 1.0.44 was recently published on NuGet Gallery with this fix.
if language doesn't have extensions, NullReferenceException is thrown. Solution: add
before foreach loop, as by RegistryOptions.GetLanguageByExtension