Gruntfuggly / activitusbar

A VSCode extension to save some real estate by recreating the activity bar buttons on the status bar
Other
114 stars 15 forks source link

Can set up new button for one extension, but not another #56

Open pmeaney-sqrt opened 2 years ago

pmeaney-sqrt commented 2 years ago

Hi there,

Thanks a ton for Activitus Bar, I really like it!

I set up a couple custom buttons. The first works-- it opens the Thunder REST API Client (which has a similar functionality to Postman).

I wasn't quite sure how to make the linkage between the 2nd button and the extension "Markdown Preview Enhanced"

Perhaps it's not available as something that Activitus Bar can open, because "Markdown Preview Enhanced" doesn't have a "View: Show " in the Keyboard Shortcuts menu?

For reference, here's how each are described by VS Code in terms of their names to reference:

Name: Thunder Client Id: rangav.vscode-thunder-client Description: Lightweight Rest API Client for VS Code Version: 1.14.4 Publisher: Ranga Vadhineni VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client

From Keyboard shortcuts: "View: Show Thunder Clients" > RightClick > Copy -- pasted here: { "key": "shift+cmd+r", "command": "workbench.view.extension.thunder-client" }

Name: Markdown Preview Enhanced Id: shd101wyy.markdown-preview-enhanced Description: Markdown Preview Enhanced ported to vscode Version: 0.6.2 Publisher: Yiyi Wang VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=shd101wyy.markdown-preview-enhanced

... this one doesn't have a "View: Show " section in its keyboard shortcuts section. Maybe that's the problem? For comparison, the "Markdown All in One" extension also doesn't have a "View: Show " section in its keyboard shortcuts section.

This works: { "name": "extension.thunder-client", "codicon": "beaker", }

This doesn't work-- it simply opens the extensions menu, instead of the app I am targeting. { "name": "extension.markdown-preview-enhanced", "codicon": "markdown", }

Thanks for your help!

Gruntfuggly commented 1 year ago

Sorry it's taken a while, but I've just uploaded a new version of the extension which might fix this for you. Can you try it and see if it does? The change is that the view your want to open can now be specified as the name. If the Markdown Preview Enhanced extension uses a view it may work. If not, I think you need to find the command to open the view - let me know and I'll try and help.