code-server: Extension is not enabled after restart

  • code-server version: v1.31.1-100
  • OS Version: Ubuntu 18.10

Steps to Reproduce

  1. Install one extension
  2. restart code-server, then you can see all extensions is disabled, and can’t be enabled again.

image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 4
  • Comments: 18 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@kylecarbs should we modify the one-liner to also mount a data directory?

Same here using docker build from Dockerfile.

I notice that when refreshing the browser, the file user-data-dir/CachedExtensions/user will be regenerated. However it cannot be generated correctly.

It is always like following: { "input": { "ourVersion": "1.32.0", "locale": "en", "devMode": false, "absoluteFolderPath": "/root/.local/share/.code-server/extensions", "isBuiltin": false, "isUnderDevelopment": false, "tanslations": {} }, "result": [] }

"result": [] is always empty, including no information of installed extensions. Normally it should contain all extensions information.

Again another file user-data-dir/globalStorage/stage.json is not properly generated in the same way.

For example, if the extension “Markdown All in One” is manually disabled, this file supposes to include the information whether a extension is disabled or not, like "extensionsIdentifiers/disabled":"[{\"id\":\"yzhang.markdown-all-in-one\",\"uuid\":null}]" However it is not in the file.