Discuss new Framework API structure
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 20/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- csharp, powershell
- Bereich
- api, developer-experience, tooling
Rechercherichtung
Das Issue nennt keine Dateien, Tests oder Einstiegspunkte. Beginne mit der Durchsicht der aktuellen Struktur der Editor Services API und der aufgeführten Schnittstellenvorschläge; diese Diskussion ist nicht abgeschlossen, bis ein konkreter API-Umfang und ein Implementierungsziel vereinbart wurden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
This issue is intended to be a discussion point for the new PowerShell Editor Services API model. The idea here is that Editor Services will now become a framework for adding new capabilities to editors that use it. The overall goal being that most non-core functionality will be enabled through modules that plug into the Editor Services APIs. PSScriptAnalyzer, Plaster, and other modules will add functionality directly through these APIs rather than PSES having to know about them and manage their integration.
Interfaces
All of these interface and method are subject to change as we develop the ideas further.
- IWorkspace - Provides access to the files in the current workspace and events for when files are opened, closed, changed, or saved
- ILogger - Writing logs to the Editor Services log. Important for module integrations to log their activities
- IFileMarkers - Adding markers to files, like those from PSScriptAnalyzer. Also providing quick fixes for these markers
- IMessageHandlers - Registering message handlers for both Language Server Protocol messages and custom message types
- ICodeLensProvider - Providing "code lenses" at arbitrary locations in the script which provide information and launch actions at that point
- IEditorCommands - Registering extension commands in the editor which show up in the command palette
- ICompletionsProvider - Providing custom completions (and snippets) in addition to the built-in completions and snippets
- IFileSymbols - Gathering information about symbols in a particular file
- IWorkspaceSymbols - Gathering information about symbols across the workspace
- IWindowMessages (?) - Showing messages in the editor window (ShowErrorMessage, etc)
- IWindowPrompts - Showing prompts natively in the editor's UI, mirrors the prompting functionality in the PSHostUserInterface API
- IDebuggerCommmands - Provides commands for the debugger, like breaking, stepping, continuing, etc
- IDebuggerEvents - Exposes events for the debugger, primarily around stopping and resuming
- IRunspaceEvents - Exposes events for when the active runspace changes, like when a remote session is established
- ICommandExecution - Commands for executing commands against the current runspace. Also exposes events that give state change information for command execution
TODO: Add more interfaces here
Please feel free to leave comments below to discuss APIs you'd like to see!
- Vorherrschende Sprache
- C#
- Sterne
- 767
- Forks
- 266
- Ø Merge
- 3 T. 16 Std.
- Gemergte PRs (30 T.)
- 1
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus PowerShell/PowerShellEditorServices
-
[Bug] None of the string overloads of `EditorExtensionServiceProvider.GetService()` work on .NET. Offen
PowerShell/PowerShellEditorServices#2331 · 1 Reaktion · 2 zugewiesene Personen ·
-
Area-Language Server Issue-Enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
PowerShell/PowerShellEditorServices#2315 · 1 Kommentar ·
-
Area-Debugging Issue-Enhancement
PowerShell/PowerShellEditorServices#2294 · 1 Reaktion · 2 zugewiesene Personen ·
-
Issue-Bug Needs: Triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
PowerShell/PowerShellEditorServices#2293 · 1 Kommentar ·
-
PowerShell/PowerShellEditorServices#2282 · 1 Kommentar · 1 Reaktion · 2 zugewiesene Personen ·
Alle Issues in PowerShell/PowerShellEditorServices
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
nightscout/nocturne#1425 ·
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
Documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
Schwierigkeit 2/5 1-2 Tage Anfängerfreundlichkeit 75/100
Altinn/altinn-auth#4143 ·