Skip to content

Method's name doesn't display properly in Vscode's breadcrumbs #789

@fiddleyuan

Description

@fiddleyuan

Description:
When cursor is inside a ClassName::FunctionName, the function name doesn't display properly. It only shows namespace rather than namespace > ClassName > FunctionName

Take CCLS's own code for example, in src/lsp.cc file, if I put cursor at DocumentUri::fromPath, Vscode's breadcrumb will display like below:
2

However, if I put cursor at a function without ClassName, Vscode's breadcrumb will display as expected. Take another function in the same file as example:
1

I'm not sure if this is CCLS's issue or Vscode's issue. But I moved from cquery, I remember it will display properly for both cases.
I would be appreciated if someone can point out where the problem is, or even provide a solution, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions