-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Functional impact
Completing the wizard does not accomplish the task as expected.
Minimal repro steps
- Have a solution with a libman.json file open.
- Close the solution with a different file as the active document.
- Reopen the solution, without setting focus to the libman.json tab
- Add -> New Client Library, fill out the wizard and install
Expected result
The libman.json file should be edited to include the new library, and the library should be installed.
Actual result
No change in the libman.json file, library is not installed.
Further technical details
This is occurring because there is a text buffer open but the TextView (and its TextViewData) is not yet initialized.
Callstack:
Microsoft.Web.LibraryManager.Vsix.dll!Microsoft.Web.LibraryManager.Vsix.UI.Models.InstallDialogViewModel.FormatSelection(Microsoft.VisualStudio.Text.ITextBuffer textBuffer, int insertionIndex, string insertionText) Line 613 C#
Microsoft.Web.LibraryManager.Vsix.dll!Microsoft.Web.LibraryManager.Vsix.UI.Models.InstallDialogViewModel.InsertIntoTextBuffer(Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer document, Microsoft.Web.LibraryManager.LibraryInstallationState libraryInstallationState, Microsoft.Web.LibraryManager.Manifest manifest) Line 585 C#
Microsoft.Web.LibraryManager.Vsix.dll!Microsoft.Web.LibraryManager.Vsix.UI.Models.InstallDialogViewModel.InstallPackageAsync() Line 539 C#