Browse Source

fix Exception on DotCompletion after first dot in ConsolePad

pull/419/head
Siegfried Pammer 11 years ago
parent
commit
848e25724f
  1. 1
      src/AddIns/Debugger/Debugger.AddIn/Pads/AutoCompleteTextBox.cs
  2. 1
      src/AddIns/Debugger/Debugger.AddIn/Pads/ConsolePad.cs

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

@ -140,6 +140,7 @@ namespace Debugger.AddIn.Pads.Controls @@ -140,6 +140,7 @@ namespace Debugger.AddIn.Pads.Controls
var binding = DebuggerDotCompletion.PrepareDotCompletion(editor.Text.Substring(0, editor.CaretOffset), context);
if (binding == null) return;
binding.HandleKeyPressed(editorAdapter, '.');
SD.ParserService.ParseFileAsync(context.FileName).FireAndForget();
} else {
// TODO : implement automated error checking CSharpParser.ParseExpression does not report useful error messages.
// Error[] errors;

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

@ -89,6 +89,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads @@ -89,6 +89,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
var binding = DebuggerDotCompletion.PrepareDotCompletion(currentText, new DebuggerCompletionContext(frame));
if (binding == null) return;
binding.HandleKeyPressed(console.TextEditor, '.');
SD.ParserService.ParseFileAsync(new ICSharpCode.Core.FileName(frame.NextStatement.Filename)).FireAndForget();
}
protected override ToolBar BuildToolBar()

Loading…
Cancel
Save