Skip to content
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

Can't see images after installing extension #31

Open
angelod1as opened this issue Jul 3, 2022 · 5 comments
Open

Can't see images after installing extension #31

angelod1as opened this issue Jul 3, 2022 · 5 comments

Comments

@angelod1as
Copy link

Expected:

  • Add an image to a project (I tested jpg and png)
  • Click on the image on the sidebar
  • See preview of the image in VSCode

Current:

  • Add an image to a project
  • Click on the image on the sidebar
  • Get the error below:
Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

note: I don't wish to see the image in an external app. I wish to see it in the default VSCode way.

Attempts:

  • Disabling the extension does not fix the error.
  • Uninstalling the extension fixes the error (but it needs VSCode reboot)
@tjx666
Copy link
Owner

tjx666 commented Oct 11, 2022

You can set the VSCode as the system default app to open the image file, and no need to config it.

@angelod1as
Copy link
Author

angelod1as commented Oct 13, 2022

@tjx666 this is hardly a solution. I don't want VSCode to open my JPGs or PNGs from explorer/finder. I have apps for that, and VSCode is not them.

@tjx666
Copy link
Owner

tjx666 commented Oct 15, 2022

If you want to open in vscode, why not just click the file in vscode file explorer?

@angelod1as
Copy link
Author

I think I wasn't clear.

If I'm on explorer/finder and see a JPG, I don't want VSCode to be the default app for those files. They have their own default app.

But if I'm on VSCode, working on a project, and I click the image in VSCode explorer, this image should be shown in VSCode. This is the default way VSCode works.

When I install this extension, this default way stops working, and VSCode stops showing me images if I select them on VSCode's file explorer.

@tjx666
Copy link
Owner

tjx666 commented Oct 17, 2022

This extension doesn't do anything when you click the image. Had you ever try to disable this extension and click the image? Maybe other extension cause the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants