7989b7b0fd
Java completer can include FixIts which are applied when a completion entry is selected. We use the existing mechanism implemented for c-sharp to perform these edits using the CompleteDone autocommand. However, the existing mechanism relies on pattern matching the source to work out which item was completed. Vim patch 8.0.1493 introduces support for user_data on completion items, so when available we populate it with the completion array index of the item and use that to get the exact element that was selected. This is both a lot faster and a lot more accirate. Of course when applying these 'FixIts' we don't interrupt the user with confirmation or the quickfix list as this would just be annoying. If the server reports that an edit must be made, we just make the edit. This is achieved by adding a silent flag to ReplaceChunks. |
||
---|---|---|
.. | ||
__init__.py | ||
base_request_test.py | ||
command_request_test.py | ||
completion_request_test.py | ||
debug_info_request_test.py | ||
messages_request_test.py | ||
omni_completion_request_tests.py |