Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 44272c7

Browse files
author
Jasmine
committed
wait instead of run task
1 parent f41e233 commit 44272c7

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/GitHub.VisualStudio/Menus/CopyLink.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ public async void Activate([AllowNull]object data = null)
4747

4848
public bool CanShow()
4949
{
50-
return System.Threading.Tasks.Task.Run(() =>
51-
{
52-
return IsGitHubRepo();
53-
}).Result;
50+
return IsGitHubRepo().Wait(250);
5451
}
5552

5653
}

src/GitHub.VisualStudio/Menus/OpenLink.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ public async void Activate([AllowNull]object data = null)
3636

3737
public bool CanShow()
3838
{
39-
return System.Threading.Tasks.Task.Run(() =>
40-
{
41-
return IsGitHubRepo();
42-
}).Result;
39+
return IsGitHubRepo().Wait(250);
4340
}
4441
}
4542
}

0 commit comments

Comments
 (0)