Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename symbols, etc #131

Open
koll1009 opened this issue Mar 9, 2022 · 6 comments
Open

rename symbols, etc #131

koll1009 opened this issue Mar 9, 2022 · 6 comments

Comments

@koll1009
Copy link

koll1009 commented Mar 9, 2022

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
Copy link

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
Copy link
Author

koll1009 commented Mar 10, 2022

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
Copy link

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
Copy link
Author

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
Copy link

FederAndInk commented Mar 10, 2022

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
Copy link
Author

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.

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

No branches or pull requests

2 participants