Skip to content

Commit 31c3d0e

Browse files
committed
"onCompleteDone" is executed asynchronously.
1 parent 713725a commit 31c3d0e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

autoload/ddc.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function ddc#on_complete_done(completed_item) abort
5353
return
5454
endif
5555

56-
call ddc#denops#_request('onCompleteDone', [a:completed_item])
56+
call ddc#denops#_notify('onCompleteDone', [a:completed_item])
5757
endfunction
5858

5959
function ddc#syntax_in(groups) abort

doc/ddc.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,9 @@ getPreviewer (function) (Optional)
10071007
onCompleteDone (function) (Optional)
10081008
Called after the completion text is inserted.
10091009
It is useful to substitute text after completion.
1010+
NOTE: It is executed asynchronously to optimize the
1011+
performance. If you need to execute it synchronously, you
1012+
should use |CompleteDone| autocmd instead.
10101013
NOTE: |ddc-item-attribute-user_data| must be "UserData" to use
10111014
the feature.
10121015
NOTE: If it changes the text, it should call
@@ -1684,6 +1687,9 @@ https://github.com/Shougo/ddc-ui-pum
16841687
==============================================================================
16851688
COMPATIBILITY *ddc-compatibility*
16861689

1690+
2024.08.16
1691+
* "onCompleteDone" is executed asynchronously.
1692+
16871693
2023.12.06
16881694
* Change "ddc#set_static_import_path()" spec.
16891695

0 commit comments

Comments
 (0)