Files
vscode-extension-samples/drop-on-document
Matt Bierner 73e249b3c1 Migrate all samples to eslint 9
Switches all samples to use eslint 9 with flat configs. I've tried to migrate existing settings as much as possible. However our eslint configs were also inconsistent so I've tried to align these too
2024-10-26 17:44:03 -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-10-26 17:44:03 -07: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.