
Open any Coder workspace in VS Code with a single click.
Repo coder/vscode-coder, read from GitHub 10 h ago. coder has not joined Take My Repo.
Note
This is a pre-release, published to both the VS Code Marketplace and Open VSX. To install it in VS Code, Cursor, Devin Desktop (formerly Windsurf), or another VS Code fork, open the Coder extension's page and choose Switch to Pre-Release Version. Stable users stay on v1.18.1.
This pre-release makes the Workspaces panel the default Coder Remote sidebar, replacing the My Workspaces, Shared Workspaces, and All Workspaces tree views. You can list, search, start, stop, update, and open workspaces, and diagnose their agents, all from one view. The tree views are still one click away if you prefer them.
The panel replaces the three tree views with a single list. From one place you can:
Ctrl+F (Cmd+F on macOS) while the panel has focus. (#1205)(#1202)
The panel is a webview, but it behaves like the built-in trees:
Home, End, Page Up, and Page Down jump through the list, Enter and Space toggle a row, and Escape clears the selection.Tab reaches a row's buttons and menus, and Ctrl+K Ctrl+I (Cmd+K Cmd+I on macOS) shows a row's hover details.Escape closes search, and Enter or ↓ returns to the list.Choose Switch to Legacy Tree Views from the panel's ... menu, or set coder.workspacesPanel.enabled to false. The sidebar switches without a reload, and Switch to Workspaces Panel in the My Workspaces tree switches back. (#1202)
We'd love feedback on the panel before it reaches the stable channel. Please open an issue with anything that's missing or broken.
Full changelog: v1.18.1...v1.18.2
This release fixes a security issue where a value inside a deep link could add or replace the link's other parameters, such as url or token, and verifies the Coder CLI with Coder's new release signing key. It also matches SSH config Host patterns literally and makes sidebar diagnostics target the agent you picked.
Fixes GHSA-wrpj-428x-rw52: an encoded & inside a deep link value, such as a folder path, could add parameters like url or token, or replace existing ones. The extension now rejects deep links that repeat a parameter and names it in the error. All versions before 1.18.1 are affected. (#1196)
The extension now verifies the downloaded Coder CLI with Coder's new release signing key, which replaces the old key. If your deployment doesn't serve a signature, the extension offers to fetch it from releases.coder.com or to run without verification, as before. (#1194)
Host patterns match literally. Patterns with characters such as +, (, or [ no longer mismatch or fail. (#1192)Full changelog: v1.18.0...v1.18.1
This release fixes four security issues where the extension could send your session token, coder.headerCommand headers, or OAuth secrets to a server other than your Coder deployment. Update as soon as possible. It also lets deployments that use TLS client certificates (mTLS) sign in with a session token or OAuth, stops live updates from missing their first message, retries connections that stall, and cancels the old session's requests when you switch accounts.
Warning
This release requires Coder 2.29.0 or later.
| Component | Minimum version |
|---|---|
| Coder server | 2.29.0 |
| Coder CLI | 2.29.0 |
With an older Coder server or CLI, signing in and connecting to workspaces stop with an upgrade message. If you can't upgrade Coder yet, stay on v1.17.2 for now (Extensions view, right-click Coder, Install Specific Version…), but note that v1.17.2 doesn't have the security fixes below. See Compatibility. (#1186, closes #1180)
The extension now identifies a deployment by its origin: the scheme, host, and port of its URL. It keeps a separate session for each origin and sends credentials only to that origin. (#1173, #1176, #1177)
Fixes GHSA-47qp-vp45-fhjf: if your deployment redirected to another server, your session token and coder.headerCommand headers were sent there too. They were also sent on every CLI download from a coder.binarySource on another server. All versions before 1.18.0 are affected.
The extension now:
coder.binarySource host, carry no token or headers.--allow-redirects=false to the CLI, which overrides coder.globalFlags and CODER_ALLOW_REDIRECTS.Fixes GHSA-x24p-7cw4-4qm4: sessions were stored by hostname, so https://coder.example.com, http://coder.example.com, and https://coder.example.com:8443 shared one session. A token for the HTTPS deployment could be sent unencrypted to the http:// URL, or to a different service on another port. From 1.15.0, signing in to one of them in another window could also switch an open remote session to it. Versions 1.12.0 through 1.17.2 are affected.
The extension now:
http:// URLs (medium)Fixes GHSA-g92h-wph3-v9pm: before 2.39.0, the Coder CLI saved keyring entries by host only, so signing in to http://coder.example.com read the token saved for https://coder.example.com and sent it unencrypted. Signing out of the http:// URL also deleted the HTTPS session. Linux isn't affected.
These versions are affected:
coder.useKeyring is on by defaultcoder.useKeyring enabledThe extension now:
http:// only with Coder CLI 2.39.0 or later. With an older CLI, http:// deployments save their session to a file instead, and a notice tells you. HTTPS deployments keep using the keyring.Fixes GHSA-frg9-9vj4-2v84: the extension trusted any endpoint in the deployment's OAuth configuration, so a tampered response could send OAuth tokens, client secrets, and your session token to another server. Versions 1.12.0 through 1.17.2 are affected when OAuth sign-in is enabled. Session token sign-in isn't affected.
The extension now:
/@user/...), and the error names the endpoint. OAuth requests no longer follow redirects to another origin.Important
https:// on the default port, like https://coder.example.com, keep their session. Any other origin, like http://coder.example.com or https://coder.example.com:8443, needs one new sign-in and downloads the Coder CLI again.http:// to https://, sign in with the new URL. The error, or a notice at startup, offers a Sign In to … button.Setting coder.tlsCertFile or coder.tlsKeyFile used to skip the session token step, on the assumption that the certificate signs you in. Deployments that use the certificate only to secure the connection, and still need a session token, couldn't sign in. (#1170, fixes #1159)
The extension now tries, in order:
If the certificate would sign you in as a different user than your previous session, the extension asks first.
coder login, which waited a minute and then failed the connection. Remove All in Coder: Manage Credentials also no longer signs the Coder CLI out of these deployments. (#1170)coder.headerCommand prints an invalid header name, connecting now fails with "Malformed line N from header command output". Header names may contain only letters, digits, and !#$%&'*+-.^_`|~. An invisible byte order mark at the start of the output, which PowerShell adds, is ignored. (#1171)[text](link) in a notification into a clickable link. Startup script names, app status messages, and Coder CLI errors now show as plain text. Template version messages and inbox titles keep their http(s):// links, and other links show as plain text. (#1187)coder.useKeyring even when the keyring wasn't involved. It now offers it only when the Coder CLI fails to save your credentials with the keyring on. (#1186)Full changelog: v1.17.2...v1.18.0
This release fixes two proxy bugs: a reload prompt that came back on every launch in Remote-SSH windows, and API requests that kept using a removed http.proxy. It also logs the full session ID, so one search finds a session across every Coder log.
http.useLocalProxyConfiguration off, so once the remote connects, VS Code reads the http.* proxy settings from the remote. The extension took that switch for a user change and asked "HTTP Proxy, HTTP Proxy Support settings changed. Reload window to apply." each time. It now keeps the local values, so API requests and the SSH connection share one proxy. (#1160, fixes #1161)http.proxy takes effect immediately. The extension hands the proxy to coder ssh through HTTP_PROXY, HTTPS_PROXY, and NO_PROXY. With http.proxy unset, API requests and WebSockets read those variables back and stayed on the old proxy until a reload. They now see only the environment VS Code started with. (#1163, fixes #1162)[client_session_id=<id>] instead of [session <first 8 characters>], the same key the coder CLI, the agent, and JetBrains Toolbox log. (#1164)Note
The npm_config_proxy, npm_config_http_proxy, npm_config_https_proxy, and npm_config_no_proxy variables are no longer read. Use http.proxy and http.noProxy, or HTTP_PROXY, HTTPS_PROXY, and NO_PROXY. (#1163)
Full changelog: v1.17.1...v1.17.2
This release fixes SSH connections that failed with "Premature close" since 1.17.0 in Positron, VSCodium, and other editors that use the open source open-remote-ssh extension. It also fixes Windows paths with open-remote-ssh 0.4.0, and moves the OAuth setting out of experimental.
open-remote-ssh splits the SSH ProxyCommand itself instead of running it through a shell. Since 1.17.0, it passed the single-quoted --url and --global-config to the CLI with the quotes still on, and merged --token= with the next argument, so every connection failed with "Premature close". The extension now uses double quotes, which read the same in a shell and in open-remote-ssh. (#1156, fixes #1153)open-remote-ssh. coder.headerCommand was always single-quoted, so it never worked in these editors. It now works unless it contains $, a backtick, \, %, or a line break. For those, use an editor whose Remote SSH extension runs ssh, such as VS Code with Microsoft's Remote SSH extension. (#1156)open-remote-ssh 0.4.0. This version treats \ in the ProxyCommand as an escape, so paths reached the CLI as C:UsersJohn instead of C:\Users\John and the connection failed. 1.16.4 was affected too. The extension now writes drive-letter paths with /, which OpenSSH and open-remote-ssh both accept. UNC paths are unchanged. (#1157)coder.headerCommand containing " was split into several arguments before it reached the CLI. (#1156)coder.experimental.oauth is now coder.oauth.enabled. If you turned on the old setting, it keeps working until you set the new one in your user settings. OAuth stays off by default. (#1152, closes #1151)Full changelog: v1.17.0...v1.17.1
This release fixes a high-severity security issue where a crafted vscode:// link could run commands on your machine. Update as soon as possible. It also warns you when workspace startup scripts fail, fixes OAuth sign-in on deployments that enforce token scopes, and applies the recommended SSH connection settings in Devin Desktop.
Fixes GHSA-7r9p-h64p-j4vv: a crafted vscode://coder.coder-remote/open link could store a deployment URL that contains shell commands. The extension wrote that URL into the SSH ProxyCommand, and your shell ran the commands on that connection and every later one, even after an upgrade. The link could name your own deployment, so no trust prompt appeared and the connection looked normal.
These versions are affected:
coder.useKeyring is on by defaultcoder.useKeyring enabledThe extension now:
% are rejected every time the extension builds the ProxyCommand, so a URL that an earlier version stored can't run.coder ssh <workspace> -- <command> directly and ends when the command finishes.Important
coder.headerCommand.If the agent's startup scripts fail or time out, the extension now shows a warning. Before, these failures appeared only in the Coder output channel. The connection still succeeds. (#1129, closes #1125)
The warning shown when startup scripts fail
coder.disableNotifications.
The logs that Show Logs opens, one terminal per failed script
Coder 2.38 and later can enforce OAuth token scopes, and sign-in failed on those deployments. The extension now requests the scopes that it and the coder CLI need. (#1138, #1147)
Note
OAuth becomes the default sign-in method in a future release. If your deployment has dynamic client registration turned off, ask your Coder administrator to turn it on. For instructions, see OAuth2 provider.
vscode. Requires Coder and the Coder CLI 2.38.0 or later. (#1136)CODER_SESSION_TOKEN was set in the environment VS Code started in, it overrode the extension's session, so CLI commands and SSH connections failed or ran as a different user. Every CLI command the extension runs, including the SSH ProxyCommand and the terminals it opens, now ignores that variable and uses the session the extension set up. A --token in coder.globalFlags still takes precedence. (#1147)remote.devinSSH.*, or remote.windsurfSSH.* on Windsurf 2.0 to 2.3, so the timeouts the extension set under remote.SSH.* had no effect there. Each editor now gets only the settings its Remote SSH extension reads, both when you connect and from Coder: Apply Recommended SSH Settings. (#1146, fixes #1145)Include works on Windows with unusual paths. If the config directory path contained *, ?, or [, OpenSSH for Windows didn't match the escaped Include path, so it skipped the Coder hosts. (#1131)Full changelog: v1.16.4...v1.17.0