Skip to content

Commit f2291c0

Browse files
Remove synchronous lightbulb code
1 parent 4d68777 commit f2291c0

File tree

5 files changed

+3
-61
lines changed

5 files changed

+3
-61
lines changed

src/EditorFeatures/Core.Wpf/Suggestions/SuggestedActionsSourceProvider.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,8 @@ public SuggestedActionsSourceProvider(
9696
if (textBuffer.IsInLspEditorContext())
9797
return null;
9898

99-
// if user has explicitly set the option defer to that. otherwise, we are enabled by default (unless our
100-
// A/B escape hatch disables us).
101-
var asyncEnabled = _globalOptions.GetOption(SuggestionsOptionsStorage.Asynchronous) is bool b ? b : !_globalOptions.GetOption(SuggestionsOptionsStorage.AsynchronousQuickActionsDisableFeatureFlag);
102-
103-
return asyncEnabled
104-
? new AsyncSuggestedActionsSource(_threadingContext, _globalOptions, this, textView, textBuffer, _suggestedActionCategoryRegistry, this.OperationListener)
105-
: new SyncSuggestedActionsSource(_threadingContext, _globalOptions, this, textView, textBuffer, _suggestedActionCategoryRegistry);
99+
return new AsyncSuggestedActionsSource(
100+
_threadingContext, _globalOptions, this, textView, textBuffer, _suggestedActionCategoryRegistry, this.OperationListener);
106101
}
107102

108103
private static CodeActionRequestPriority? TryGetPriority(string priority)

src/EditorFeatures/Core.Wpf/Suggestions/SyncSuggestedActionsSource.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/EditorFeatures/Core/Suggestions/SuggestionsOptionsStorage.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/VisualStudio/Core/Def/Options/VisualStudioOptionStorage.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,6 @@ public bool TryFetch(LocalUserRegistryOptionPersister persister, OptionKey2 opti
408408
{"csharp_split_string_literal_on_return", new RoamingProfileStorage("TextEditor.CSharp.Specific.SplitStringLiterals")},
409409
{"visual_studio_open_stack_trace_explorer_on_focus", new RoamingProfileStorage("StackTraceExplorer.Options.OpenOnFocus")},
410410
{"visual_studio_enable_document_outline", new RoamingProfileStorage(@"DocumentOutline.Enable")},
411-
{"dotnet_enable_asynchronous_suggestions", new RoamingProfileStorage("TextEditor.Specific.Suggestions.Asynchronous4")},
412-
{"dotnet_disable_asynchronous_quick_actions", new FeatureFlagStorage(@"Roslyn.AsynchronousQuickActionsDisable2")},
413411
{"visual_studio_enable_symbol_search", new LocalUserProfileStorage(@"Roslyn\Features\SymbolSearch", "Enabled")},
414412
{"dotnet_search_nuget_packages", new RoamingProfileStorage("TextEditor.%LANGUAGE%.Specific.SuggestForTypesInNuGetPackages")},
415413
{"dotnet_search_reference_assemblies", new RoamingProfileStorage("TextEditor.%LANGUAGE%.Specific.SuggestForTypesInReferenceAssemblies")},

src/VisualStudio/VisualBasic/Impl/Options/AdvancedOptionPageControl.xaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,7 @@
111111
Content="{x:Static local:AdvancedOptionPageStrings.Option_Add_missing_imports_on_paste}" />
112112
</StackPanel>
113113
</GroupBox>
114-
115-
<GroupBox x:Uid="QuickActionsBox"
116-
Header="{x:Static local:AdvancedOptionPageStrings.Option_Quick_Actions}">
117-
<StackPanel>
118-
<CheckBox x:Name="ComputeQuickActionsAsynchronouslyExperimental"
119-
Content="{x:Static local:AdvancedOptionPageStrings.Option_Compute_Quick_Actions_asynchronously_experimental}" />
120-
</StackPanel>
121-
</GroupBox>
122-
114+
123115
<GroupBox x:Uid="HighlightingGroupBox"
124116
Header="{x:Static local:AdvancedOptionPageStrings.Option_Highlighting}">
125117
<StackPanel>

0 commit comments

Comments
 (0)