vscode/extensions/markdown-language-features
Matt Bierner 93fd393a0e
Add API proposal for reading files in data transfer (#148596)
* 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

* 💄
2022-05-04 12:59:27 -07:00
..
media Fix #143837 2022-02-23 16:55:41 -08:00
notebook fix #146750. 2022-04-04 14:19:15 -07:00
preview-src enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
schemas [josn] fix wrong schema-schema reference, use draft-07 everywhere 2019-12-05 11:15:39 +01:00
src Add API proposal for reading files in data transfer (#148596) 2022-05-04 12:59:27 -07:00
test-workspace Make sure we decode path components for md path completions 2022-03-22 16:58:37 -07:00
.gitignore Make sure we ignore compiled media files 2021-03-19 12:12:59 -07:00
.vscodeignore remove unecessary files in build 2022-02-18 20:38:55 +01:00
esbuild-notebook.js Reapply parcel/watcher adoption 2022-03-24 14:13:39 -07:00
esbuild-preview.js Fixes microsoft/vscode#147936 (#148503) 2022-05-02 09:33:51 -07:00
extension-browser.webpack.config.js Try adding browser specific tsconfig 2021-07-22 17:00:17 -07:00
extension.webpack.config.js Webpack markdown extension 2018-09-05 09:03:35 -07:00
icon.png [ImgBot] Optimize images 2018-11-06 20:46:03 +00:00
package.json Add diagnostics for markdown links (#148578) 2022-05-02 16:06:00 -07:00
package.nls.json Add diagnostics for markdown links (#148578) 2022-05-02 16:06:00 -07:00
README.md Edit pass on new built-in extension comments (#54277) 2018-07-13 15:28:27 -07:00
tsconfig.browser.json Try adding browser specific tsconfig 2021-07-22 17:00:17 -07:00
tsconfig.json Add API proposal for reading files in data transfer (#148596) 2022-05-04 12:59:27 -07:00
yarn.lock Fix slow positionAt impl for markdown references 2022-03-29 18:19:52 -07:00

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.