镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

code-server(latest) has many extensions can not use,when I installed,but show me nothing . #7391

Description

@zzytmbld

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser:chrome
  • Local OS:linux centos
  • Remote OS:linux centos
  • Remote Architecture:
  • code-server --version:4.100.3

Steps to Reproduce

Image

2.cline extension can not use

Image

Image

Image

a lot of extensions can not use
I do not know why, please help me
when I refresh page ,show me an error

Image

Expected

a lot of extensions can not use
I do not know why, please help me
when I refresh page ,show me an error

Actual

a lot of extensions can not use
I do not know why, please help me
when I refresh page ,show me an error

Logs

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

Yes, this is also broken in native VS Code

Does this bug reproduce in GitHub Codespaces?

Yes, this is also broken in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

Activity

  1. added
    bugSomething isn't working
    triageThis issue needs to be triaged by a maintainer
    on Jun 22, 2025
  2. changed the title [-]code-server(latest) has many extensions can not use,when I installed,but show me noting .[/-] [+]code-server(latest) has many extensions can not use,when I installed,but show me nothing .[/+] on Jun 22, 2025
  3. benz0li commented on Jun 22, 2025

    @benz0li
    Contributor
    1. For localhost/127.0.0.1 HTTP is sufficient
    2. For anything else you need TLS encryption
      • This means providing a secure connection over HTTPS

    ℹ Use a reverse proxy like Caddy, Nginx, Træfik, etc.

    Originally posted by @benz0li in #7168 (comment)

  4. vector090 commented on Jun 25, 2025

    @vector090

    similar for me,
    but my versions are:

    no problem up to 4.100.3,
    problem occurs since 4.101.0

    working case:

    Image

    problematic case:

    Image

    check out the error message at the bottom right:

    Error loading webview: Error: Could not register service worker: SecurityError: Failed to register a ServiceWorker for scope ('https://dsw-gateway-cn-hangzhou.data.aliyun.com/dsw-1169732/ide/stable-405eb0f511a66e31b5d03767487d57bb62f0c726/static/out/vs/workbench/contrib/webview/browser/pre/') with script ('https://dsw-gateway-cn-hangzhou.data.aliyun.com/dsw-1169732/ide/stable-405eb0f511a66e31b5d03767487d57bb62f0c726/static/out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=dsw-gateway-cn-hangzhou.data.aliyun.com'): The script resource is behind a redirect, which is disallowed..
    

    Affected extensions such as:
    Tencent-Cloud.coding-copilot
    Alibaba-Cloud.tongyi-lingma
    google.geminicodeassist
    ...
    (virtually any one with a standalone panel)

    Possibly duplicate of #7389

  5. code-asher commented on Jun 25, 2025

    @code-asher
    Member

    Yeah if you see the service worker error then it definitely is #7389. But using an insecure context also causes webview issues, and that one we cannot fix, a secure context is required by browsers to use service workers.

    I will go ahead and close, #7389 is fixed and I will make a new release soon.

  6. vector090 commented on Jun 25, 2025

    @vector090

    But using an insecure context also causes webview issues, and that one we cannot fix, a secure context is required by browsers to use service workers.

    That's true, so today I had to add https for my code server at home...

  7. zzytmbld commented on Jun 27, 2025

    @zzytmbld
    Author

    对我来说类似, 但我的版本是:

    到 4.100.3 为止没有问题, 从 4.101.0 开始出现问题

    工作案例:

    Image

    有问题的案例:

    Image

    查看右下角的错误信息:

    Error loading webview: Error: Could not register service worker: SecurityError: Failed to register a ServiceWorker for scope ('https://dsw-gateway-cn-hangzhou.data.aliyun.com/dsw-1169732/ide/stable-405eb0f511a66e31b5d03767487d57bb62f0c726/static/out/vs/workbench/contrib/webview/browser/pre/') with script ('https://dsw-gateway-cn-hangzhou.data.aliyun.com/dsw-1169732/ide/stable-405eb0f511a66e31b5d03767487d57bb62f0c726/static/out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=dsw-gateway-cn-hangzhou.data.aliyun.com'): The script resource is behind a redirect, which is disallowed..
    

    受影响的扩展例如: Tencent-Cloud.coding-copilot Alibaba-Cloud.tongyi-lingma google.geminicodeassist ...... (几乎任何一个带有独立面板的扩展)

    可能与#7389重复

  8. code-asher commented on Jun 27, 2025

    @code-asher
    Member

    @zzytmbld please try 4.101.2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions