MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.72k stars 254 forks source link

Desire prepareRename support #917

Open gdamore opened 1 year ago

gdamore commented 1 year ago

Observed behavior

I'm writing an extension for Nova App, and it's easier to "prequalify" a rename operation. For example, if the user has selected something that isn't renamable (like a keyword), having a prepareRename fail lets me give immediate feedback to the user that hte symbol they are trying to rename isn't actually a symbol. It also lets me identify the specific symbol if they have not highlighted the entire symbol or perhaps are renaming a symbol that is part of the declaration (for example int symbol = 5;) while they have their cursor in the text for 'int' above.)

Expected behavior

prepareRename is supported.

System information