Skip to content

When I change computers I lose my extensions and github configuration. #6935

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

Closed
2 tasks done
Kriihz77 opened this issue Aug 6, 2024 · 7 comments
Closed
2 tasks done
Labels
bug Something isn't working duplicate

Comments

@Kriihz77
Copy link

Kriihz77 commented Aug 6, 2024

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Win
  • Remote OS: Debian - Docker
  • Remote Architecture: amd64
  • code-server --version: v4.91.1

Steps to Reproduce

  1. On a computer I configure everything I need
  2. From another authentic computer
  3. All the Extensions configuration and access to Github is lost.
  4. The extensions.json file is validated and found empty.

Expected

As it is accessed from a web, for all computers should keep the same configuration, since this is on the server, the extensions.json file should be kept as initially configured.

Actual

All extensions and settings are deleted between browser changes.

Logs

services:
  code-server:
    image: lscr.io/linuxserver/code-server:latest
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Bogota
      - PASSWORD=123456789 #optional
      - SUDO_PASSWORD=987654321 #optional
      - PROXY_DOMAIN=code-server.kriihz.com #optional
      - DEFAULT_WORKSPACE=/config/workspace #optional
    volumes:
      - ./config:/config
    ports:
      - 17080:8443
    restart: unless-stopped

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

This cannot be tested in native VS Code

Does this bug reproduce in GitHub Codespaces?

This cannot be tested in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@Kriihz77 Kriihz77 added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Aug 6, 2024
@code-asher
Copy link
Member

code-asher commented Aug 7, 2024

Looks like a duplicate of #4212

Unfortunately, VS Code stores the state of some things like the GitHub login in the browser so switching computers or even browsers loses everything.

@code-asher code-asher closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2024
@code-asher code-asher added duplicate and removed triage This issue needs to be triaged by a maintainer labels Aug 7, 2024
@code-asher
Copy link
Member

Wait but are you saying you lose the extensions themselves? Or just their configuration? Extensions themselves should not be lost, unless they are browser extensions. I am not familiar with the linuxserver image, but you probably need to mount ~/.local/share/code-server/extensions.

@Kriihz77
Copy link
Author

Kriihz77 commented Aug 8, 2024

What a pity with you Asher, you are right, what is lost are the code-server extensions, not the browser ones hahahaha, but when validating the directory on the server these have them, but the extension.json file has nothing, I want to share with you some screenshots so you can see a little more the problem.

Evidencia3
Evidencia2
Evidencia1

As you can see I have the extensions installed, but when I change browser they do not appear installed.

@code-asher

@code-asher
Copy link
Member

Interesting! Does the linuxserver image set the extension directory to /config/extensions? I thought the default was ~/.local/share/code-server/extensions.

Maybe there was a recent change that made this browser-dependent. I will try to reproduce later.

@Kriihz77
Copy link
Author

Kriihz77 commented Aug 8, 2024

image

I was left with the doubt and came to check hahahaha

@code-asher
Copy link
Member

@code-asher
Copy link
Member

I do not have a second computer to try right now but I experimented with two different browsers, which should be equivalent:

  1. Run docker run -p 8080:8443 --rm linuxserver/code-server
  2. Open localhost:8080 in a browser.
  3. Install the Python extension from the UI.
  4. Open localhost:8080 in a different browser
  5. The Python extension is still installed.

Maybe there is something else causing that extensions.json to reset but I am not sure what it could be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate
Projects
None yet
Development

No branches or pull requests

2 participants