Files
vscode-extension-samples/drop-on-document
Connor Peet f4e09a3b7b chore: update dependencies (#996)
- Update @vscode/test-electron due to some bugs
- Update @vscode/test-cli for modern goodness
- vscode-dts -> @vscode/dts off of the deprecated name
- @types/node to 18 to match VS Code itself
2024-04-02 01:29:31 +02: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
2022-04-13 15:04:35 -07:00
2024-04-02 01:29:31 +02:00
2022-04-13 15:04:35 -07: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.