I need the VS Code extension API that finds closest ancestor function in code. These are to be coordinates (line, character) and function name.
I imagine doing one of these solutions:
getBreadcrumb(line: number, character: number)
, which returns an array, with a path to the place we specified in the parameters.
or
- AST structure navigation.
or
- Manual search, custom search script.
But there is no or I can't find the ready breadcrumb API, ready access to AST navigation. Manual own code is a last resort.
How do you get one of these solutions in the VS Code API?