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:
authorSandy Armstrong <sandy@xamarin.com>2019-01-12 03:05:52 +0300
committerSandy Armstrong <sandy@xamarin.com>2019-01-12 03:39:20 +0300
commite9646f8c329f9f4132263bc46e38a6d329f9bcdd (patch)
treea1ed8802b5dc1bec2379a9f93fb5bbe8741d8195 /main/src/core/MonoDevelop.Ide
parent58051843042759351dfdbae8134256535a2690be (diff)
Experiments: Enable async completion when using new editor
Diffstat (limited to 'main/src/core/MonoDevelop.Ide')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Composition/EditorExperimentationServiceInternal.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Composition/EditorExperimentationServiceInternal.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Composition/EditorExperimentationServiceInternal.cs
index 668974ec7a..e5df97fb31 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Composition/EditorExperimentationServiceInternal.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Composition/EditorExperimentationServiceInternal.cs
@@ -1,11 +1,15 @@
using System.ComponentModel.Composition;
+
using Microsoft.VisualStudio.Text.Utilities;
+using MonoDevelop.Ide.Editor;
+
namespace MonoDevelop.Ide.Composition
{
[Export (typeof (IExperimentationServiceInternal))]
internal class EditorExperimentationServiceInternal : IExperimentationServiceInternal
{
- public bool IsCachedFlightEnabled (string flightName) => false;
+ public bool IsCachedFlightEnabled (string flightName)
+ => flightName == "CompletionAPI" && DefaultSourceEditorOptions.Instance.EnableNewEditor;
}
}