DonJayamanne / gitHistoryVSCode

Git History for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory
MIT License
952 stars 154 forks source link

webview error when opening history for a file #684

Open zilahir opened 3 years ago

zilahir commented 3 years ago

steps to repro:

0) have a file open which is in a revision 1) CMD SHIFR P 2) hit View File History 3) error appears:

Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

info:

Version: 1.60.2 (Universal)
Commit: 7f6ab5485bbc008386c4386d08766667e155244e
Date: 2021-09-22T11:59:27.195Z (1 wk ago)
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 20.6.0

version of Git History: v0.6.18

remmelttennapel commented 1 year ago

I had the same problem. Discovered that it occurred when I had multiple workspaces open. When it occurs:

  1. Close all VSCode windows
  2. Open just 1 project
  3. Try again