From ed64ecdca363ee38307d963ce133dc887276591c Mon Sep 17 00:00:00 2001 From: Mattia Date: Fri, 30 Oct 2020 14:48:55 +0100 Subject: [PATCH] Version 1.6.2.0 Fix performance (#42) Fix highlighting on CLICK + SHIFT (#44) --- App/AssemblyInfo1.cs | 2 +- UI/Components/EditorElement.xaml.cs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/App/AssemblyInfo1.cs b/App/AssemblyInfo1.cs index ace841d1..b0aaf5bf 100644 --- a/App/AssemblyInfo1.cs +++ b/App/AssemblyInfo1.cs @@ -30,4 +30,4 @@ // Build Number // Revision // -[assembly: AssemblyVersion("1.6.1.1")] \ No newline at end of file +[assembly: AssemblyVersion("1.6.2.0")] \ No newline at end of file diff --git a/UI/Components/EditorElement.xaml.cs b/UI/Components/EditorElement.xaml.cs index dc2ff61d..48ea088d 100644 --- a/UI/Components/EditorElement.xaml.cs +++ b/UI/Components/EditorElement.xaml.cs @@ -234,13 +234,14 @@ private async void TextArea_MouseDown(object sender, MouseButtonEventArgs e) sm = MatchDefinition(Program.Configs[Program.SelectedConfig].GetSMDef(), word, e); if (sm != null) { + //TODO: Match definition for all the sm directories var config = Program.Configs[Program.SelectedConfig].SMDirectories.First(); var file = Path.GetFullPath(Path.Combine(config, "include", sm.File)) + ".inc"; var result = Program.MainWindow.TryLoadSourceFile(file, true, false, true); if (!result) { - Debug.Print("File {file} not found!"); + Debug.Print($"File {file} not found!"); return; } @@ -700,8 +701,6 @@ private void Caret_PositionChanged(object sender, EventArgs e) private SMDefinition currentSmDef; - public SMDefinition CurrentSmDef => currentSmDef; - private void ParseIncludes(object sender, EventArgs e) { Dispatcher.Invoke(() =>