Add alacritty

This commit is contained in:
2025-11-11 07:10:48 -06:00
parent 8949c53ffb
commit 9c2f73a246
3 changed files with 58 additions and 4 deletions

View File

@@ -80,8 +80,23 @@ public partial class FileEditorViewModel : ViewModelBase, ISavable
try
{
//AssetLoader.Open(new Uri("avares://CrossLangDevStudio/Assets/crosslang.png")
if (Path.GetFileNameWithoutExtension(path).ToLower() == "dockerfile")
{
_textMateInstallation.SetGrammarFile(_registryOptions.GetScopeByLanguageId("dockerfile"));
//_textMateInstallation.SetGrammar(_registryOptions.GetScopeByLanguageId(.Id));
}
if (Path.GetFileNameWithoutExtension(path).ToLower() == "makefile")
{
_textMateInstallation.SetGrammarFile(_registryOptions.GetScopeByLanguageId("makefile"));
//_textMateInstallation.SetGrammar(_registryOptions.GetScopeByLanguageId(.Id));
}
else if (Path.GetFileNameWithoutExtension(path) == "docker-compose" && (ext == ".yml" || ext == ".yaml"))
_textMateInstallation.SetGrammarFile(_registryOptions.GetScopeByLanguageId("dockercompose"));
else
_textMateInstallation.SetGrammar(_registryOptions.GetScopeByLanguageId(_registryOptions.GetLanguageByExtension(ext).Id));
_textMateInstallation.SetGrammar(_registryOptions.GetScopeByLanguageId(_registryOptions.GetLanguageByExtension(ext).Id));
}
catch (Exception)
{