feat: add editor top side bar support #3026
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Types
Background or solution
π€ Generated by Copilot at 3d21ef2
EditorSide
type to include'top'
as a valid value (link)registerEditorSideWidget
method comment to reflect the new option (link)top
to theEditorComponentRegistryImpl
class to store the registered widgets (link).kt_editor_side_widgets_top
to style the top widgets (link)<EditorSideView>
to theEditorGroupBody
component to render the top widgets for the current resource (link)ExampleEditorTopWidget
in theeditor-top-example.tsx
file that displays the file URI (link)startup.contribution.ts
file (link)registerEditorComponents
method (link)side
property to the existing registration of theExampleEditorBottomWidget
component (link)Changelog
π€ Generated by Copilot at 3d21ef2
This pull request adds a new feature to the editor that allows displaying custom widgets on the top side of the editor area. It implements an example widget that shows the file URI of the current resource, and updates the existing bottom widget registration to use the new
EditorSide
type.