-
Notifications
You must be signed in to change notification settings - Fork 6k
Pass flags to code #305
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
Comments
You can pass flags through code-server to vscode, in code-server this.ipcHandler.once("handshake:hello", () => {
const data: {
sharedIPCHandle: string;
args: Partial<ParsedArgs>;
logLevel: Level;
} = {
args: {
"builtin-extensions-dir": this.builtInExtensionsDir,
"user-data-dir": this.userDataDir,
"extensions-dir": extensionsDir,
},
logLevel: this.logger.level,
sharedIPCHandle: this.socketPath,
};
this.ipcHandler!.send("handshake:hey there", "", data);
}); |
We can update the CLI to include additional arguments. |
@kylecarbs Could you explain how I hoped that this would be a way to install some extensions that would be available for all users on a server and/or a way to install extensions when building a docker image. The user would then still have
|
Is there a way to pass flags through code-server to code? For example, how would I pass:
--user-data-dir=$HOME/vscode/data
and--extensions-dir=$HOME/vscode/extensions
?The text was updated successfully, but these errors were encountered: