Add export and import functionality for captured events in VS Code ex…#46
Merged
brandochn merged 1 commit intoMar 27, 2026
Merged
Conversation
…tension - Implemented commands to export and import events as JSON files. - Updated README and changelog to reflect new features. - Added UI buttons for export and import actions in the profiler panel. - Introduced EventExportImportService for handling event serialization and deserialization.
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.
This pull request adds a major new feature to the Light Query Profiler extension: the ability to export and import captured profiling events as JSON files. This enables users to archive, share, or analyze profiler data offline and across different environments (VS Code extension and desktop app). The release also introduces a new service for event serialization, UI/UX improvements for safe data handling, and updates to documentation and versioning.
New export/import functionality:
Added the ability to export captured profiler events to a JSON file and import them back, either via toolbar buttons or Command Palette commands. The exported format preserves event order and timestamps, and is compatible with both the VS Code extension and the desktop application. [1] [2] [3] [4] [5] [6]
Introduced
EventExportImportServicefor robust serialization and deserialization of events, including error handling, metadata preservation, and cross-platform compatibility.User experience and data integrity:
Export and import actions are only enabled when the profiler is in the stopped state, preventing data corruption during live sessions. Confirmation dialogs are shown when importing over an existing session, and pending imports are handled gracefully if the panel is closed.
Added a host-side
capturedEventsmirror (up to 10,000 events) to keep the extension host and webview in sync, ensuring exports always reflect the latest captured data.Documentation and release updates:
Updated
README.mdfiles and the changelog to document the new export/import workflow, file format, and usage instructions for both the extension and the desktop app. [1] [2] [3] [4] [5]Bumped extension version to 1.1.0 to reflect these feature additions.…tension