public static async Task InvalidateDefaultProjectAsync() { var invalidator = await CommandStateCacheInvalidator.GetValueAsync(); var command = new VSCommandId() { CommandSet = GuidList.guidNuGetCmdSet, CommandId = PkgCmdIDList.cmdidProjects }; invalidator.InvalidateSpecificCommandUIState(command); }
public static async Task InvalidateDefaultProjectAsync() { var invalidator = await CommandStateCacheInvalidator.GetValueAsync(); var command = new VSCommandId() { CommandSet = GuidList.guidNuGetCmdSet, CommandId = PkgCmdIDList.cmdidProjects }; // This interface is free-threaded. #pragma warning disable VSTHRD010 // Invoke single-threaded types on Main thread invalidator.InvalidateSpecificCommandUIState(command); #pragma warning restore VSTHRD010 // Invoke single-threaded types on Main thread }