diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2015-09-16 07:52:32 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2015-09-16 07:52:32 +0300 |
commit | 32aeb538a784f8ad54c849ad1f0c23d5b562a091 (patch) | |
tree | 017b7851b742df35575da0c8cc11da39f06237f5 | |
parent | f6669746a858984aedc5debc3eccd32cf6d4056f (diff) |
Fixed 'Bug 33975 - [roslyn] Ctrl-space doesn't work on virtual space'
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionWindowManager.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionWindowManager.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionWindowManager.cs index fba2281c7e..78fafe515c 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionWindowManager.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionWindowManager.cs @@ -87,11 +87,6 @@ namespace MonoDevelop.Ide.CodeCompletion { isShowing = true; - if (ext != null) { - int inserted = ext.Editor.EnsureCaretIsNotVirtual (); - if (inserted > 0) - completionContext.TriggerOffset = ext.Editor.CaretOffset; - } if (wnd == null) { wnd = new CompletionListWindow (); wnd.WordCompleted += HandleWndWordCompleted; @@ -211,9 +206,9 @@ namespace MonoDevelop.Ide.CodeCompletion if (!IsVisible) return; isShowing = false; + if (wnd == null) + return; ParameterInformationWindowManager.UpdateWindow (wnd.Extension, wnd.CompletionWidget); - if (wnd.Extension != null) - wnd.Extension.Editor.FixVirtualIndentation (); wnd.HideWindow (); OnWindowClosed (EventArgs.Empty); //DestroyWindow (); |