code-server: Extension is not enabled after restart
code-serverversion: v1.31.1-100- OS Version: Ubuntu 18.10
Steps to Reproduce
- Install one extension
- restart code-server, then you can see all extensions is disabled, and can’t be enabled again.

About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 18 (9 by maintainers)
Commits related to this issue
- Dockerfile: add default Entrypoint and mount data dir Closes #170 Closes #78 Thanks @ay-b — committed to coder/code-server by nhooyr 5 years ago
- Fix build and Dockerfile issues (#176) * build: fix yarn corruption issues Closes #100 Thanks @zerdos * Dockerfile: add default Entrypoint and mount data dir Closes #170 Closes #78 Th... — committed to coder/code-server by nhooyr 5 years ago
@kylecarbs should we modify the one-liner to also mount a data directory?
Same here using
docker buildfrom Dockerfile.I notice that when refreshing the browser, the file
user-data-dir/CachedExtensions/userwill 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.jsonis 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.