Clicking on Session Bridge plugin status in the status bar should open the plugin view…
- User
Clicking on Session Bridge plugin status in the status bar should open the plugin view instead of showing the CLI status
- User
Clicking on Session Bridge plugin status in the status bar should open the plugin view instead of showing the CLI status
Assistant
I'll help you modify the status bar item to open the plugin view instead of showing CLI status. Let me first explore the codebase to understand the current implementation.
Assistant
Now I can see the issue. The status bar item is created with the command
COMMAND_ID.SHOW_STATUS(line 94 in extension.ts), which shows the CLI status output. Looking at the code:- Line 94:
const statusBarItem = createStatusBarItem(COMMAND_ID.SHOW_STATUS, workspaceState); - Line 116: The tooltip says "Click to show Entire status."
- Lines 266-280: The
showStatusfunction displays CLI information
To open the plugin view instead, I need to change the command to focus on one of the tree views. Let me check what command would be appropriate:
- Line 94:
Assistant
Perfect! I can see that the view container is
session-bridge(line 22) and it contains two views:session.bridge.entire.checkpoints(Checkpoints)session.bridge.entire.sessions(Checkpoint Sessions)
The existing
BROWSE_CHECKPOINTScommand focuses the checkpoints view (line 455 in extension.ts). I'll modify the status bar to focus the Session Bridge view container instead of showing CLI status.Let me update the code:
Assistant
Now I need to add a new command to focus the view container and update the extension to use this command instead of SHOW_STATUS:
Assistant
Now I need to add the handler for the FOCUS_VIEW command in the command registration section:
Assistant
Perfect! Now let me verify the changes by reading the modified sections:
Assistant
Great! Now let's compile and test the changes:
Assistant
Excellent! The compilation was successful. Now let me create a summary of the changes:
Summary
I've successfully modified the Session Bridge extension so that clicking on the status bar item now opens the Session Bridge view container instead of showing the CLI status output.
Changes Made:
-
src/components/entireStatusBarItem.ts(line 116):- Updated tooltip text from "Click to show Entire status." to "Click to open Session Bridge view."
-
src/extension.ts:- Added new command
FOCUS_VIEW(line 20) with ID"session.bridge.entire.focusView" - Added corresponding command title in
COMMAND_TITLES(line 40) - Changed status bar item creation to use
COMMAND_ID.FOCUS_VIEWinstead ofCOMMAND_ID.SHOW_STATUS(line 96)
- Added new command
-