Skip to content

feat: add inline OpenSSL CodeLens feature#6

Open
jnovack wants to merge 2 commits intoffaraone:masterfrom
jnovack:inline-preview
Open

feat: add inline OpenSSL CodeLens feature#6
jnovack wants to merge 2 commits intoffaraone:masterfrom
jnovack:inline-preview

Conversation

@jnovack
Copy link
Copy Markdown

@jnovack jnovack commented May 4, 2026

image

Summary

Add inline OpenSSL previews for PEM certificates and CSRs using CodeLens, while keeping the existing Show OpenSSL preview command behavior unchanged.

This gives users a lightweight summary above certificate blocks and a quick path to open the full parsed OpenSSL output without modifying file contents.

What changed

  • add automatic CodeLens previews above PEM certificate and CSR blocks
  • add CodeLens actions to:
    • load a preview on demand
    • refresh a parsed preview
    • open full details using the same preview surface as the existing command
  • auto-load visible previews only when the file is within configured safety limits, including a default auto-load cap of 3
  • avoid eager parsing for large trust stores or files with many certificates
  • add preview settings for CodeLens enablement and auto-load limits
  • activate on startup so inline CodeLens can appear without first running a command

Validation

I attempted npm run compile, however the current branch does not compile cleanly in this environment:

  • src/lib/openssl.ts(96,13): error TS2794: Expected 1 arguments, but got 0.
  • src/test/index.ts(13,29): error TS2307: Cannot find module 'vscode/lib/testrunner'

I have another branch which refactors the build for 2026. I kept the PRs separate.

I did NOT version bump.

@jnovack
Copy link
Copy Markdown
Author

jnovack commented May 4, 2026

Settings Screenshot:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant