Files
vscode-extension-samples/call-hierarchy-sample
Matt Bierner 5d3686b7dc Bump old vscode versions
This bumps the `@types/vscode` and `engines: vscode` on packages that were using very old versions. These old versions used a `vscode.d.ts` that didn't include proper link support. We've also made a number of fixes and improvements to `vscode.d.ts` that are useful to extension authors
2023-01-30 21:11:11 -08:00
..
2020-05-29 14:20:07 -07:00
2022-11-04 14:27:02 -07:00
2020-05-29 14:13:32 -07:00
2019-11-11 00:47:36 +01:00
2019-11-11 00:47:36 +01:00
2019-11-11 00:47:36 +01:00
2023-01-30 21:11:11 -08:00
2023-01-30 21:11:11 -08:00
2019-11-11 01:16:15 +01:00
2019-11-11 00:47:36 +01:00
2022-02-28 13:45:21 -08:00

Call Hierarchy Provider Sample

This sample shows the Call Hierarchy in action based on a simple food pyramid model defined using simple subject ~ verb ~ object syntax.

Sample

VS Code API

vscode module

Running the Sample

Start the extension in the debugger and it automatically opens a file that is ready for the right-click > Peek Call Hierarchy. Otherwise, it can be testing by creating a file with extension .txt and pasting following text:

Coyote eats deer.
Deer eats plants.
Coyote eats lizard.
Lizard eats bird.
Lizard eats frog.
Lizard eats butterfly.
Bird eats seeds.
Frog eats insects.
Butterfly eats fruit.

Right click on a noun or a verb and select Peek Call Hierarchy.

Contributing to the Sample and Testing the Sample

Run the Run Extension Tests configuration and verify in the Debug Console that all tests are passing.