neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.16k stars 954 forks source link

Dangling preview window after Outline is closed #4907

Closed igbanam closed 4 months ago

igbanam commented 4 months ago

Result from CocInfo

## versions

vim version: VIM - Vi IMproved 9.1 9010100
node version: v21.6.1
coc.nvim version: 0.0.82-d1568d56 2023-09-29 19:43:34 +0800
coc.nvim directory: /Users/igbanam/.vim/bundle/coc.nvim
term: tmux
platform: darwin

## Log of coc.nvim

2024-02-26T21:27:44.810 INFO (pid:23314) [plugin] - coc.nvim initialized with node: v21.6.1 after 77
2024-02-26T21:28:13.546 INFO (pid:23314) [configurations] - Add folder configuration from file: /Users/igbanam/projects/coc-outline-bug/app/.vim/coc-settings.json
2024-02-26T21:28:14.087 WARN (pid:23314) [core-watchman] - Recrawled this watch 45 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/igbanam/projects' ; watchman watch-project '/Users/igbanam/projects'`

2024-02-26T21:28:14.087 INFO (pid:23314) [core-watchman] - watchman watching project: /Users/igbanam/projects/coc-outline-bug/app
2024-02-26T21:28:14.145 INFO (pid:23314) [services] - LanguageClient Language Support for Java state change: stopped => starting
2024-02-26T21:28:14.146 INFO (pid:23314) [language-client-index] - Language server "java" started with 23354
2024-02-26T21:28:18.568 ERROR (pid:23314) [timing] - activate coc-java timeout after 5000ms
2024-02-26T21:28:19.834 INFO (pid:23314) [attach] - receive notification: showOutline []
2024-02-26T21:28:45.245 INFO (pid:23314) [services] - LanguageClient Language Support for Java state change: starting => running
2024-02-26T21:28:45.251 INFO (pid:23314) [services] - service java started
2024-02-26T21:29:02.306 INFO (pid:23314) [attach] - receive notification: doKeymap [ 'local-2-n-cA==' ]
2024-02-26T21:29:30.525 INFO (pid:23314) [attach] - receive notification: doKeymap [ 'local-2-n-PGVzYz4=' ]

Describe the bug

The pop-up preview for coc-outline stays up after the outline window's closed.

Reproduce the bug

We will close your issue when you don't provide minimal vimrc and we can't reproduce it

Screenshots (optional)

Preview with :CocOutline open

Screenshot 2024-02-26 at 21 29 25

Dangling preview after :CocOutline is closed

Screenshot 2024-02-26 at 21 29 45
fannheyward commented 4 months ago

Reproduced with vim, not nvim.

igbanam commented 4 months ago

Fantastic 😍 Thank you for working on this!