You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Drop `shell: true` from `runCliCommand`; pass args as an array via
`getGlobalFlags` (raw). Eliminates Windows cmd.exe quoting concerns
entirely (DEREM-17) and lets `--parameter` values pass through verbatim.
- Close child stdin after spawn so unexpected interactive CLI prompts
see EOF and error out instead of hanging (DEREM-18).
- Guard the running case of the state machine against post-update builds
that aren't running yet (DEREM-19).
- Drop client-side regex validation (server validates with RE2, ReDoS-safe)
to prevent extension-host freezes on hostile patterns (DEREM-22).
- Expand `${env:VAR}` in `coder.globalFlags` so users can reference
environment variables now that there's no outer shell expansion.
- Document the new globalFlags expansion semantics in package.json.
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,7 @@
160
160
]
161
161
},
162
162
"coder.globalFlags": {
163
-
"markdownDescription": "Global flags to pass to every Coder CLI invocation. Enter each flag as a separate array item; values are passed verbatim and in order. Do **not** include the `coder` command itself. See the [CLI reference](https://coder.com/docs/reference/cli) for available global flags.\n\nNote that for `--header-command`, precedence is: `#coder.headerCommand#` setting, then `CODER_HEADER_COMMAND` environment variable, then the value specified here. The `--global-config` and `--use-keyring` flags are silently ignored as the extension manages them via `#coder.useKeyring#`.",
163
+
"markdownDescription": "Global flags to pass to every Coder CLI invocation. Enter each flag as a separate array item; values are passed verbatim and in order. Do **not** include the `coder` command itself. See the [CLI reference](https://coder.com/docs/reference/cli) for available global flags.\n\nValues are passed directly to the CLI without a shell, so `$VAR` and `%VAR%` are **not** expanded. Use `${env:VAR}` to reference environment variables (e.g. `--cfg=${env:HOME}/cfg`); missing variables resolve to an empty string.\n\nNote that for `--header-command`, precedence is: `#coder.headerCommand#` setting, then `CODER_HEADER_COMMAND` environment variable, then the value specified here. The `--global-config` and `--use-keyring` flags are silently ignored as the extension manages them via `#coder.useKeyring#`.",
0 commit comments