PowerShell / PowerShell/PowerShellEditorServices
Provide a way for implementations to announce supported features
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 767
- Forks
- 266
- Ø Merge
- 3 T. 16 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Right now as far as I can tell there isn't a great way to tell if the editor supports a specific request. For example, if a consumer of the $psEditor API wants to request editor context with $psEditor.GetEditorContext() the only way to know if the editor supports it is to try and possibly fail.
Making things a little more complicated is every request can act a little differently. For instance, powerShell/showChoicePrompt just returns null, where as powerShell/getEditorContext will throw a NullReferenceException.
We should have an API where the editor explicitly states which requests they support. That way an extension module can send only the requests they know will work.
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
Beginne mit dem Lesen der $psEditor API und der Verarbeitung von powerShell/getEditorContext und powerShell/showChoicePrompt, die im Issue genannt werden. Die Aufgabe ist abgeschlossen, wenn ein Editor seine unterstützten Requests offenlegen kann und ein Erweiterungsmodul diese Informationen abfragen kann, bevor es Requests sendet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, powershell
- Bereich
- api, backend-api-design, developer-experience
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100