Closed uga-rosa closed 1 year ago
Please see this.
*ddc-source-attribute-onCompleteDone*
onCompleteDone (function) (Optional)
Called after the completion.
It is useful to substitute text after completion.
NOTE: |ddc-item-attribute-user_data| must be "UserData" to use
the feature.
user_data
is needed for the feature.
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
ddc-source's onCompleteDone does not fire in pum#map#confirm().
Expected
Be fired.
Environment Information
Latest
ddc.vim version (SHA1): 4a99c812f24d5f2cd06e31cc9277867e2d58d88d
denops.vim version (SHA1): 4a99c812f24d5f2cd06e31cc9277867e2d58d88d
deno version(
deno -V
output): deno 1.34.3OS: Ubuntu 22.04 (WSL2)
neovim/Vim
:version
output: NVIM v0.10.0-dev-3bf887fProvide a minimal init.vim/vimrc without plugin managers (Required!)
Source for test
type Params = Record<string, never>;
export class Source extends BaseSource {
gather(
_args: GatherArguments,
): Promise {
return Promise.resolve({
items: [
{ word: "test1" },
{ word: "test2" },
],
isIncomplete: false,
});
}
onCompleteDone( args: OnCompleteDoneArguments,
): Promise {
console.log(args);
return Promise.resolve();
}
params(): Params { return {}; } }