Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 2190b7e

Browse files
committed
Added 30 second timeout for the deployment bar
1 parent f5a75f4 commit 2190b7e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Source/MDK/MDKPackage.cs

+2
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ public async Task<bool> DeployAsync(Project project = null, bool nonBlocking = f
368368
DeployedScripts = deployedScripts,
369369
CanShowMe = deployedScripts.Select(script => FormattedPath(script.Paths.OutputPath)).Distinct().Count() == 1
370370
};
371+
#pragma warning disable 4014
371372
bar.ShowAsync(ServiceProvider);
373+
#pragma warning restore 4014
372374
}
373375
}
374376
else

Source/MDK/Views/DeploymentBar/DeploymentBar.xaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<visualStudio:NotificationBar x:Class="MDK.Views.DeploymentBar.DeploymentBar"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:visualStudio="clr-namespace:MDK.VisualStudio">
4+
xmlns:visualStudio="clr-namespace:MDK.VisualStudio"
5+
Timeout="30">
56
<visualStudio:NotificationTextSpan Text="Your scripts have been deployed." />
67
<visualStudio:NotificationBar.Actions>
78
<visualStudio:NotificationHyperlink x:Name="showMeLink" Text="Show Me" Clicked="ShowMeLink_OnClicked" />

0 commit comments

Comments
 (0)