Skip to content

Commit

Permalink
Fix for exception (#28)
Browse files Browse the repository at this point in the history
* Updated discovery of VS instances to use the new WMI namespace Microsoft is using since 10/2023.
Now discovery tries the original WMI namespace, the new namespace and finally the Setup API.
Improvement on #18

* Added continuous GIT status updates
Added VS activity log access through a button

* updated screenshot

* added exception handling for TaskBar in Win11
updated some packages
  • Loading branch information
Hefaistos68 authored Apr 15, 2024
1 parent 895c05c commit 9a18f80
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions VSLauncherX/MainDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,14 @@ private void SetupTaskbarTasks()
{
var cat = new JumpListCustomCategory("Test");
// Create a jump list.
this.TaskbarJumpList = JumpList.CreateJumpList();
try
{
this.TaskbarJumpList = JumpList.CreateJumpList();
}
catch (System.Exception ex)
{

}

RebuildTaskbarItems();
}
Expand Down Expand Up @@ -488,11 +495,13 @@ private void AddItemToTaskbar(VsItem item)
/// <param name="folder"></param>
private void RebuildTaskbarItems(VsFolder? folder = null)
{
if (folder is null)
if (this.TaskbarJumpList is null)
{
folder = this.solutionGroups;
return;
}

folder ??= this.solutionGroups;

// iterate through all items in SolutionItems and add the favorite items to the taskbar
foreach (VsItem item in folder.Items)
{
Expand Down
2 changes: 1 addition & 1 deletion VSLauncherX/VSLauncherX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

<ItemGroup>
<PackageReference Include="Google.Apis.Drive.v3" Version="1.61.0.3155" />
<PackageReference Include="LibGit2Sharp" Version="0.27.2" />
<PackageReference Include="LibGit2Sharp" Version="0.30.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Management" Version="7.0.2" />
<PackageReference Include="TaskScheduler" Version="2.10.1" />
Expand Down

0 comments on commit 9a18f80

Please sign in to comment.