Files
vscode-extension-samples/contentprovider-sample
Matt Bierner 0b26276bb6 Use vscode/@types for most extension samples
Fixes #180

Changes from using `vscode` to `@types/vscode` for the majority of extension samples. The `@types/vscode` package is much smaller and does not pull in any dependencies.

Other changes:

- Remove so empty test files
- Bump engine versions to match @types/vscode versions
- Use `npm run compile` for most `vscode:prepublish` scripts
2019-05-09 14:52:38 -07:00
..
2016-05-20 16:52:16 +02:00
2016-12-30 11:17:41 +01:00
2018-10-25 15:57:27 +02: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