Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/modules/ipc/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,12 @@ class MainProcessBridge implements MainIpcModule {
error?: string
needsReconnect?: boolean
}> => {
// If connection type is null, the debugger was intentionally disconnected.
// Return a silent failure so the renderer polling ignores it.
if (this.debuggerConnectionType === null) {
return { success: false, error: 'Debugger not connected' }
}

if (this.debuggerConnectionType === 'websocket') {
if (!this.debuggerWebSocketClient) {
if (this.debuggerReconnecting) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export const TooltipSidebarWrapperButton = ({
return (
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>{children}</TooltipTrigger>
<TooltipTrigger asChild>
<div className='w-full'>{children}</div>
</TooltipTrigger>
<SidebarTooltipContent side='right' sideOffset={5} arrow={false}>
<div className='w-full text-center font-caption text-xs'>{tooltipContent}</div>
</SidebarTooltipContent>
Expand Down
Loading