zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
159 stars 89 forks source link

Not able to open HTML file in brwoser directly from Zowe explorer #2970

Open ratnamGT opened 1 week ago

ratnamGT commented 1 week ago

I have BuildReprt.html file in Mainframe USS which I am opening from Zowe Editor . I am not able to open it in browser directly from here. Could you please suggest how it can be opened in in-built browser in Zowe editor in VS code. Attaching the screenshot. ![Uploading builreport screenshot from zowe editor.png…]()

github-actions[bot] commented 1 week ago

Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

zFernand0 commented 4 days ago

Hey @ratnamGT, It seems like the file was not uploaded properly to the issue. 😢

Curious if you are using the Z Open Editor or Zowe Explorer. Either way, which VSCode extension are you using for previewing the HTML file in VSCode? I'm using george-alisson.html-preview-vscode 😋

image

ratnamGT commented 4 days ago

Hi @zFernand0 Thanks for your response . I am using Zowe editor to open and preview HTML file. I have also installed george-alisson.html-preview-vscode extension . The first issue is ,HTML file is not opening by default in ISO8859-1 encoding ,I need to select encoding each time on HTML file . second issue is ,it is not previewing and opening the file in VScode browser. It is opening in external brower

zFernand0 commented 3 days ago

Hey @ratnamGT, I believe I might be able to help.

The first issue is ,HTML file is not opening by default in ISO8859-1 encoding ,I need to select encoding each time on HTML file .

To avoid doing this, you can change the USS File Tag to ISO8859-1.

  1. Right-click the BuildReprt.html file
  2. Select Edit Attributes
  3. Modify the Tag attribute on the displayed form
  4. Click on Apply changes

After you have done this, the file should open in ISO8859-1 by default 😋

second issue is ,it is not previewing and opening the file in VScode browser. It is opening in external brower

There are a few things that can be causing the HTML file to be opened on a browser by default. It is possible that some OS configuration might be forcing VSCode to do so. Another way is based on the keybindings defined in VSCode. For example,