mirror of
https://github.com/coder/code-server.git
synced 2025-08-01 19:30:05 +08:00
Implement multiple extension directories
This commit is contained in:
@ -74,6 +74,11 @@ interface IMainCli {
|
||||
|
||||
const main = async (): Promise<void> => {
|
||||
const args = validatePaths(parseMainProcessArgv(process.argv)) as Args;
|
||||
["extra-extensions-dir", "extra-builtin-extensions-dir"].forEach((key) => {
|
||||
if (typeof args[key] === "string") {
|
||||
args[key] = [args[key]];
|
||||
}
|
||||
});
|
||||
|
||||
if (!product.extensionsGallery) {
|
||||
product.extensionsGallery = {
|
||||
|
Reference in New Issue
Block a user