fannheyward / coc-rust-analyzer

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

expectedName can be different if cargo name contains - while RA returns _ #1271

Open GopherJ opened 1 month ago

GopherJ commented 1 month ago

saying that the crate name is ab-c, expectedName can be ab-c but RA will return ab_c

https://github.com/fannheyward/coc-rust-analyzer/blob/420eb49216d4c7f109899e25b66f772f11698816/src/commands.ts#L410

GopherJ commented 1 month ago

btw this happens in test item

fannheyward commented 1 month ago

but RA will return ab_c

Looks like it's RA's issue.