-
from the online document: https://theia-ide.org/docs/toolbar/, it guide implementation "ToolbarDefaultsFactory", but looks the "ToolbarDefaultsFactory" is interface Symbol , not sure the details usage, I assume that maybe have more simply way to customize the default 'ToolbarDefaults' eg:
also bind it
but It does not effect at all, again, I can use ToolbarController addItem through menu command, it works fine ( I meaning add new toolbar item on the toolbar, but it does not work in the method 'initializeLayout' of the instance class 'FrontendApplicationContribution' . I am not sure whether the online guide is latest or anyone give best solution that can easy customize the default toolbar ? thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @icoco, in order for the toolbar defaults to take effect, you need to run the After running the command, it should reset it to your specified default toolbar items. |
Beta Was this translation helpful? Give feedback.
Hey @icoco,
in order for the toolbar defaults to take effect, you need to run the
Reset Workbench Layout
command. This will reset your layout to the default (including the toolbar). Otherwise, the toolbar will always be loaded from your browser's local storage.After running the command, it should reset it to your specified default toolbar items.