mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 14:30:13 +00:00
93fd393a0e
* Add experimental support for reading files in data transfer
Adds a new `DataTransfer.asFile` method which lets you get file objects from a `DataTransfer`. This is currently only hooked up for drop into editors.
A few follow ups:
- Right now the file data is also read eagerly when it is transfered to the extension host. Before shipping this we would make this happen lazily instead
- The drop into editor api does not provide a nice way to do anything with the dropped files.
We should at least support returning a `WorkspaceEdit`. However `WorkspaceEdit` only supports text files, so we would also need to add an API that lets it deal with binary files
* Make `asFile` return a value instead of a promise
`asFile().data()` already returns a promise so `asFile` doesn't also need to be async
* Trying resolving data files transfer lazily
* Cleaning up code for lazy drop
* Remove testing code
* Remove unneeded buffer serialize
* 💄
|
||
---|---|---|
.. | ||
media | ||
notebook | ||
preview-src | ||
schemas | ||
src | ||
test-workspace | ||
.gitignore | ||
.vscodeignore | ||
esbuild-notebook.js | ||
esbuild-preview.js | ||
extension-browser.webpack.config.js | ||
extension.webpack.config.js | ||
icon.png | ||
package.json | ||
package.nls.json | ||
README.md | ||
tsconfig.browser.json | ||
tsconfig.json | ||
yarn.lock |
Language Features for Markdown files
Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
Features
See Markdown in Visual Studio Code to learn about the features of this extension.