Add VS Code extension to view Zephyr trace files in-editor#2
Open
jbicker wants to merge 4 commits intoantmicro:mainfrom
Open
Add VS Code extension to view Zephyr trace files in-editor#2jbicker wants to merge 4 commits intoantmicro:mainfrom
jbicker wants to merge 4 commits intoantmicro:mainfrom
Conversation
pedro-zawadniak-adi
approved these changes
Feb 20, 2026
Member
|
Hi, thanks for contributing - could you please fix lint issues introduced in the post message handling? |
glatosinski
requested changes
Feb 26, 2026
Member
glatosinski
left a comment
There was a problem hiding this comment.
Could you please rebase and clean up git commit history so that merge commit is removed?
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
Adds a VS Code extension that opens the existing Zephelin Trace Viewer webapp inside the editor as a custom editor for Zephyr RTOS trace files (JSON).
Changes
Extension (extension/): Custom editor provider that opens *.json trace files in a webview. It reuses the built webapp from dist/ (from yarn build), rewrites asset paths to webview URIs, injects the opened file’s trace data as base64 into the webview, and sets a CSP with nonce for scripts.
Build: Extension is built with esbuild; root package.json adds build:ext and build:all so the webapp and extension can be built together.
VS Code: .vscode/ tasks and launch config for building and running the extension; .gitignore updated for extension/out, extension/node_modules, and selected .vscode files.
How to try
Run yarn build:all (or yarn build then yarn build:ext).
Run the “Launch Extension” debug config (F5).
In the new Extension Development Host, open a .json trace file; it should open with “Zephelin Trace Viewer”.