Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pmeaney-sqrt opened this issue Apr 7, 2022 · 1 comment
Open

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

pmeaney-sqrt opened this issue Apr 7, 2022 · 1 comment

Comments

@pmeaney-sqrt
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants