Skip to content

Sometimes can't start 3rd party plugins during VS Code start #326112

Closed as duplicate

Description

Image

Does this issue occur when all extensions are disabled?: No this issue is of the extensions mechanism of the VS Code itself

  • VS Code Version:
Version: 1.129.0
Commit: 125df4672b8a6a34975303c6b0baa124e560a4f7
Date: 2026-07-15T00:08:44Z
Electron: 42.6.0
ElectronBuildId: 14623276
Chromium: 148.0.7778.280
Node.js: 24.18.0
V8: 14.8.178.38-electron.0
OS: Linux x64 7.1.3-201.fc44.x86_64

happens in older versions as too.

  • OS Version: Fedora 44 Linux

Steps to Reproduce:

  1. Install one of the plugins that trigger this problem (Cline, Codex, probably much more)
  2. Restart and then open some UI of one of those plugins
  3. Restart and repeat step 2 several times

The error that you will see in the pop-up window in the bottom right side will be as following:

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

Sometimes it happens, but sometimes is doesn't and the same plugins work properly.

Looks unrelated to the plugins themselves, but to some internals of the VS Code extensions support.

Activity

  1. rostidev commented on Jul 18, 2026

    @rostidev
    Author

    Still happens even after VS Code was upgraded to versions 1.129.1

    Version: 1.129.1
    Commit: 8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8
    Date: 2026-07-17T15:35:09Z
    Electron: 42.6.0
    ElectronBuildId: 14623276
    Chromium: 148.0.7778.280
    Node.js: 24.18.0
    V8: 14.8.178.38-electron.0
    OS: Linux x64 7.1.3-201.fc44.x86_64
    
  2. Thaina commented on Aug 14, 2026

    @Thaina

    still happen sometimes with claude extension

  3. yinlb3 commented on Sep 17, 2026

    @yinlb3

    I can reproduce this as well. This issue can occur immediately upon opening VS Code, and is not limited to specific extensions — I have encountered it with Claude Code, Cline, Kimi Code CLI, among others. It appears to be a race condition during VS Code's startup/shutdown cycle affecting the webview's ServiceWorker registration.

    Version: 1.138.0 (user setup)
    Commit: 7debcd0
    Date: 2026-09-15T07:24:32Z
    Electron: 42.10.0
    ElectronBuildId: 15109253
    Chromium: 148.0.7778.280
    Node.js: 24.18.1
    V8: 14.8.178.38-electron.0
    @github/copilot: 1.0.84-4
    @github/copilot-sdk: 1.0.13
    OS: Windows_NT x64 10.0.26200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions