Browse Source

Allow opening a new code completion window inside ICompletionList.Complete() method.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3942 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 17 years ago
parent
commit
e43e49a621
  1. 8
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/CodeEditor.cs

8
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/CodeEditor.cs

@ -147,8 +147,14 @@ namespace ICSharpCode.AvalonEdit.AddIn @@ -147,8 +147,14 @@ namespace ICSharpCode.AvalonEdit.AddIn
internal void NotifyCompletionWindowOpened(CompletionWindow window)
{
if (completionWindow != null) {
// if there already is a completion window open, close it
completionWindow.Close();
}
completionWindow = window;
window.Closed += delegate { completionWindow = null; };
window.Closed += delegate {
completionWindow = null;
};
}
IFormattingStrategy formattingStrategy;

Loading…
Cancel
Save