Skip to content

Allow to open non-text files via API #566

@seanmcbreen

Description

@seanmcbreen

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 as openFile that could open any supported file type?

Copied from original issue: Microsoft/vscode-extensionbuilders#117

Metadata

Metadata

Assignees

Labels

apifeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions