Skip to content

Add export and import functionality for captured events in VS Code ex…#46

Merged
brandochn merged 1 commit into
mainfrom
add-export-import-functionality-for-vs-code-extension
Mar 27, 2026
Merged

Add export and import functionality for captured events in VS Code ex…#46
brandochn merged 1 commit into
mainfrom
add-export-import-functionality-for-vs-code-extension

Conversation

@brandochn
Copy link
Copy Markdown
Owner

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 EventExportImportService for 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 capturedEvents mirror (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.md files 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

  • 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.

…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.
@brandochn brandochn merged commit 14d513f into main Mar 27, 2026
1 check passed
@brandochn brandochn deleted the add-export-import-functionality-for-vs-code-extension branch March 27, 2026 23:55
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