@@ -52,15 +52,15 @@ namespace SmartCmdArgs
52
52
/// </para>
53
53
/// </remarks>
54
54
[ PackageRegistration ( UseManagedResourcesOnly = true , AllowsBackgroundLoading = true ) ]
55
- [ InstalledProductRegistration ( "#110" , "#112" , "2.4.0 " , IconResourceID = 400 ) ] // Info on this package for Help/About
55
+ [ InstalledProductRegistration ( "#110" , "#112" , "2.4.1 " , IconResourceID = 400 ) ] // Info on this package for Help/About
56
56
[ ProvideMenuResource ( "Menus.ctmenu" , 1 ) ]
57
57
[ ProvideToolWindow ( typeof ( ToolWindow ) , Window = ToolWindow . ToolWindowGuidString ) ]
58
- [ ProvideOptionPage ( typeof ( CmdArgsOptionPage ) , "Smart Command Line Arguments" , "General" , 1000 , 1001 , false ) ]
58
+ [ ProvideOptionPage ( typeof ( CmdArgsOptionPage ) , "Smart Command Line Arguments" , "General" , 1000 , 1001 , false ) ]
59
59
[ ProvideBindingPath ]
60
60
[ ProvideKeyBindingTable ( ToolWindow . ToolWindowGuidString , 200 ) ]
61
61
[ ProvideAutoLoad ( VSConstants . UICONTEXT . SolutionExistsAndFullyLoaded_string , PackageAutoLoadFlags . BackgroundLoad ) ]
62
62
[ Guid ( CmdArgsPackage . PackageGuidString ) ]
63
- [ SuppressMessage ( "StyleCop.CSharp.DocumentationRules" , "SA1650:ElementDocumentationMustBeSpelledCorrectly" , Justification = "pkgdef, VS and vsixmanifest are valid VS terms" ) ]
63
+ [ SuppressMessage ( "StyleCop.CSharp.DocumentationRules" , "SA1650:ElementDocumentationMustBeSpelledCorrectly" , Justification = "pkgdef, VS and vsixmanifest are valid VS terms" ) ]
64
64
public sealed class CmdArgsPackage : AsyncPackage
65
65
{
66
66
/// <summary>
@@ -100,7 +100,7 @@ public sealed class CmdArgsPackage : AsyncPackage
100
100
// processed later.
101
101
private string toolWindowStateFromSolutionJsonStr ;
102
102
private SuoDataJson toolWindowStateLoadedFromSolution ;
103
-
103
+
104
104
/// <summary>
105
105
/// Initializes a new instance of the <see cref="ToolWindow"/> class.
106
106
/// </summary>
@@ -275,13 +275,13 @@ public void SetAsStartupProject(Guid guid)
275
275
276
276
private void UpdateConfigurationForProject ( IVsHierarchy project )
277
277
{
278
- if ( project == null )
278
+ if ( project == null )
279
279
return ;
280
280
281
281
var commandLineArgs = CreateCommandLineArgsForProject ( project ) ;
282
282
if ( commandLineArgs == null )
283
283
return ;
284
-
284
+
285
285
ProjectArguments . SetArguments ( project , commandLineArgs ) ;
286
286
Logger . Info ( $ "Updated Configuration for Project: { project . GetName ( ) } ") ;
287
287
}
@@ -334,11 +334,11 @@ public string CreateCommandLineArgsForProject(Guid guid)
334
334
{
335
335
return CreateCommandLineArgsForProject ( vsHelper . HierarchyForProjectGuid ( guid ) ) ;
336
336
}
337
-
337
+
338
338
public List < string > GetProjectConfigurations ( Guid projGuid )
339
339
{
340
340
IVsHierarchy project = vsHelper . HierarchyForProjectGuid ( projGuid ) ;
341
-
341
+
342
342
var configs = ( project . GetProject ( ) ? . ConfigurationManager ? . ConfigurationRowNames as Array ) ? . Cast < string > ( ) . ToList ( ) ;
343
343
return configs ?? new List < string > ( ) ;
344
344
}
@@ -396,7 +396,7 @@ private void FileStorage_FileStorageChanged(object sender, FileStorageChangedEve
396
396
397
397
if ( ! IsVcsSupportEnabled )
398
398
return ;
399
-
399
+
400
400
ToolWindowHistory . SaveState ( ) ;
401
401
402
402
IEnumerable < IVsHierarchy > projects ;
@@ -479,7 +479,7 @@ private void UpdateCommandsForProject(IVsHierarchy project)
479
479
if ( projectData != null )
480
480
{
481
481
Logger . Info ( $ "Setting { projectData ? . Items ? . Count } commands for project '{ project . GetName ( ) } ' from json-file.") ;
482
-
482
+
483
483
var projectListViewModel = ToolWindowViewModel . TreeViewModel . Projects . GetValueOrDefault ( projectGuid ) ;
484
484
485
485
var projHasSuoData = solutionData . ProjectArguments . ContainsKey ( projectGuid ) ;
@@ -640,7 +640,7 @@ private void VsHelper_StartupProjectConfigurationChanged(object sender, EventArg
640
640
private void VsHelper_ProjectWillRun ( object sender , EventArgs e )
641
641
{
642
642
Logger . Info ( "VS-Event: Startup project will run." ) ;
643
-
643
+
644
644
foreach ( var startupProject in ToolWindowViewModel . TreeViewModel . StartupProjects )
645
645
{
646
646
var project = vsHelper . HierarchyForProjectGuid ( startupProject . Id ) ;
0 commit comments