cursor icon indicating copy to clipboard operation
cursor copied to clipboard

"Unknown part workbench.parts.activitybar" when moving to the sidebar!

Open a-eid opened this issue 1 year ago • 26 comments

  1. If you can, please include a screenshot of your problem

Screenshot 2024-07-26 at 10 28 21 PM

  1. Please include the name of your operating system MacOS

  2. If you can, steps to reproduce are super helpful

I have these vscode shortcuts to move between splits ( ctrl + l ) to move to right right split & ( ctrl + h ) to move to the left split, however I am unable to move to the sidebar and I can only move to splits. ( it works on vscode fine )

a-eid avatar Jul 26 '24 19:07 a-eid

Got the same problem, the action is workbench.action.navigateLeft and similar ones.

washanhanzi avatar Aug 07 '24 07:08 washanhanzi

Same problem here. I just want to use keybinding to navigate among panels but I always get this error message.

[
  {
    "key": "ctrl+j",
    "command": "workbench.action.navigateDown"
  },
  {
    "key": "ctrl+k",
    "command": "workbench.action.navigateUp"
  },
  {
    "key": "ctrl+h",
    "command": "workbench.action.navigateLeft"
  },
  {
    "key": "ctrl+l",
    "command": "workbench.action.navigateRight"
  }
]

Bubbleinpit avatar Aug 12 '24 06:08 Bubbleinpit

SAME!

benschac avatar Aug 21 '24 20:08 benschac

This way it can be solved.

"workbench.activityBar.orientation": "vertical",

CleanShot 2024-08-28 at 10 56 28@2x

code661 avatar Aug 28 '24 02:08 code661

This way it can be solved.

"workbench.activityBar.orientation": "vertical",

CleanShot 2024-08-28 at 10 56 28@2x

It works !!

yangsimin avatar Aug 28 '24 03:08 yangsimin

Thanks, @code661, it works great. Life saver 🛟

yagudaev avatar Aug 31 '24 00:08 yagudaev

This way it can be solved.

"workbench.activityBar.orientation": "vertical",

you da real MVP 🏆🏆

coindegen avatar Sep 17 '24 10:09 coindegen

Thanks @code661, it works!

However I only can move from the editor to the sidebar using ctrl+h. I can't go from the sidebar to the editor using ctrl+l.

Edit: I just managed to do this by adding this in my keybindings.json:

    {
        "key":"ctrl+l",
        "when":"sideBarFocus",
        "command":"workbench.action.focusActiveEditorGroup"
    }

turfaa avatar Oct 25 '24 16:10 turfaa

Thanks @code661, it works!

However I only can move from the editor to the sidebar using ctrl+h. I can't go from the sidebar to the editor using ctrl+l.

Edit: I just managed to do this by adding this in my keybindings.json:

    {
        "key":"ctrl+l",
        "when":"sideBarFocus",
        "command":"workbench.action.focusActiveEditorGroup"
    }

So ctrl-l will only work when we are in the sidebar but how about when we are navigating between 2 editor groups next to each other?

mrjxtr avatar Nov 20 '24 03:11 mrjxtr

So ctrl-l will only work when we are in the sidebar but how about when we are navigating between 2 editor groups next to each other?

Assuming you mean moving between the sidebar and a left and right group of editors, I have the same keybinding set as you mention and can navigate back and forth between them all.

resetheadhard avatar Nov 20 '24 17:11 resetheadhard

If you can’t do this you shouldn’t be coding On Sun, Feb 23, 2025 at 10:46 AM Alexandre Gerona @.***> wrote:

How do you navigate in/out of Chat/Compose window?

— Reply to this email directly, view it on GitHub https://github.com/getcursor/cursor/issues/1570#issuecomment-2676933074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIIRGGPCQQOYCETY52QOPAT2RHUOPAVCNFSM6AAAAABLRCC5SOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWHEZTGMBXGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: alecgerona]alecgerona left a comment (getcursor/cursor#1570) https://github.com/getcursor/cursor/issues/1570#issuecomment-2676933074

How do you navigate in/out of Chat/Compose window?

— Reply to this email directly, view it on GitHub https://github.com/getcursor/cursor/issues/1570#issuecomment-2676933074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIIRGGPCQQOYCETY52QOPAT2RHUOPAVCNFSM6AAAAABLRCC5SOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWHEZTGMBXGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

saadfarooq07 avatar Feb 23 '25 16:02 saadfarooq07

Image

"vertical" activity bar alignment is broken in recent update 🫠

dassongh avatar Feb 25 '25 08:02 dassongh

"vertical" activity bar alignment is broken in recent update 🫠

You can create a separate issue for that

mrjxtr avatar Feb 27 '25 13:02 mrjxtr

"vertical" activity bar alignment is broken in recent update 🫠

@dassongh You can use "Custom CSS and JS Loader" extension to configure custom CSS styles to restore it to the VSCode appearance:

/** Restore the height of the activity bar element to the vscode default value */
.monaco-workbench .composite-bar .monaco-action-bar:not(.vertical) .action-item {
  height: 35px !important;
}

/** Restore the icon size of the activity bar element to the vscode default value */
.monaco-workbench .composite-bar .monaco-action-bar .action-item .action-label {
  font-size: 16px !important;
}

/** Restore the progress icon position of the activity bar element to the vscode default value */
.monaco-workbench .progress-badge>.badge-content:before {
  transform: none !important;
  left: 1px !important;
  top: 1px !important;
}

Bubbleinpit avatar Mar 14 '25 08:03 Bubbleinpit

Yup... with recent updates... they even disable the only fix know that can solve this "Unknown part workbench.parts.activitybar" issue...

it is now grayed out.

Image

mrjxtr avatar Mar 24 '25 15:03 mrjxtr

Yup... with recent updates... they even disable the only fix know that can solve this "Unknown part workbench.parts.activitybar" issue...

it is now grayed out.

@mrjxtr May I ask what the version number is?

Bubbleinpit avatar Mar 25 '25 13:03 Bubbleinpit

Yup... with recent updates... they even disable the only fix know that can solve this "Unknown part workbench.parts.activitybar" issue...

it is now grayed out.

@mrjxtr May I ask what the version number is?

I'm not sure, but they already patched it... I installed using the AUR

mrjxtr avatar Mar 25 '25 14:03 mrjxtr

Hope they fix it soon

maxktz avatar Mar 28 '25 10:03 maxktz

The fix mentioned above no longer works. Might just go back to VScode for now.

stefvhuynh avatar Mar 28 '25 19:03 stefvhuynh

The fix mentioned above no longer works. Might just go back to VScode for now.

Right... This annoying bug actually forced me to just use neovim for the past months and found myself relying on code completion less and less 😆 actually a win tbh

mrjxtr avatar Mar 29 '25 01:03 mrjxtr

Do they even plan to fix it, did they see it, announced?

maxktz avatar Mar 29 '25 07:03 maxktz

Do they even plan to fix it, did they see it, announced?

Probably not because it's such a niche bug exclusive to a specific extension

mrjxtr avatar Mar 29 '25 11:03 mrjxtr

That's crazy, no fix at all?

karambaq avatar Apr 02 '25 01:04 karambaq

That's crazy, no fix at all?

Yeah, they didn't even mark it as a bug

maxktz avatar Apr 02 '25 13:04 maxktz

Desperately needed. There's no silky vim

LikeRainDay avatar Apr 15 '25 11:04 LikeRainDay

Hello, i fixed the issue with vertical but workbench.action.navigateUp and down doesn't work in the cursor but works in the VS Code. Could someone help me fix it?

Vladipz avatar May 11 '25 09:05 Vladipz

Setting "workbench.activityBar.orientation": "vertical" just worked for me having installed Cursor today to fix the ability to navigate around properly with ctrl+hjkl. But Ideally I'd like to hide the activity bar entirely like you can in VSCode. However, that command isn't valid... :/

workbench.action.activityBarLocation.hide

jondkinney avatar May 16 '25 03:05 jondkinney

@jondkinney This helped!!

akfmdl avatar May 27 '25 00:05 akfmdl

Fixed on latest Cursor version

I just fixed the issue today using the latest version of Cursor (Cursor Version: 0.50.7 | VSCode Version: 1.96.2 ), so I can confirm everything now works as expected — both the navigation problem and the appearance glitch.

Here’s the fix: just add these two lines to your settings.json file:

"workbench.activityBar.orientation": "vertical",
"workbench.activityBar.location": "default" 

The second line restores the default layout (like in standard VS Code), which avoids the rendering bug caused by conflicting layout modes (e.g., vertical orientation + top position). This solution brings back full compatibility with keyboard navigation (e.g., Ctrl+H/J/K/L) without any visual overflow.

Hope this helps others facing the same problem!

davidfedericodev avatar Jun 04 '25 08:06 davidfedericodev