{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-samples/issues/4","labels_url":"https://api.github.com/repos/Microsoft/vscode-samples/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-samples/issues/4/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-samples/issues/4/events","html_url":"https://github.com/Microsoft/vscode-samples/issues/4","id":128066866,"number":4,"title":"Accessing the Clipboard","user":{"login":"MisterJames","id":1197383,"avatar_url":"https://avatars.githubusercontent.com/u/1197383?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterJames","html_url":"https://github.com/MisterJames","followers_url":"https://api.github.com/users/MisterJames/followers","following_url":"https://api.github.com/users/MisterJames/following{/other_user}","gists_url":"https://api.github.com/users/MisterJames/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterJames/subscriptions","organizations_url":"https://api.github.com/users/MisterJames/orgs","repos_url":"https://api.github.com/users/MisterJames/repos","events_url":"https://api.github.com/users/MisterJames/events{/privacy}","received_events_url":"https://api.github.com/users/MisterJames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-22T02:16:31Z","updated_at":"2016-01-22T08:24:42Z","closed_at":null,"body":"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\".\r\n\r\nRather 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.\r\n\r\nI 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?"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-samples/issues/comments/173841713","html_url":"https://github.com/Microsoft/vscode-samples/issues/4#issuecomment-173841713","issue_url":"https://api.github.com/repos/Microsoft/vscode-samples/issues/4","id":173841713,"user":{"login":"egamma","id":172399,"avatar_url":"https://avatars.githubusercontent.com/u/172399?v=3","gravatar_id":"","url":"https://api.github.com/users/egamma","html_url":"https://github.com/egamma","followers_url":"https://api.github.com/users/egamma/followers","following_url":"https://api.github.com/users/egamma/following{/other_user}","gists_url":"https://api.github.com/users/egamma/gists{/gist_id}","starred_url":"https://api.github.com/users/egamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egamma/subscriptions","organizations_url":"https://api.github.com/users/egamma/orgs","repos_url":"https://api.github.com/users/egamma/repos","events_url":"https://api.github.com/users/egamma/events{/privacy}","received_events_url":"https://api.github.com/users/egamma/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T08:24:42Z","updated_at":"2016-01-22T08:24:42Z","body":"Currently we do not expose API for accessing the clipboard.\r\nSee the discussion in this issue microsoft/vscode#217. In particular this [comment](https://github.com/Microsoft/vscode/issues/217#issuecomment-171348862).\r\n\r\n Feel free to comment and reopen.\r\n"}}