-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Support for custom editors registered via file extensions #5604
Comments
I am tempted to close this one because I do not think our goal would ever be to support this scenario. But since I cannot look into the future, I leave it open. |
+1, I read vscode API and source, try to find a way open a custom editor, it seems can't be done with extension API. |
+1, I'd like to develop a React-based UI designer coupled with a code editor |
One current way to do this is using the HTML preview for the GUI. HTML does have checkboxes, textfields, etc. I haven't checked if it is possible but you should be able to save the file path and immediately write-back changes in the HTML preview to the file. Or you could add a redundant save button to the HTML preview. https://github.com/Microsoft/vscode-extension-samples/tree/master/previewhtml-sample +1 Because I still feel VS Code needs more robust custom editor extension authoring. The preview work around doesn't really fit with the intended use of the feature. The number of use cases VS Code would be able to cover would be greatly extended if this feature were implemented. For example, I am currently investigating its use as a project editor for a game engine where this would be extremely useful. Also, important to mention that this is offered in atom.io as an extension point: |
Any plan for "real" custom UI? |
+1 ... I want to build an extension that supports a blockly based experience where kids can code using blocks rather than write code ... Something similar to MIT Appinventor or Scratch. |
+1 We have system trace files that I'd like to be able to open my own editor to view the trace graphically using html preview. Otherwise it opens as an unknown binary type. Note that I can do this with my own tree provider. I really just want to do the same in the file explorer for certain file extensions or more generally language modes, i.e. to be able to specify an open command that overrides the default behavior. As a bonus, it would be awesome to hook it up to the dirty bit for the file editor input to make it feel like a real editor. If I figure out how to do this cleanly, would you be open to a pull request? |
@dschaefer another approach is that you contribute a command to the explorer´s context menu for this particular file type that opens the trace graphically. |
Thanks @egamma yes, I'll do that for the protoype. But it's not a good user experience. It'll be hard to explain why these files don't open like other files in their workspace, especially since the error message says "the file will not be displayed". I think we should be making every attempt for that message not to be displayed, including allowing some other editor, or command at least, to take care of it. |
Closing as duplicate of #12176 (which has more votes). |
Similar to Visual Studio extensions, I would like to register a specific file extension and swap out the code editor for a custom UI experience when that file opened.
The text was updated successfully, but these errors were encountered: