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

Visual Studio 2017 deadlocks when a solution is opened #1520

@jcansdale

Description

@jcansdale
  • GitHub Extension for Visual Studio version: 2.4.3 (dev)
  • Visual Studio version: 2017
  1. Launched Visual Studio
  2. Opened a solution that is hosted on GitHub
  3. Visual Studio hangs/deadlocks

Found the following package load error in VS log for GitHubPackage:

image

I tried changing our GetService to use GetServiceAsync:

image

It appears MenuCommandService.AddCommand uses IServiceProvider.GetService and so must be called on the Main thread.

This was only an issue on Visual Studio 2017. It seems the PackageAutoLoadFlags.BackgroundLoad flag is only honored on Visual Studio 2017. When the package is auto-loaded on Visual Studio 2015, the package initialization is done on the Main thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions