Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

[Pause] Pausing should expand the right sidebar #4471

Description

@jasonLaster

When the debugger pauses, we should expand the right sidebar if it is collapsed. There are a couple reasons why this is important:

  1. the step buttons are there
  2. all the pause data is there
diff --git a/src/actions/pause/paused.js b/src/actions/pause/paused.js
index b43f722..69e931c 100644
--- a/src/actions/pause/paused.js
+++ b/src/actions/pause/paused.js
@@ -7,6 +7,7 @@ import {
 import { updateFrameLocations } from "../../utils/pause";
 import { removeBreakpoint } from "../breakpoints";
 import { evaluateExpressions } from "../expressions";
+import { togglePane } from "../ui";
 import { selectSource } from "../sources";
 import { mapScopes } from "./mapScopes";
 
@@ -50,6 +51,8 @@ export function paused(pauseInfo: Pause) {
       selectSource(frame.location.sourceId, { line: frame.location.line })
     );
 
+    dispatch(togglePane({ position: "end" }));
+
     dispatch(mapScopes());
   };
 }

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Jira

None yet

Severity

None yet

Estimate

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions