Then, in macOS:
\n$ code-server --help\ncode-server 4.93.1 69df01185ce2f80e99c9e4f8c8de1907cc7a9bc5 with Code 1.93.1\n\nUsage: code-server [options] [path]\n - Opening a directory: code-server ./path/to/your/project\n - Opening a saved workspace: code-server ./path/to/your/project.code-workspace\n\nOptions\n --auth The type of authentication to use. [password, none]\n --password The password for password authentication (can only be passed in via $PASSWORD or the config file).\n --hashed-password The password hashed with argon2 for password authentication (can only be passed in via $HASHED_PASSWORD or the config file).\n Takes precedence over 'password'.\n --cert Path to certificate. A self signed certificate is generated if none is provided.\n --cert-host Hostname to use when generating a self signed certificate.\n --cert-key Path to certificate key when using non-generated cert.\n --disable-telemetry Disable telemetry.\n --disable-update-check Disable update check. Without this flag, code-server checks every 6 hours against the latest github release and\n then notifies you once every week that a new release is available.\n --disable-file-downloads Disable file downloads from Code. This can also be set with CS_DISABLE_FILE_DOWNLOADS set to 'true' or '1'.\n --disable-file-uploads Disable file uploads.\n --disable-workspace-trust Disable Workspace Trust feature. This switch only affects the current session.\n --disable-getting-started-override Disable the coder/coder override in the Help: Getting Started page.\n --disable-proxy Disable domain and path proxy routes.\n -h --help Show this output.\n --locale Set vscode display language and language to show on the login page, more info see\n https://en.wikipedia.org/wiki/IETF_language_tag\n --open Open in browser on startup. Does not work remotely.\n --bind-addr Address to bind to in host:port. You can also use $PORT to override the port.\n --config Path to yaml config file. Every flag maps directly to a key in the config file.\n --socket Path to a socket (bind-addr will be ignored).\n --socket-mode File mode of the socket.\n --trusted-origins Disables authenticate origin check for trusted origin. Useful if not able to access reverse proxy configuration.\n -v --version Display version information.\n --user-data-dir Path to the user data directory.\n --extensions-dir Path to the extensions directory.\n --list-extensions List installed VS Code extensions.\n --force Avoid prompts when installing VS Code extensions.\n --install-extension Install or update a VS Code extension by id or vsix. The identifier of an extension is `${publisher}.${name}`.\n To install a specific version provide `@${version}`. For example: 'vscode.csharp@1.2.3'.\n --enable-proposed-api Enable proposed API features for extensions. Can receive one or more extension IDs to enable individually.\n --uninstall-extension Uninstall a VS Code extension by id.\n --show-versions Show VS Code extension versions.\n --github-auth GitHub authentication token (can only be passed in via $GITHUB_TOKEN or the config file).\n --proxy-domain Domain used for proxying ports.\n -e --ignore-last-opened Ignore the last opened directory or workspace in favor of an empty window.\n -n --new-window Force to open a new window.\n -r --reuse-window Force to open a file or folder in an already opened window.\n -vvv --verbose Enable verbose logging.\n -an --app-name The name to use in branding. Will be shown in titlebar and welcome message\n -w --welcome-text Text to show on login page\n --abs-proxy-base-path The base path to prefix to all absproxy requests\n
In Ubuntu:
\n$ code-server --help\ncode-server 1.93.1\n\nUsage: code-server [options][paths...]\n\nTo read from stdin, append '-' (e.g. 'ps aux | grep code | code-server -')\n\nOptions\n -d --diff <file> <file> Compare two files with each other.\n -m --merge <path1> <path2> <base> <result> Perform a three-way merge by providing paths for two modified versions of a file, the\n common origin of both modified versions and the output file to save merge results.\n -a --add <folder> Add folder(s) to the last active window.\n -g --goto <file:line[:character]> Open a file at the path on the specified line and character position.\n -n --new-window Force to open a new window.\n -r --reuse-window Force to open a file or folder in an already opened window.\n -w --wait Wait for the files to be closed before returning.\n -h --help Print usage.\n -c --stdin-to-clipboard copies the STDIN to the clipboard\n\nExtensions Management\n --list-extensions List the installed extensions.\n --show-versions Show versions of installed extensions, when using --list-extensions.\n --category <category> Filters installed extensions by provided category, when using --list-extensions.\n --install-extension <ext-id | path> Installs or updates an extension. The argument is either an extension id or a path to a\n VSIX. The identifier of an extension is '${publisher}.${name}'. Use '--force' argument to\n update to latest version. To install a specific version provide '@${version}'. For example:\n 'vscode.csharp@1.2.3'.\n --uninstall-extension <ext-id> Uninstalls an extension.\n --update-extensions Update the installed extensions.\n\nTroubleshooting\n -v --version Print version.\n --verbose Print verbose output (implies --wait).\n -s --status Print process usage and diagnostics information.\n
Actually:
\n-
In both curl -fsSL https://code-server.dev/install.sh | sh Then, in macOS:
In Ubuntu:
|
Beta Was this translation helpful? Give feedback.
-
code-server on macOS and Ubuntu are running on different versions - check the output you'll see it. Basically Ubuntu is running a very old version of code-server. Edit: the version changed from 4.93.1(macOS) to 1.93.1(Ubuntu Linux). Something may be wrong with install.sh |
Beta Was this translation helpful? Give feedback.
-
I think I've found the cause of the issue, but I'm not sure how it happened.
Again, I don't know why:
I am running the above commands in Anyway, the same way of doing things, which works without issue in |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
If I understand correctly, what is going on here is that in some cases our VS Code's runs in the integrated terminal by default (it gets automatically added to Understandably confusing! This is how it works upstream though, so it is not specific to code-server, and appears to be the intended behavior. |
Beta Was this translation helpful? Give feedback.
Actually: