aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/ScriptEditor.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-04 14:18:28 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-04 14:18:28 +0300
commit91d5be468e28266a4ae18ee3845f0cb3433dd898 (patch)
tree267173e3d906a2168ac72692b8d4ec523f59d30f /Software/Visual_Studio/Scripting/Tango.Scripting.Editors/ScriptEditor.cs
parenta5c6a3baaf597ef58369192716ffe02d3af87ac2 (diff)
downloadTango-91d5be468e28266a4ae18ee3845f0cb3433dd898.tar.gz
Tango-91d5be468e28266a4ae18ee3845f0cb3433dd898.zip
Reset Application & Firmware "Logs" tab even when machine connection is the same.
Fixed issue on FileSystem download. Ignored issue with procedure error highlighting caused application error. Fixed issue when logout/login with different environment did not refreshed the list of available machines for connection.
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Editors/ScriptEditor.cs')
-rw-r--r--Software/Visual_Studio/Scripting/Tango.Scripting.Editors/ScriptEditor.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/ScriptEditor.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/ScriptEditor.cs
index 0e32af6ed..a3a682833 100644
--- a/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/ScriptEditor.cs
+++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/ScriptEditor.cs
@@ -2458,9 +2458,16 @@ namespace Tango.Scripting.Editors
public void HighlighError(int position, int length)
{
- ITextMarker marker = errorMarkerService.Create(position, length);
- marker.MarkerTypes = TextMarkerTypes.SquigglyUnderline;
- marker.MarkerColor = Colors.Red;
+ try
+ {
+ ITextMarker marker = errorMarkerService.Create(position, length);
+ marker.MarkerTypes = TextMarkerTypes.SquigglyUnderline;
+ marker.MarkerColor = Colors.Red;
+ }
+ catch (Exception ex)
+ {
+ Debug.WriteLine($"Error highlighting script error.\n{ex.ToString()}");
+ }
}
public void ClearErrors()