Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Accessing the Clipboard #4

Closed
MisterJames opened this issue Jan 22, 2016 · 2 comments
Closed

Accessing the Clipboard #4

MisterJames opened this issue Jan 22, 2016 · 2 comments

Comments

@MisterJames
Copy link

I'd like to access image data that is on the clipboard, with the intent of supporting "pasting" an image into a markdown file. I don't want to paste, per se, I just want a command to "insert image from clipboard via blob upload".

Rather than actually putting the image in, I'd like the image markdown inserted. In the background, I'd like to upload the image to Azure blob storage via the Azure API, then get the path for the blob and use that in the markdown.

I have a handle (via other samples) on how to contribute commands and keybinding, how to get configuration, and how to execute code, but I'm not seeing any samples that interact with the clipboard. I also can't see any API docs that would suggest this is available. Is there another approach one could take to implement this? Is there a way one could go about accessing the data on the clipboard from a VS Code extension?

@egamma
Copy link
Member

egamma commented Jan 22, 2016

Currently we do not expose API for accessing the clipboard.
See the discussion in this issue microsoft/vscode#217. In particular this comment.

Feel free to comment and reopen.

@chrisdias
Copy link
Member

closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants