Skip to content

Add management for Recent Connections with profiling and deletion#50

Merged
brandochn merged 1 commit into
mainfrom
feature/enchantment-recent-connections
Apr 22, 2026
Merged

Add management for Recent Connections with profiling and deletion#50
brandochn merged 1 commit into
mainfrom
feature/enchantment-recent-connections

Conversation

@brandochn
Copy link
Copy Markdown
Owner

This pull request implements new features for managing recent connections in the Light Query Profiler extension, most notably adding the ability to delete individual recent connections both in the backend and the VS Code UI. It also introduces a "Start Profiling" button for recent connections, enabling users to quickly begin profiling with a single click. Supporting changes include backend API additions, TypeScript client methods, UI wiring, and comprehensive tests. Minor refactoring for code style consistency (single quotes) is also included.

Recent Connections Management:

  • Added a new DeleteRecentConnectionAsync JSON-RPC endpoint to the .NET backend, allowing deletion of recent connections by their unique identifier. Includes a request model and robust error handling. [1] [2]
  • Implemented corresponding unit tests for the new backend endpoint to ensure correct behavior and error propagation.
  • Exposed a new deleteRecentConnection(id) method on the TypeScript ProfilerClient for frontend consumers to trigger deletions. [1] [2]
  • Updated the changelog and extension manifest to reflect the new features and bump the version to 1.4.0. [1] [2]

UI/UX Improvements:

  • Wired up the Recent Connections panel to include both a "Start Profiling" (▶ Start) button for one-click profiling and a "Delete" (✕ Delete) button to remove entries, refreshing the list in place. Also added a new public method startProfilingWithConnection(connection) on ProfilerPanelProvider for programmatic connection and start. [1] [2]

Code Quality and Consistency:

…apabilities

- Introduced a "Start Profiling" button for each connection in the Recent Connections panel, allowing users to start profiling directly.
- Added a "Delete" button for each connection to remove it from the local database.
- Implemented `DeleteRecentConnectionAsync` endpoint in the .NET backend and corresponding TypeScript method in `ProfilerClient`.
- Enhanced `ProfilerPanelProvider` with a new method `startProfilingWithConnection` to facilitate automatic profiling start.
- Updated UI components in the Recent Connections panel to support new actions and improved styling.
- Refactored existing code for consistency and clarity, including logging messages and error handling.
@brandochn brandochn merged commit b667d3e into main Apr 22, 2026
1 check passed
@brandochn brandochn deleted the feature/enchantment-recent-connections branch April 22, 2026 16:36
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