Skip to content

Commit

Permalink
"onCompleteDone" is executed asynchronously.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 16, 2024
1 parent 713725a commit 31c3d0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ddc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function ddc#on_complete_done(completed_item) abort
return
endif

call ddc#denops#_request('onCompleteDone', [a:completed_item])
call ddc#denops#_notify('onCompleteDone', [a:completed_item])
endfunction

function ddc#syntax_in(groups) abort
Expand Down
6 changes: 6 additions & 0 deletions doc/ddc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,9 @@ getPreviewer (function) (Optional)
onCompleteDone (function) (Optional)
Called after the completion text is inserted.
It is useful to substitute text after completion.
NOTE: It is executed asynchronously to optimize the
performance. If you need to execute it synchronously, you
should use |CompleteDone| autocmd instead.
NOTE: |ddc-item-attribute-user_data| must be "UserData" to use
the feature.
NOTE: If it changes the text, it should call
Expand Down Expand Up @@ -1684,6 +1687,9 @@ https://github.com/Shougo/ddc-ui-pum
==============================================================================
COMPATIBILITY *ddc-compatibility*

2024.08.16
* "onCompleteDone" is executed asynchronously.

2023.12.06
* Change "ddc#set_static_import_path()" spec.

Expand Down

0 comments on commit 31c3d0e

Please sign in to comment.