Files
vscode-extension-samples/drop-on-document
Matt Bierner 2ee6b0b7b9 Update all of our samples to target VSCode 1.100 or newer
This makes sure that if folks get a relatively recent `vscode.d.ts`. It also lets us safely bump up the target to es2024 so you can use all the latest lib additions
2025-08-07 07:57:14 -07:00
..
2022-04-13 15:04:35 -07:00
2023-05-11 13:02:35 -07:00
2022-04-13 15:04:35 -07:00
2022-04-13 15:04:35 -07:00
2024-11-26 22:59:45 -08:00

Document on Drop Sample

This sample shows usage of the document on drop API.

This sample adds two sample drop providers for plain text files:

  • ReverseTextOnDropProvider — This provider reverses any text dropped into a plain text editor.

  • FileNameListOnDropProvider — This provider inserts a numbered list of files names. It accepts dropped files from VS Code's explorer, VS Code's open editors view, or from the operating system.