Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mikkrg@microsoft.com>2018-04-05 11:37:05 +0300
committerMike Krüger <mikkrg@microsoft.com>2018-04-05 11:37:05 +0300
commit98601f31ea07b2510475a42af8ffac5ef66b9695 (patch)
tree9fb83ba2463d8be77f44f114d8099d0e0661b9d9 /main/src/core
parentd4dfd5ac660c0df085e2bd9e7ee25d9821ed2bce (diff)
Fixes VSTS 566339: Completion tooltip popup flickers
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/566339
Diffstat (limited to 'main/src/core')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionController.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionController.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionController.cs
index 00e5de7e0c..6b2adb679b 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionController.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionController.cs
@@ -284,8 +284,12 @@ namespace MonoDevelop.Ide.CodeCompletion
}
var data = dataList [SelectedItemIndex];
- if (data != currentData)
+ if (data != currentData) {
HideDeclarationView ();
+ } else {
+ if (declarationViewWindow != null && declarationViewWindow.Visible && currentData == data)
+ return; // current data is up to date
+ }
declarationViewTimer = GLib.Timeout.Add (150, DelayedTooltipShow);
}
@@ -760,8 +764,9 @@ namespace MonoDevelop.Ide.CodeCompletion
// If the previously selected item is not visible anymore, select the first item in the view
if (SelectedItemIndex == -1 && filteredItems.Count > 0)
SelectedItemIndex = filteredItems [0];
-
- RepositionDeclarationViewWindow ();
+
+ if (declarationViewWindow == null || !declarationViewWindow.Visible || currentData != SelectedItem)
+ RepositionDeclarationViewWindow ();
// InCategoryMode can change if the new results include new categories
if (view.InCategoryMode != InCategoryMode)