summaryrefslogtreecommitdiff
path: root/test/lsp
AgeCommit message (Collapse)Author
2021-10-15Fix 3207 - do not send didSave notification if not supported (#3930)Horacio Sanson
2021-10-07Implement textDocument/didSave includeText optional argument (#3925)Wilson E. Alvarez
2021-09-05Introduce an ALELSPStarted autocommand (#3878)Jon Parise
This User autocommand is trigged immediately after an LSP process is successfully initialized. This provides a way to perform any additional initialization work, such as setting up buffer-level mappings.
2021-07-09chore: replace python-language-server to supported pylsp (#3810)Gerardo Gómez Rodríguez
As mentioned in #3722 palantir's python-language-server is no longer maintained. The alternative is to use the community-driven https://github.com/python-lsp/python-lsp-server.
2021-03-01#3599 - Use ale_root instead of ale_lsp_rootw0rp
The `ale_lsp_root` setting is now deprecated, and `ale_root` should be used instead. The setting will be used for both setting the root easily for LSP linters, and for running other linters over whole projects.
2021-02-20Support going to type definition with tsserver (#3545)Alex LaFroscia
2020-11-14Support for LSP/tsserver Code Actions (#3437)Dalius Dobravolskas
* Added tsserver and LSP code action support. * tsserver refactors support added. * Handling special case when new text is added after new line symbol. * ale#code_action#ApplyChanges simplified. * Initial attempt on LSP Code Actions. * workspace/executeCommand added. * Some null checks added. * Add last column to LSP Code Action message. * Pass diagnostics to LSP code action. Previously ApplyChanges code was applied from top-to-bottom that required extra parameters to track progress and there was bug. I have changed code to bottom-to-top approach as that does not require those extra parameters and solved the bug. Tested with typescript-language-server and it is working.
2020-09-05Fix #3183 - Escape filename characters from LSP/tsserverw0rp
2020-08-18Remove features deprecated in previous versionsw0rp
2020-08-18Fix #3294 - Fix hover off by 1, handle LSP server crashesw0rp
2020-08-16Make it easier to run tests locallyw0rp
Certain tests could break if you ran them separately from other tests. They have been patched. `run-tests` now has a `--fast` option which runs tests with only the fastest Vim version ALE tests with, and the custom checks.
2020-08-07Fix #2907 - Handle dictionaries for capabilitiesw0rp
2019-10-18Adding support for LSP `window/showMessage` method (#2652)Andre Souto
* Added base handling for window/showMessage * Ignoring severity log * Code formatting * Added user configurable severity * Preferring ale#util#ShowMessage over echo'ing directly * Using format similar to ale_echo_msg_format for consistency * Updating docs * Added LSP log config string; improved tests * Use warning as fallback for incorrect user config
2019-09-12Add ALERename (tsserver & LSP), ALEOrganizeImports (tsserver) and auto ↵Jerko Steiner
import support (tsserver) (#2709) This commit adds support for renaming symbols in tsserver and with LSP tools, and for organising imports with tsserver. Completion results for symbols that can be imported are now suggested if enabled for tsserver completion done via ALE.
2019-06-02Use JSON output for eslint and fix tsserver columnNils Kuhnhenn
2019-06-01Support custom LSP notificationsMartino Pilia
Allow to send custom notification mesages, that expect no response from the server.
2019-05-31Refactor LSP custom request handlingMartino Pilia
2019-05-31Add API for custom LSP requestsMartino Pilia
Implement a function `ale#lsp_linter#SendRequest` that allows to send custom LSP requests to an enabled LSP linter. Resolves #2474
2019-05-24Fix LSP testsw0rp
2019-05-20Try to fix the testsw0rp
2019-05-20Fix #2515 - Send client capabilities to LSP serversw0rp
2019-05-14Close #829 - Close LSP documents when buffers are deletedw0rp
2019-05-10#2403 - Make ale_disable_lsp apply consistently, and document it betterw0rp
2019-04-15improve the lsp diagnostic message format (#2425)Jethro Shuwen Sun
2019-04-07Close #2132 - Add deprecation warnings for old featuresw0rp
2019-04-07#2132 - Replace command_chain and chain_with with ale#command#Runw0rp
2019-04-02#2397 - didChangeConfiguration should be a notificationw0rp
2019-02-27#2132 - Support deferred execution for LSP executables, commands, and addressesw0rp
2019-02-22#2132 - Replace all uses of foo_callback with foow0rp
2019-02-15#2295 Send an empty object for the initialized notification, per the specw0rp
2019-02-15Fix #2295 - Respond to initialize with an initialized messagew0rp
2019-02-13#2132 Use an on-init callback for all LSP logicw0rp
2019-02-06#2132 - lint and fix with ale#command#Runw0rp
A new function is added here which will later be modified for public use in linter and fixer callbacks. All linting and fixing now goes through this new function, to prove that it works in all cases.
2019-01-26Add additional ways to detect LSP project rootbrian m. carlson
Currently, we detect the linter root based on a variety of techniques. However, these techniques are not foolproof. For example, clangd works fine for many things without a compile_commands.json file, and Go projects may be built outside of the GOPATH to take advantage of Go 1.11's automatic module support. Add global and buffer-specific variables to allow the user to specify the root, either as a string or a funcref. Make the funcrefs accept the buffer number as an argument to make sure that they can function easily in an asynchronous environment. We define the global variable in the main plugin, since the LSP linter code is not loaded unless required, and we want the variable to be able to be read correctly by :ALEInfo regardless.
2019-01-26test/lsp: ensure linter name is setbrian m. carlson
All linters should have a name variable set in their dictionary, and code should be able to rely on that. Fix this test such that its example linter contains a name entry.
2019-01-21Add textDocument/typeDefinition for LSP (#2226)Andrey Popp
* Add textDocument/typeDefinition for LSP Doc to spec https://microsoft.github.io/language-server-protocol/specification#textDocument_typeDefinition This works like textDocument/definition but resolves a location of a type of an expression under the cursor. I'm not sure what to do with tsserver though. * Fix passing column to LSP * test_go_to_definition: wording * Add tests for textDocument/typeDefinition * Add docs for textDocument/typeDefinition
2019-01-21Merge pull request #2224 from andreypopp/andreypopp/lsp-hover-fix-columnw0rp
Adjust column to be 0-based for LSP messages
2019-01-21Update testsAndrey Popp
2019-01-21Update testsAndrey Popp
2018-11-29Merge branch 'master' into sridharsBjorn Neergaard
2018-11-29Add test for detail in lsp ReadDiagnosticsBjorn Neergaard
2018-10-31Merge pull request #2035 from jparise/lsp_config_callbackw0rp
Add a `lsp_config_callback` linter option
2018-10-31Implement LSP symbol searchw0rp
2018-10-31Only send LSP config updates when the dict changesJon Parise
Each LSP connection now stores its configuration dictionary. It is initially empty (`{}`) and is updated each time the LSP connection is started. When a change is detected, the workspace/didChangeConfiguration message is sent to the LSP servers with the updated configuration.
2018-10-22LSP configuration via didChangeConfiguration (#1852)Daniel Welch
* adding LSP configuration via workspace/didChangeConfiguration
2018-08-24Use one LSP connection per projectw0rp
2018-08-20Merge pull request #1815 from fredemmott/lsp-related-informationw0rp
If present, use new-ish LSP 'relatedInformation' field for :ALEDetail
2018-08-16Fix #1816 - Fix a type error in the initialize message handlerw0rp
2018-08-15Correct related information line numbers from 0-based to 1-basedFred Emmott
2018-08-15Test file was the wrong way aroundFred Emmott