function add(x: number, y: number): number {
return x + y;
}
add(
Error detected while processing function neosnippet#complete_done[1]..neosnippet#mappings#_complete_done[1]..<SNR>
100_get_completed_snippets[6]..<SNR>100_get_user_data:
line 23:
E716: Key not present in Dictionary: insertText
I have encountered that errors are thrown when used with LanguageClient-neovim and typescript-language-server due to the fact it sends
CompletionItem
withoutinsertText
attribute, only withlabel
. Related: https://github.com/theia-ide/typescript-language-server/issues/130Langserver specification says this about
CompletionItem.insertText
:The fix in this PR should account for these cases.