We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e49b283 + 8f753ec commit b085b72Copy full SHA for b085b72
src/VisualStudio/Core/Def/Implementation/Experimentation/KeybindingResetDetector.cs
@@ -212,7 +212,11 @@ private async Task UpdateStateMachineWorkerAsync(CancellationToken cancellationT
212
break;
213
}
214
215
+ // Apply the new options.
216
+ // We need to switch to UI thread to invoke TryApplyChanges.
217
+ await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
218
_workspace.TryApplyChanges(_workspace.CurrentSolution.WithOptions(options));
219
+
220
if (options.GetOption(KeybindingResetOptions.NeedsReset))
221
{
222
ShowGoldBar();
0 commit comments