Commit a5941a3
authored
feat: support configurable CLI global config (#1011)
- Add `coder.globalConfig` machine-scoped setting to control the CLI `--global-config` path; falls back to `CODER_CONFIG_DIR`, then the existing per-deployment `<globalStorage>/<safeHost>` default
- Propagate the resolved config dir through `PathResolver`, CLI auth flags, credential file reads/writes/deletes, active remote reload prompts, and support bundle settings
- On CLI 2.31+: delegate credential writes to `coder login` and deletes to `coder logout --global-config <dir>` instead of the extension touching files directly
- On CLI 2.31+ (file mode): read file-backed CLI credentials so the extension can share a login with the terminal `coder` binary
- Preserve keyring precedence (macOS/Windows, 2.29+); no behavior change for keyring users
- Prevent `coder.globalFlags` from overriding the managed `--global-config` / `--use-keyring` flags
- Move binary cache out of the per-deployment dir; always use the plugin dir (`coder.binaryDestination` still applies)
Closes #1851 parent 738151e commit a5941a3
35 files changed
Lines changed: 1196 additions & 699 deletions
File tree
- src
- api
- core
- instrumentation
- login
- oauth
- remote
- settings
- uri
- util
- webviews/tasks
- test/unit
- api
- core
- login
- remote
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
0 commit comments