-
Notifications
You must be signed in to change notification settings - Fork 28k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to open non-text files via API #566
Comments
From @jrieken on November 18, 2015 13:16 I like. Idea is to make the underlying command we already have so that it can accept an uri |
Progress so far? |
Wallabyjs offers the ability to display a screenshot of the last screen in the unit test in other GUIs (WebStorm, etc.). We really want this functionality in our preferred code editor VSCode as well. |
I'll see what June allows |
@jrieken Thanks! No rush, I think I found a good alternative by essentially wrapping the image into an HTML page and displaying the HTML document with the |
|
Awesome! |
Fantastic! |
@bpasero Is this low hanging? Can I use the usual trick with a ResourceEditorInput? |
No, because it's |
But from the workbench point of view you can pass in a |
From @ArtemGovorov on November 17, 2015 3:8
I can open an image (PNG) in the editor manually and there's
workspace.openTextDocument
, but, as expected from the function name, I can't use it to open the image file:"cannot open file:///.... Detail: File seems to be binary and cannot be opened as text"
. Perhaps there should be another function, such asopenFile
that could open any supported file type?Copied from original issue: Microsoft/vscode-extensionbuilders#117
The text was updated successfully, but these errors were encountered: