Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 848e257

Browse files
fix Exception on DotCompletion after first dot in ConsolePad
1 parent 81f43dc commit 848e257

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/AddIns/Debugger/Debugger.AddIn/Pads/AutoCompleteTextBox.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ void editor_TextArea_TextEntered(object sender, TextCompositionEventArgs e)
140140
var binding = DebuggerDotCompletion.PrepareDotCompletion(editor.Text.Substring(0, editor.CaretOffset), context);
141141
if (binding == null) return;
142142
binding.HandleKeyPressed(editorAdapter, '.');
143+
SD.ParserService.ParseFileAsync(context.FileName).FireAndForget();
143144
} else {
144145
// TODO : implement automated error checking CSharpParser.ParseExpression does not report useful error messages.
145146
// Error[] errors;

src/AddIns/Debugger/Debugger.AddIn/Pads/ConsolePad.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ void ShowDotCompletion(StackFrame frame, string currentText)
8989
var binding = DebuggerDotCompletion.PrepareDotCompletion(currentText, new DebuggerCompletionContext(frame));
9090
if (binding == null) return;
9191
binding.HandleKeyPressed(console.TextEditor, '.');
92+
SD.ParserService.ParseFileAsync(new ICSharpCode.Core.FileName(frame.NextStatement.Filename)).FireAndForget();
9293
}
9394

9495
protected override ToolBar BuildToolBar()

0 commit comments

Comments
 (0)