Skip to content

feat: Add reference and rename providers - #12

Open
depau wants to merge 2 commits into
dannymcgee:mainfrom
depau-forks:feature/macro-navigation
Open

feat: Add reference and rename providers#12
depau wants to merge 2 commits into
dannymcgee:mainfrom
depau-forks:feature/macro-navigation

Conversation

@depau

@depau depau commented Jun 25, 2026

Copy link
Copy Markdown

Disclaimer: I used AI assistance to develop this functionality. A quick look at your profile seems to suggest you're ok with that, but feel free to close if not interested.


This change introduces support for Ctrl+Click / Go to definition navigation for gcode_macro and delayed_gcode, as well as support for renaming.

The providers parse config includes and build an include tree, then detect all macro blocks in the tree and provides references to the detected blocks in all gcode templates.

EDIT: I also added support for macro references in built-in macros that reference other macros: SET_GCODE_VARIABLE MACRO=<macro>, TUNING_TOWER COMMAND=<macro>, and UPDATE_DELAYED_GCODE ID=<delayed_gcode>.

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

Successfully merging this pull request may close these issues.

1 participant