Discuss new Framework API structure
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 20/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- csharp, powershell
- Domínio
- api, developer-experience, tooling
Direção de pesquisa
A issue não menciona arquivos, testes ou pontos de entrada. Comece revisando a estrutura atual da Editor Services API e as propostas de interface listadas; esta discussão não estará completa até que um escopo concreto da API e um objetivo de implementação tenham sido acordados.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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!
- Linguagem predominante
- C#
- Estrelas
- 767
- Forks
- 266
- Merge médio
- 3d 16h
- PRs com merge (30d)
- 1
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PowerShell/PowerShellEditorServices
-
[Bug] None of the string overloads of `EditorExtensionServiceProvider.GetService()` work on .NET. Aberta
PowerShell/PowerShellEditorServices#2331 · 1 reação · 2 responsáveis ·
-
Area-Language Server Issue-Enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
PowerShell/PowerShellEditorServices#2315 · 1 comentário ·
-
Area-Debugging Issue-Enhancement
PowerShell/PowerShellEditorServices#2294 · 1 reação · 2 responsáveis ·
-
Issue-Bug Needs: Triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
PowerShell/PowerShellEditorServices#2293 · 1 comentário ·
-
PowerShell/PowerShellEditorServices#2282 · 1 comentário · 1 reação · 2 responsáveis ·
Todas as issues de PowerShell/PowerShellEditorServices
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
nightscout/nocturne#1425 ·
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
-
Documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
Dificuldade 2/5 1-2 dias Facilidade para iniciantes 75/100
Altinn/altinn-auth#4143 ·