Skip to content

Examples

In this section, some examples are provided to help you understand reactive-vscode.

For each example, there are two implementations that achieve the same goal. The first implementation uses original VSCode API, and the second one uses reactive-vscode API.

  • Hello Counter - A simple example that shows how many times the user has called the commands.

  • Editor Decoration - A simple example that adds decorations to the active editor depending on the configuration.

  • Theme Detector - Detect the user's theme, and show a message accordingly.

  • FS Watcher - Watch a dynamic set of files via the VSCode Watcher API.