-
Notifications
You must be signed in to change notification settings - Fork 236
Move PowerShellEditorServices over to Omnisharp-lsp #995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move PowerShellEditorServices over to Omnisharp-lsp #995
Conversation
…bolshandler add dummy workspace symbols handler
…esymbolshandler A working WorkspaceSymbolsHandler
* Added Diagnostics * didChangeConfiguration message and general settings support * Apply suggestions from code review Co-Authored-By: Robert Holt <rjmholt@gmail.com>
* Added Diagnostics * didChangeConfiguration message and general settings support * initial folding support * log level trace * folding works with latest omnisharp version * comment typo * added test for folding
On second thought, I think I'm going to merge this into an omnisharp-lsp branch and work out of that. Let me know if anything jumps out at you in this implementation but do keep in mind it's WIP state. |
So far I've found a big issue with our current formatting implementation - for some reason, our formatter is registered in |
The reason OnType Formatting is sooooo bad is because of this code which performs multiple round trips from PSES to vscode-powershell with EVERY OnType request... |
Also, my goal is to use the PowerShellContext as little as possible... |
In theory, this will delete:
PowerShellEditorServices
PowerShellEditorServices.Host
PowerShellEditorServices.Protocol
And move to a single
PowerShellEditorServices.Engine
project that leverages the Omnisharp csharp-language-server-protocol package that abstracts away all the message handling of the language server protocol and debug adapter protocol.Not all messages are handled yet, as this is a huge refactor... but progress on this can be seen here on my Notion board.
I'm trying to fill out the Pester tests as a go along as a form of smoke tests. If anyone has any interest in helping with this effort please let me know and we can coordinate.
I'm very pleased with this project (the csharp-language-server-protocol) - we can write "Services" and "Handlers" in their own files that we can more easily write tests for (tests would be an awesome way to help me in getting this in).
It's still going to take time, but I'm looking forward to getting this in.