Skip to content

[debug-certificate-manager] add homeDirectory config#5809

Merged
bmiddha merged 2 commits into
mainfrom
bmiddha/debug-cert-manager-homedir-config
May 27, 2026
Merged

[debug-certificate-manager] add homeDirectory config#5809
bmiddha merged 2 commits into
mainfrom
bmiddha/debug-cert-manager-homedir-config

Conversation

@bmiddha
Copy link
Copy Markdown
Member

@bmiddha bmiddha commented May 27, 2026

Summary

Adds a new debugCertificateManager.homeDirectory setting to the Debug Certificate Manager VS Code extension. When set, this value is used to resolve a leading ~ in the workspace certificate store path, overriding both the local os.homedir() lookup and the terminal-based resolution used in remote workspaces.

This gives users a deterministic way to point the extension at the correct home directory in environments where the previous resolution mechanisms are unreliable.

Details

  • New string setting: debugCertificateManager.homeDirectory.
  • Resolution order for ~ in the workspace store path:
    1. homeDirectory setting, if configured.
    2. Terminal-based resolution (existing behavior) when vscode.env.remoteName is set.
    3. os.homedir() (existing behavior) otherwise.
  • The setting description recommends configuring it at the user level rather than per workspace.
  • No backwards-compatibility break: when the setting is unset, behavior is unchanged.

How it was tested

Manually:

  • Built the extension via rush build --to debug-certificate-manager.
  • Verified that with the new setting unset, existing local and remote resolution paths are preserved.
  • Verified that with the new setting set, ~ expansion in the workspace store path uses the configured value directly without invoking the workspace terminal.

Impacted documentation

None. Setting is self-describing via its description in package.json.

Adds a new extension setting that, when set, is used as the resolved
home directory for expanding `~` in the workspace certificate store
path, overriding both the local `os.homedir()` lookup and the
terminal-based resolution used in remote workspaces. Recommended to be
configured at the user level rather than per-workspace.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this to Needs triage in Bug Triage May 27, 2026
@bmiddha bmiddha changed the title [debug-certificate-manager-vscode-extension] Add homeDirectory setting [debug-certificate-manager] add homeDirectory config May 27, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bmiddha bmiddha enabled auto-merge (squash) May 27, 2026 20:46
@bmiddha bmiddha merged commit 531e14b into main May 27, 2026
9 checks passed
@bmiddha bmiddha deleted the bmiddha/debug-cert-manager-homedir-config branch May 27, 2026 21:06
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants