Skip to content

Clicking "Show Error in Sidebar" in tooltip switches active view container from "Pretty Typescript Errors" view to Explorer view. #182 #188

@Peter-Schorn

Description

@Peter-Schorn

Describe the bug

I have the "Pretty Typescript Errors" view in a separate view container. If I focus this view and then click on the "Show Error in Sidebar" button in the tooltip that appears, the Explorer view is focused instead, even though the "Pretty Typescript Errors" view is not within this view container.

This is literally the same isse in #182, except with the "Show Error in Sidebar" command. I see that the commit that fixed #182 made the following change:

try {
-    await commands.executeCommand(
-    "workbench.view.extension.prettyTsErrors"
-    );
+    await commands.executeCommand("prettyTsErrors.sidePanel.focus");
} catch {}

Presumably the same change needs to be made here:

try {
await commands.executeCommand(
"workbench.view.extension.prettyTsErrors"
);
} catch {}

Screen.Recording.2026-03-18.at.5.34.40.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions