If libman.json is open but not initialized, adding a new library via the wizard fails to edit the document
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
Start at InstallDialogViewModel.InstallPackageAsync(), then follow InsertIntoTextBuffer() and FormatSelection() using the reported call stack. Reproduce the wizard flow with libman.json open but unfocused in Visual Studio, and verify that completing installation edits the document and installs the selected library.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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#
- Lingua principale
- C#
- Stelle
- 486
- Fork
- 91
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aspnet/LibraryManager
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
aspnet/LibraryManager#824 · 1 commento · 3 reazioni ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
aspnet/LibraryManager#804 · 2 reazioni ·
-
Changelog for 3.0.114 Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 48/100
aspnet/LibraryManager#829 · 1 commento · 3 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
aspnet/LibraryManager#820 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
aspnet/LibraryManager#808 · 5 commenti ·
Tutte le issue di aspnet/LibraryManager
Issue simili
-
CS0162 "Unreachable code detected" warning from a MSBuildTemp .tmp file in every game project Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
microsoft/vscode-azurefunctions#5197 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
microsoft/microsoft-ui-reactor#1274 ·