aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2023-01-19 19:37:12 +0000
committerJosh Rahm <joshuarahm@gmail.com>2023-01-19 20:08:12 +0000
commitb3e662b4b5b41e19368318dfaf09c731fbaf9597 (patch)
treed6aae47922ffeec6e4d6d6ec65490a6c7d329bcb /contrib
parentb8f56fec7f99a2ebda5331c907f87ba3b445d5ca (diff)
downloadrneovim-fix_semantic_tokens.tar.gz
rneovim-fix_semantic_tokens.tar.bz2
rneovim-fix_semantic_tokens.zip
fix(semantic_tokens.lua): Fix nil tokens/data in semantic_tokens.luafix_semantic_tokens20220114-mix
Some (poorly-implemented) LSPs can return an empty JSON object in LSP responses, which could cause tokens to be nil, which would eventually cause an error and a bad UI experience. This fix makes sure that the tokens variable is always set to a non-nil value.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions