summaryrefslogtreecommitdiff
path: root/test/completion
AgeCommit message (Collapse)Author
2022-04-01Set default value for insertTextFormat (#4124)João Costa
Co-authored-by: w0rp <devw0rp@gmail.com>
2022-03-20Fix :ALEImport column positionyoshi1123
Fix :ALEImport column position so it works with more language servers. Co-authored-by: w0rp <devw0rp@gmail.com>
2022-03-04Add eclipselsp jdt:// support for textDocument/definition (#4030)yoshi1123
This patch adds support for opening jdt:// links on "go to definition" requests returned by Java language servers. Co-authored-by: w0rp <devw0rp@gmail.com>
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-06-19Close #3433 - Only use noselect if set for automatic completionw0rp
2021-03-21#3633 - Move linter tests into test/linterw0rp
2021-01-31Allow duplicate LSP completions for autoimport (#3473)Jerko Steiner
Similarly to TS completions, this allows the user to pick the package to autoimport when both the package and method name are the same.
2021-01-273560 add vim 8.2 and nvim 0.4 to ci tests (#3561)Horacio Sanson
* Add vim82 and neovim04 to CI tests. * Fix test_sign_column_hightlighting test. In vim82 with verbose=1 the output of highlight command changes breaking the ale#sign#SetUpDefaultColumnWithoutErrorsHighlight(). This commit forces verbose=0 when the method starts and restores the previous value before exiting. * No return values in vim82 returns a numeric value instead of a empty string. * Fix test_reek_handler test The FuzzyJSONDecode() method catches E474 when it fails to parse the input as JSON but Vim8.2 throws E491 instead. This commit modifies the function to catch both E474 or E491. * Fix perl6 handler test. Perl6 handler catches json parse errors using the E474 error but in Vim82 it changed to E491. This commit modifies the handler so both errors are considered. * Fix list opening tests. In Vim 8.2 the call `range(1, bufnr('$'))` always returns quickfix buffers no matter if they are closed or not. Using `ls` does not show them but the above range will always include them. This new behavior breaks the ale#list#IsQuickfixOpen() method that in turn breaks many other things. This commit fixes this by using the getqflist() and getloclist() methods instead. * Fix test updates loclist test. For some reason in Vim 8.2 the sign offset seems to not reset between tests causing the sign_id to not match in the Assert. When the test is run individually it passes but when run as part of the whole suite the sign_id is off by one. Forcing the offset in the test setup seems to fix the issue. * Fix omnifunc completion test. For unknown reasons the SetCompletionResponse tests fail in Neovim 0.2 and 0.4. Unfortunatelly the only solution I found is to disable them for neovim. * Fix linter warnings * Fix smoker test. Add vim 8.2 to the list of versions that need some retires due to randomly failing tests. * Add docker image build job. Trying some clever trick to build the docker image if not available locally or in Docker hub. It uses the Dockerfile md5 checksum as tag so only when changes on that file occur will the image be downloaded or build. * Add labels to Docker image * Remove tests for middle versions 8.1 and 0.3.5 * Use same vader commit as appveyor * Implement image push to Docker Hub Co-authored-by: Horacio Sanson <horacio@allm.inc>
2020-11-21Merge pull request #3354 from rphln/collapse-whitespacesw0rp
Collapse spaces and lines in the completion menu.
2020-10-15#3332 Implement :ALERename! for ignoring errorsw0rp
:ALERename! now ignores errors for files that cannot be modified, and modifies all other files.
2020-09-14Collapse spaces and lines in the completion menu.Raphael Nepomuceno
2020-09-08Close #3333 - Add an ALECompletePost eventw0rp
Add an `ALECompletePost` event along with everything needed to make it useful for its primary purpose: fixing code after inserting completions. * `ALEFix` can now be called with a bang (`!`) to suppress errors. * A new `ALELintStop` command lets you stop linting, and start it later.
2020-09-06Close #3268 - Implement :ALEImportw0rp
A new command, `:ALEImport`, has been added, which lets you import words at your cursor if a completion provider can provide a completion for that word which includes some additional text changes.
2020-08-29Fix psalm options. Retry on some test failuresw0rp
2020-08-27#3312 - Just check if additionalTextEdits is non-emptyw0rp
2020-08-27Fix #3312 - Fix a false positive for auto importsw0rp
ALE was incorrectly detecting completion results from servers such as rust-analyzer as wanting to add import lines when additionalTextEdits was present, but empty. Now ALE only filters out completion results if the autoimport setting is off, and one of the additionalTextEdits starts on some line other than the current line. If any additionalTextEdits happen to be identical to the change from completion anyway, ALE will skip them.
2020-08-14Fix #2899 - Handle tsserver default import completionw0rp
2020-08-09Close #3267 - Add a general autoimport settingw0rp
2020-08-09Merge pull request #2849 from DonnieWest/excludeTsserverWarningsw0rp
Allow the user to remove warnings from completions
2020-08-07Fix a failing testw0rp
2020-05-31Add test for LSP autoimportJerko Steiner
2020-04-17Merge pull request #2823 from jeremija/do-not-save-on-autoimportw0rp
Do not save after ALERename and ALEOrganizeImports
2020-01-01Add TypeScript autoimport support for deoplete (#2779)Jerko Steiner
* Add autoimport support for deoplete * Fix test_deoplete_source.py * Use callback instead of is_async for deoplete Shuogo, the author of Deoplete, does not recommend using the `is_async` option: > I think is_async is not recommended. It is not so useful and broken. > You should use callback system instead. Link: https://github.com/Shougo/deoplete.nvim/issues/1006#issuecomment-526797857 Incidentally, the same thread mentiones an issue started by w0rp: https://github.com/Shougo/deoplete.nvim/issues/976 The deoplete docs also say is_async is deprecated: > is_async (Bool) > If the gather is asynchronous, the source must set > it to "True". A typical strategy for an asynchronous > gather_candidates method to use this flag is to > set is_async flag to True while results are being > produced in the background (optionally, returning them > as they become ready). Once background processing > has completed, is_async flag should be set to False > indicating that this is the last portion of the > candidates. > > Note: The feature is deprecated and not recommended. > You should use callback system by > |deoplete#auto_complete()| instead. Link: https://github.com/Shougo/deoplete.nvim/blob/master/doc/deoplete.txt Co-authored-by: w0rp <w0rp@users.noreply.github.com>
2019-11-08Fix typoDonnie West
2019-11-08Allow the user to set their own completion valuesDonnie West
2019-11-08Allow the user to remove warnings from completionsDonnie West
2019-10-22Merge branch 'master' into do-not-save-on-autoimportJerko Steiner
2019-10-18Merge pull request #2845 from DonnieWest/fixItemDetailsOnEmptySourcew0rp
Fix tsserver not returning details for items with empty source
2019-10-17Fix tsserver not returning details for items with empty sourceDonnie West
2019-10-17Allow code actions to work on callback based sourcesDonnie West
2019-10-09Do not save for ALERename and ALEOrganizeImportsJerko Steiner
2019-09-20Show description of autoimport action for tsserverJerko Steiner
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-08-17Add asyncomplete.vim Support (#2627)Donnie West
2019-06-19Add & fix tests for added funcsdelphinus
2019-05-30Fix #2544 - Completion positions are off by onew0rp
2019-05-28Fix #2535 - Automatically emit <C-x><C-o> less to prevent <C-o> issuesw0rp
2019-05-17Close #2285 - Add a function for use with omnifuncw0rp
2019-05-12#2492 - Try to fix a deoplete bug againw0rp
2019-05-11Support b:ale_completion_enabled for disabling it for some buffersw0rp
2019-05-09#2481 - Use text to insert from insertTextw0rp
2019-04-23Close #1753 - Implement minimum viable integration with Deopletew0rp
2019-03-10#2341 - Handle completion messages with textEdit objectsw0rp
2019-03-08Fix #2326 - ALEComplete no longer replaces completeoptw0rp
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-08Fix #2257 - Fix an off by 1 which broke completion for some serversw0rp
2019-01-21Update testsAndrey Popp
2019-01-08Optimize ale#completion#Filter when prefix is ""Jerko Steiner
2019-01-08Manually trigger autocomplete even when prefix is ""Jerko Steiner