Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit907863c

Browse files
committed
'tweak
1 parent2938d16 commit907863c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎vsintegration/src/FSharp.LanguageService.Base/DocumentTask.cs‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
usingMicrosoft.VisualStudio.Shell.Interop;
1515
usingMicrosoft.VisualStudio.OLE.Interop;
1616
usingMicrosoft.VisualStudio.TextManager.Interop;
17+
usingMicrosoft.VisualStudio.Threading;
1718
usingMicrosoft.VisualStudio.Shell;
1819
usingIOleServiceProvider=Microsoft.VisualStudio.OLE.Interop.IServiceProvider;
1920
usingIServiceProvider=System.IServiceProvider;
@@ -195,11 +196,11 @@ private static JoinableTaskFactory JTF
195196
[SuppressMessage("Microsoft.Design","CA1031:DoNotCatchGeneralExceptionTypes")]
196197
internalstaticTDoOnUIThread<T>(Func<T>callback)
197198
{
198-
returnJTF.JoinableTaskFactory.Run<T>(asyncdelegate
199-
{
199+
returnJTF.Run<T>(asyncdelegate
200+
{
200201
awaitJTF.SwitchToMainThreadAsync();
201202
returncallback();
202-
});
203+
});
203204
}
204205

205206
/// <summary>
@@ -209,11 +210,11 @@ internal static T DoOnUIThread<T>(Func<T> callback)
209210
[SuppressMessage("Microsoft.Design","CA1031:DoNotCatchGeneralExceptionTypes")]
210211
internalstaticvoidDoOnUIThread(Actioncallback)
211212
{
212-
returnJTF.Run<T>(asyncdelegate
213-
{
213+
JTF.Run(asyncdelegate
214+
{
214215
awaitJTF.SwitchToMainThreadAsync();
215-
returncallback();
216-
});
216+
callback();
217+
});
217218
}
218219
}
219220

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp