vscode-plugin
vscode-plugin copied to clipboard
Server optimizations
Changes
- Removed the capability check for
textDocument/publishDiagnosticsfor multiple reasons- diagnostics is the fundamental feature of the Rosie Language Server, so integration in a client that doesn't support diagnostics wouldn't make much sense
- Eclipse IDE sends false for the
textDocument/publishDiagnosticscapability, so we cannot rely safely on that.
- Prepared the server to be able to compute
TextEdits inonCodeAction()in case the client doesn't supportcodeAction/resolve. This is partially the case for Eclipse, that announces this capability incorrectly due to a bug on their side. The related flag can be used to handle such cases as well. - Added support to retrieve the Codiga API Token configuration as
codigaApiTokenbesidescodiga.api.token. This is useful at least in the case of e.g Java implementations, where creating nested objects is more cumbersome than in other languages like JS.