Files
vscode-extension-samples/codelens-sample
dependabot[bot] ec2a33f135 Bump ansi-regex from 5.0.0 to 5.0.1 in /codelens-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:40 +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
2019-10-03 16:54:05 -03:00
2021-07-13 18:48:28 -07:00
2019-10-03 16:54:55 -03:00
2020-05-06 12:14:11 -07:00

CodeLens Sample

This is a sample extension that shows the usage of the CodeLens API.

It is not intended as a production quality extension.

  • Create a new file
  • Write anything
  • Click on the CodeLens for action example
  • Can be enabled or disabled by command palete

Demo

demo

VS Code API

languages module

CodeLens Provider

Running the Sample

  • Run npm install in terminal to install dependencies
  • Run the Run Extension target in the Debug View. This will:
    • Start a task npm: watch to compile the code
    • Run the extension in a new VS Code window