-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ForegroundThreadAffinitizedObject usage #60526
Remove ForegroundThreadAffinitizedObject usage #60526
Conversation
Why do we prefer using ThreadingContext directly over ForegroundThreadAffinitizedObject? |
Same question here : ) |
Ditto on the question -- if we want to get rid of ForegroundThreadAffinitizedObject I won't mind too much, but if that's the direction we want to go we should excise it everywhere. |
src/EditorFeatures/CSharp/EventHookup/EventHookupCommandHandler_SessionCancellingCommands.cs
Outdated
Show resolved
Hide resolved
Workingon it. |
So FTAO is a legacy thing we built prior to even having JTF and the nice APIs it has. Today it's just a thin wrapper around IThreadingContext and really serves no good purpose. So i'd prefer we just consistently use the platform compoennt here. |
{ | ||
public readonly IThreadingContext ThreadingContext; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why public?
@@ -94,7 +94,7 @@ public CommandState GetCommandState(TCommandArgs args) | |||
public bool ExecuteCommand(TCommandArgs args, CommandExecutionContext context) | |||
{ | |||
// Should only be called on the UI thread. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Should only be called on the UI thread. |
@@ -129,7 +129,7 @@ public bool ExecuteCommand(TCommandArgs args, CommandExecutionContext context) | |||
try | |||
{ | |||
// Should only be called on the UI thread. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Should only be called on the UI thread. |
No description provided.