Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

If libman.json is open but not initialized, adding a new library via the wizard fails to edit the document

オープン
#602 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
csharp
領域
devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

Functional impact

Completing the wizard does not accomplish the task as expected.

Minimal repro steps
  1. Have a solution with a libman.json file open.
  2. Close the solution with a different file as the active document.
  3. Reopen the solution, without setting focus to the libman.json tab
  4. 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#

主要言語
C#
スター
486
フォーク
91
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aspnet/LibraryManager のほかの issue

aspnet/LibraryManager の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。