-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
i18n.properties files cannot be viewed at command "Preview: Open URL" #7231
Comments
@i501378 do you have an example project with a
Was it ever the case that the file could be successfully previewed? |
It should be possible to preview local html files or pictures and so on |
it supported on vscode with extension Unique Identifier: "auchenberg.vscode-browser-preview" |
@i501378 You can use |
The i18n.properties cannot be fetched, that means any html using i18n.properties will not work as expected. The cause to this bug is that we don't get the content from the defaultHandler() response when file type is not exists at mime-db. |
cc @kittaakos maybe you know how to support other mime types (fyi) for webviews we fall back to
|
@kittaakos can you update? |
Can you explain why do you want to preview a
How often do you open such file in your favorite browser? |
Please see the use case below:
|
@i501378, do you have your own Theia extension? |
yes, but i checked it without extensions |
Super, for the time being, you can fix it on your side by customing the code you have mentioned 👇
PRs are welcome! Feel free to create one if you think this is a bug and should behave differently. Thanks! |
Description
We need to view the files by calling the command "Preview: Open URL"
General file types are OK, but i18n.properties files cannot be viewed now.
Reproduction Steps
create or upload file "i18n.properties" into the root of workspace.
execute command "Preview: Open URL", and input the url as file:///workspace/theia/i18n.properties
it's not shown in the preview widget.
**OS and Theia version: gitpod latest version
Diagnostics:
The text was updated successfully, but these errors were encountered: