fannheyward / coc-rust-analyzer

rust-analyzer extension for coc.nvim
MIT License
1.13k stars 40 forks source link

codelens may make folded code markers disappear. #986

Closed pittcat closed 2 years ago

pittcat commented 2 years ago

What's the output of :CocInfo

versions

vim version: NVIM v0.8.0-dev node version: v17.9.0 coc.nvim version: 0.0.80-86c760ae 2022-05-06 02:05:02 +0800 coc.nvim directory: /home/pittcat/.local/share/nvim/site/pack/packer/opt/coc.nvim term: tmux platform: linux

Log of coc.nvim

2022-05-06T17:36:07.540 INFO (pid:3676698) [services] - registered service "languageserver.dls" 2022-05-06T17:36:07.565 INFO (pid:3676698) [services] - registered service "diagnostic-languageserver" 2022-05-06T17:36:07.706 INFO (pid:3676698) [services] - registered service "json" 2022-05-06T17:36:07.707 INFO (pid:3676698) [services] - Json language server state change: stopped => starting 2022-05-06T17:36:07.799 INFO (pid:3676698) [services] - registered service "tsserver" 2022-05-06T17:36:07.822 INFO (pid:3676698) [plugin] - coc.nvim initialized with node: v17.9.0 after 400ms 2022-05-06T17:36:07.920 INFO (pid:3676698) [services] - Json language server state change: starting => running 2022-05-06T17:36:07.925 INFO (pid:3676698) [services] - service json started 2022-05-06T17:36:09.834 INFO (pid:3676698) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1', 'BufDelete', 4 ] 2022-05-06T17:36:09.837 INFO (pid:3676698) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2', 'BufDelete', 4 ] 2022-05-06T17:36:09.994 INFO (pid:3676698) [services] - registered service "rust-analyzer" 2022-05-06T17:36:09.994 INFO (pid:3676698) [services] - Rust Analyzer Language Server state change: stopped => starting 2022-05-06T17:36:10.001 INFO (pid:3676698) [language-client-index] - Language server "rust-analyzer" started with 3676785 2022-05-06T17:36:10.016 INFO (pid:3676698) [services] - Rust Analyzer Language Server state change: starting => running 2022-05-06T17:36:10.020 INFO (pid:3676698) [services] - service rust-analyzer started 2022-05-06T17:37:02.768 INFO (pid:3676698) [attach] - receive notification: showInfo []

What's the output of :CocCommand rust-analyzer.serverVersion latest

https://asciinema.org/a/U9YByuZVtZZUXLRDisLGuTJeD

fannheyward commented 2 years ago

How do you make fold? I can't close the fold with your test codes.

pittcat commented 2 years ago

I had set foldmethod into manual mode and pressed zf.

fannheyward commented 2 years ago

Reproduced, and I think it's coc.nvim's issue.