Files
vscode-extension-samples/contentprovider-sample
dependabot[bot] 4de38b08fe Bump ansi-regex from 5.0.0 to 5.0.1 in /contentprovider-sample
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-24 20:31:36 +00:00
..
2020-05-29 14:20:07 -07:00
2020-05-29 14:01:37 -07:00
2020-05-29 14:13:32 -07:00
2016-05-20 16:52:16 +02:00
2016-12-30 11:17:41 +01:00
2021-07-13 18:48:28 -07:00
2021-02-22 09:58:22 -08:00
2020-05-06 12:14:11 -07:00

References Editor Sample

This is a sample extension that shows how an editor-based representation for the Find References feature can be build.

It is not intended as a product quality extension.

  • Select a symbol
  • Select F1 > Show All References
  • An editor opens to the side and show the references in a textual form

Print References

How it works, what it shows?

  • The extension implements and registers a TextDocumentContentProvider for a particular URI scheme.
  • The content provider uses the vscode.executeReferenceProvider-API command to delegate searching for references to the language extensions, like TypeScript, vscode-go, or C#
  • The generated document initially contains a caption only and incrementally updates as each reference location is resolved.
  • Add links for each result in the virtual document pointing to the reference.
  • Add an entry to editor context menu via package.json

How to run locally

  • npm run compile to start the compiler in watch mode
  • open this folder in VS Code and press F5