Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

C++ files ending in .cxx are not picked up by LSP #12

Open
carterols opened this issue Jan 4, 2024 · 1 comment
Open

C++ files ending in .cxx are not picked up by LSP #12

carterols opened this issue Jan 4, 2024 · 1 comment

Comments

@carterols
Copy link

All of the C++ files in our project have the .cxx suffix. Whenever I open the .cxx file, the clangd server isn't started and LSP functions like go-to definition don't work. They only work in the C files.

I'm not sure if this is a plugin bug, or a lapce bug. Let me know if I need to file this issue with the main lapce repository.

@Rakksor
Copy link

Rakksor commented Jan 19, 2024

I added a pull request that adds options to adjust the file extensions. I'm not sure whether this repo is still maintained so if you want you can try to build it from my fork. After building you should be able to copy volt.toml and target/wasm32-wasi/release/lapce-cpp-clangd.wasm to the plugin folder (~/.local/share/lapce-stable/plugins/panekj.lapce-cpp-clangd/ on Linux). You should then see the new options in the settings. Note that you need to restart Lapce after changing the file extensions for it to take effect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants