mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
The code behind 'Cancel' was identical to the code for 'Save'. Since the commenting API is modifying the body of the comment, we need to save the previous value in the Comment object.
Commenting API Example
This sample shows
- How to create a comment controller.
- How to support comment thread creation for documents.
- How to update comment actions dynamically.
Running the Sample
- Run
npm installin terminal to install dependencies - Run the
Run Extensiontarget in the Debug View. This will:- Start a task
npm: watchto compile the code - Run the extension in a new VS Code window
- Start a task
