Closed wickedjargon closed 4 years ago
You need to look in the package.json file of the extension to find the name of the container. It will be something like this:
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "xxxxx",
In the configuration for activitus bar, add to
"activitusbar.views": [
{
"name": "extension.xxxxx",
"octicon": "workflow"
},
change workflow
to any octicon icon you want.
Did you manage to get this working?
Yes. Thank you :)
Could you paste the final config, cant get it work :(
This did Flutter works ;3
{
"name": "extension.flutter",
"codicon": "squirrel"
},
{
"name": "extension.test",
"codicon": "squirrel"
}
Also for test too
@Gruntfuggly Can you automate this? I think having to manually configure and reconfigure the list of icons is tedious. I'd like the extension to just copy whatever icons are enabled in the Activity Bar, and automatically update the copy whenever the icons change.
Unfortunately there is no API available to extensions that exposes the contents of the activity bar. 🙁
@Gruntfuggly Thanks for the reply. There's another extension called Customize UI which can modify the positioning and scaling of the original activity bar. I can think of two hack-like methods from the same idea:
Hopefully you can tell if any of this is possible and viable long term. Thanks 😊
Looking at what that extension does, wouldn't it just be easier to use it to move the activity bar to the bottom? You wouldn't even need this extension then. If you just want to make it so that the activity bar looks integrated with the status bar, you could raise a feature request with that extension instead.
The DOM isn't available to extensions and I don't really want to add a dependency on the Monkey Patch extension just for this.
Very fair comment! I will see what I can do. I have indeed decided to use that extension instead of yours after testing both. Hope you understand.
No problem - I'd be interested to see where you get to - the whole point of this extension was to basically move the activity bar and make it smaller in the first place, so if it works, it will be better!
Hi, can you help me please, i cant add Postman extension to activitusbar, this is package.json
i have been trying whit:
{
"name:": "extension.sidebar-panel",
"codicon": "extensions-view-icon"
}
{
"name:": "extension.Postman.sidebar-panel",
"codicon": "extensions-view-icon"
}
{
"name:": "Postman",
"codicon": "extensions-view-icon"
}
{
"name:": "postman-for-vscode.sidebar-panel",
"codicon": "extensions-view-icon"
}
and not working, thanks in advance.
@Gruntfuggly Wouldn't it be helpful to have a feature where we can give the path to any icon we want? Many third-party extensions like Postman, Docker, and Project-Manager have implemented their icons differently. Like here with postman.
This third-party item appears on the
activityBar
(circled at the bottom):(This is the
Dart: Flutter Outline
item included in the Dart package)However, it does not appear on the Activitus bar:
is there anyway to fix this?