feat: adds config editor symbol support - #1701
Merged
pedrolamas merged 1 commit intoAug 10, 2025
Merged
Conversation
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request enhances the Monaco editor integration for Klipper configuration files by adding document symbol provider support and symbol navigation capabilities. The changes enable users to navigate through configuration sections and properties using Monaco's outline view and "Go to Symbol" functionality.
Key Changes:
- Added Monaco quick access functionality for symbol navigation
- Implemented a document symbol provider for klipper-config files that parses sections and properties
- Enhanced code navigation by organizing configuration structure into hierarchical symbols
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/components/widgets/filesystem/setupMonaco.features.ts | Imports standaloneGotoSymbolQuickAccess module to enable symbol navigation features |
| src/components/widgets/filesystem/setupMonaco.ts | Registers document symbol provider for klipper-config language with section and property parsing logic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request enhances the Monaco editor integration for
klipper-configfiles by adding improved symbol navigation and document structure awareness. The main changes introduce a document symbol provider to support outline and symbol navigation features, and ensure the necessary Monaco quick access functionality is included.Monaco Editor Feature Enhancements:
standaloneGotoSymbolQuickAccess.jsto enable symbol navigation (e.g., "Go to Symbol") in the Monaco editor.klipper-config Language Support:
klipper-configfiles, allowing the editor to display sections and properties in the outline view and support symbol navigation. This groups lines into sections (as namespaces) and properties (as child symbols), improving code navigation and structure visibility.Klipper config editor showing "Go to symbol" menu