PowerShell / PowerShell/PowerShellEditorServices
Add-Type -AssemblyName not taken into account by the completion
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 767
- フォーク
- 266
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 1
説明
I tried to look for the solution in existing tickets, but found no ticket mentioning Add-Type support.
I am using now PSES in Sublime Text with PR and recipe at: https://github.com/PowerShell/PowerShellEditorServices/pull/629#issuecomment-373787797 and I found that it is not completing .NET types loaded by Add-Type e.g.:
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.
completes only to types present in System.IO.Compression but not System.IO.Compression.FileSystem, like ZipFile.

Also trying to complete [System.IO.Compression.ZipFile]:: returns nothing. I tried adding explicit path, no effect.
Do I need to explicitly specify additional modules somewhere when starting PSES or it should pick up the Add-Type from my script?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Add-Type -AssemblyName System.IO.Compression.FileSystem と System.IO.Compression.ZipFile の例を使用して、PSES での補完動作を再現します。まず、読み込まれた .NET 型に対する補完パスを追跡します。型参照の後で補完が ZipFile を検出してメンバーを提示し、報告されたケースをカバーできれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- developer-experience, devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100