weirongxu / coc-explorer

📁 Explorer for coc.nvim
MIT License
1.14k stars 45 forks source link

When opening files, the files are repeated #501

Closed Kamran92 closed 2 years ago

Kamran92 commented 2 years ago

Describe the bug I open the file. I open the CoC explorer. I switch and edit meadowlark and 2 files appear. I go back and click on meadowlark again and edit 3 files will appear

Result from CocInfo

versions

vim version: VIM - Vi IMproved 8.1 8012269 node version: v12.16.1 coc.nvim version: 0.0.80-b56c7369b0 coc.nvim directory: /home/loki/.vim/plugged/coc.nvim term: dumb platform: linux

Log of coc.nvim

2022-01-19T20:25:41.820 INFO (pid:148436) [plugin] - coc.nvim initialized with node: v12.16.1 after 972ms 2022-01-19T20:25:41.822 INFO (pid:148436) [services] - registered service "tsserver" 2022-01-19T20:25:42.088 INFO (pid:148436) [attach] - receive notification: runCommand [ 'explorer' ] 2022-01-19T20:25:42.131 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:25:42.155 INFO (pid:148436) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1', 'BufDelete', 2 ] 2022-01-19T20:25:42.155 INFO (pid:148436) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2', 'BufDelete', 2 ] 2022-01-19T20:25:45.438 INFO (pid:148436) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2', 'CocDiagnosticChange' ] 2022-01-19T20:25:45.924 INFO (pid:148436) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2', 'CocDiagnosticChange' ] 2022-01-19T20:25:48.371 INFO (pid:148436) [attach] - Request action: doKeymap [ 'explorer-key-n-[cr]' ] 2022-01-19T20:25:48.404 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:25:48.411 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:25:48.579 INFO (pid:148436) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2', 'CocDiagnosticChange' ] 2022-01-19T20:25:48.974 INFO (pid:148436) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2', 'CocDiagnosticChange' ] 2022-01-19T20:26:02.200 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:26:03.284 INFO (pid:148436) [attach] - Request action: doKeymap [ 'explorer-key-n-[cr]' ] 2022-01-19T20:26:03.311 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:26:03.328 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:26:04.158 INFO (pid:148436) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2', 'CocDiagnosticChange' ] 2022-01-19T20:26:18.518 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:26:20.022 INFO (pid:148436) [attach] - Request action: doKeymap [ 'explorer-key-n-[cr]' ] 2022-01-19T20:26:20.051 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:26:20.067 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:26:20.250 INFO (pid:148436) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2', 'CocDiagnosticChange' ] 2022-01-19T20:26:23.356 INFO (pid:148436) [attach] - receive notification: runCommand [ 'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2', 'CocDiagnosticChange' ] 2022-01-19T20:26:23.674 INFO (pid:148436) [attach] - receive notification: doAutocmd [ 2 ] 2022-01-19T20:31:49.097 INFO (pid:148436) [attach] - receive notification: showInfo []

Expected behavior I want files with the same name not to appear during the transition and after editing

Screenshots Screenshot from 2022-01-19 20-26-38

weirongxu commented 2 years ago

Should be fix via this PR https://github.com/neoclide/coc.nvim/pull/3588