PowerShell / PowerShell/PowerShellEditorServices
Add-Type -AssemblyName not taken into account by the completion
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 767
- Forks
- 266
- Ø Merge
- 3 T. 16 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Vervollständigungsverhalten in PSES mit Add-Type -AssemblyName System.IO.Compression.FileSystem und den Beispielen für System.IO.Compression.ZipFile. Beginne damit, den Vervollständigungspfad für geladene .NET-Typen nachzuverfolgen. Als erledigt gilt die Aufgabe, wenn die Vervollständigung ZipFile erkennt und nach der Typreferenz Member anbietet, mit Abdeckung der gemeldeten Fälle.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, powershell
- Bereich
- developer-experience, devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100