-
Notifications
You must be signed in to change notification settings - Fork 58
fix(code-server): USE_CACHED should still install extensions #252
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
Conversation
When USE_CACHED is true and no extensions have been installed Then we should still try to install them
@mafredri something weird is happening with |
@code-asher - here is the PR for fixing cases where code-server has been reinstalled, but not any of the extensions. |
@code-asher a little simpler to only support installing extension when the the EXTENSION_DIR is set |
@code-asher you are right :). Installing again when there are ones that already exist is really fast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!!
When USE_CACHED is true and no extensions have been installed Then we should still try to install them
close #251
Tests performed
bun test -t code-server
Scenario: use_cached and extensions_dir is set, but no extensions installed
Given
USE_CACHED
istrue
AND a cached copy of code-server
AND we have a list of extensions to install at startup
Then we expect the extensions to be installed
Output when no extensions was installed before
Output if extensions was already installed before
Scenario: offline = true
Expected output