Open sainnhe opened 5 months ago
Tested with coc-highlight and coc-css, can't reproduce.
Can you reproduce this using the following config?
call plug#begin(expand('~/.local/share/nvim/plugins'))
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
call plug#end()
let g:coc_data_home = expand('~/.local/share/nvim/coc')
" May need for Vim (not Neovim) since coc.nvim calculates byte offset by count
" utf-8 byte sequence
set encoding=utf-8
" Some servers have issues with backup files, see #649
set nobackup
set nowritebackup
" Having longer updatetime (default is 4000 ms = 4s) leads to noticeable
" delays and poor user experience
set updatetime=300
" Always show the signcolumn, otherwise it would shift the text each time
" diagnostics appear/become resolved
set signcolumn=yes
set nocompatible
{
"colors.enable": true,
"highlight.colors.enable": true,
"highlight.colorNames.enable": false,
"highlight.document.enable": true
}
I was able reproduce this bug using the above config, and I only installed coc-css
and coc-highlight
.
:CocCommand editor.action.colorPresentation
works, the menu is listed and narrow to select, but :call CocAction('colorPresentation')
made vim frozen.
Update: :call CocActionAsync('colorPresentation')
.
Yes, I can confirm that CocActionAsync
won't make vim stuck, but CocAction
will.
Is this the expected behavior? If so, maybe it's necessary to update the coc help doc since there are many parts mentioned CocAction('colorPresentation')
in the help doc.
update the coc help doc
PR is welcome.
Version info
OS: Darwin wenzhen.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64
Node:
Vim:
CocInfo
Steps to reproduce
test.css
#f78681
and execute:call CocAction('colorPresentation')
Additional information
This bug doesn't exist in neovim.