mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Proposed API Sample
This is a sample illustrating how to use Proposed API in VS Code. It is adapted from the Hello Code Sample.
The proposed API being used is vscode.env.clipboard.readText(). See details here: https://github.com/Microsoft/vscode/issues/217#issuecomment-433963587.
VS Code API
Proposed API
Running the Sample
This sample runs on VS Code Insider with commit 4626bc0e1b679d555dd6f034ece35ffc394b3bb7. If VS Code updated the Clipboard API in the future, you must re-download vscode.proposed.d.ts to src/vscode.proposed.d.ts and update your API usage accordingly.
- 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