[debug-certificate-manager] Reimplement Certificate Manager VS Code Extension#5285
Merged
[debug-certificate-manager] Reimplement Certificate Manager VS Code Extension#5285
Conversation
dmichon-msft
approved these changes
Jul 25, 2025
dmichon-msft
approved these changes
Jul 25, 2025
heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionPublishPlugin.ts
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The previous implementation needed 2 separate VS Code extensions to sync certificates. One running on the local machine ("ui" extension) and one on the remote machine ("workspace" extension).
Running as 1 extension removes the ping-pong handshake and version checks that were used with the 2 extension version. This also simplifies the publishing story.
Rebranded to "Debug Certificate Manager" since this also works in non-remote scenarios to trust and untrust local certificates.
Details
The new implementation only runs as a "ui" extension and uses VS Code's remote file URIs to manipulate files in the remote workspace.
The new implementation now uses a config file to learn the certificate store path and filenames in the remote workspace. This change also updates
CertificateStoreto read the same config.Updated publish pipeline:
Removed
tls-sync-vscode-extensionsversion policy. This was used to keep the multiple extension versions in lock-step so that the version could be verified during the ping-pong handshake. This is no longer needed with the 1 extension implementation.Removed packages:
Added package:
Updated vscode heft plugins to handle generating the extension manifest used for signing and publishing the vsix.
Update publishing pipeline to add a signing step (more work to do on the signing) and update publishing to use the heft plugin.
How it was tested
Tested
CertificateStoreconfig file changes withnpx heft trust-dev-certandnpx heft untrust-dev-cert.Tested extension changes by running the in VS Code extension development host using the
launch.jsonconfig.Impacted documentation