mirror of
https://onedev.site.tesses.net/crosslang/crosslangdevstudio
synced 2026-02-08 09:15:45 +00:00
Add alacritty
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user