MaskRay / vscode-ccls

ccls plugin for Visual Studio Code
122 stars 37 forks source link

rename symbols, etc #131

Open koll1009 opened 2 years ago

koll1009 commented 2 years ago

thanks for your great work! This extension is easier to use than C/C++ extension and became my first choose when develop C/C++ features.

I hope it can integrate 3 functionalities.

  1. rename symbols
  2. show call hierarchy
  3. generator class diagram

maybe they have existed, please tell me how to use, thanks.

FederAndInk commented 2 years ago

you can do 1. and 2. you can look at the command in the command palette with ctrl+shift+P or F1 and in your keybind settings

for 3. you can use another tool like umbrello

koll1009 commented 2 years ago

you can do 1. and 2. you can look at the command in the command palette with ctrl+shift+P or F1 and in your keybind settings

for 3. you can use another tool like umbrello

thanks for your quick reply. I can see these two commands in right menu or command palette, but no results show in side window. Did this extension depend on anything? BTW, the rename command is not provides by ccls, correct?

FederAndInk commented 2 years ago

you need to install the ccls language server: https://github.com/MaskRay/ccls, then in vscode set the executable path (or have ccls in your PATH)

koll1009 commented 2 years ago

you need to install the ccls language server: https://github.com/MaskRay/ccls, then in vscode set the executable path (or have ccls in your PATH)

Actually I did this and the indexes work well, it can autocomplete/reference well. But the call hierarchy can't work. the respective versions of vscode and vscode-ccls are 1.65.1 and 0.1.29.

FederAndInk commented 2 years ago

does it work on a simpler code example ? what is your OS ? you can try looking at the logs in vscode in the output pane

koll1009 commented 2 years ago

no, it works on a big project. The os version is Linux 3.10.0-1160.21.1.el7.x86_64. it's weird I can't see any output in logs when executing call hierarchy.