diff --git a/Arma.Studio/UI/TextEditor.xaml b/Arma.Studio/UI/TextEditor.xaml index 116b532..73d9c06 100644 --- a/Arma.Studio/UI/TextEditor.xaml +++ b/Arma.Studio/UI/TextEditor.xaml @@ -32,6 +32,24 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Arma.Studio/UI/TextEditorDataContext.cs b/Arma.Studio/UI/TextEditorDataContext.cs index aaa366b..b0ff307 100644 --- a/Arma.Studio/UI/TextEditorDataContext.cs +++ b/Arma.Studio/UI/TextEditorDataContext.cs @@ -492,6 +492,15 @@ private void TextEditor_MouseHover(object sender, MouseEventArgs e) { this.ToolTip.Content = lintInfo; } + else if (!String.IsNullOrWhiteSpace(word) && App.MWContext.Debugger != null && App.MWContext.Debugger.State != Data.Debugging.EDebugState.NA) + { + var variable = App.MWContext.Debugger.GetLocalVariables().FirstOrDefault((it) => it.VariableName.Equals(word, StringComparison.InvariantCultureIgnoreCase)); + if (variable is null) + { + variable = App.MWContext.Debugger.GetVariable(word, Data.Debugging.ENamespace.MissionNamespace); + } + this.ToolTip.Content = variable; + } } private void TextEditor_MouseHoverStopped(object sender, MouseEventArgs e) {