Skip to content

v4.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 18:41
· 7 commits to main since this release
8a84bff

Added

  • Allowed double clicking on entries in the "jump to preprocessed files" dialogue window to open the file.
  • Preprocessor comment blocks can now fold each if/ifdef/elseif/else block separately, rather than the entire block from #if -> #endif
  • Added a plugin settings screen
  • Preprocessor fold regions
    • can optionally collapse inactive regions by default (based on preprocessor condition checks)
    • can optionally collapse all by default
  • Preprocessor condition checking
    • now support chained checks e.g. //#if this && that
    • now support loader checks e.g. //#if FABRIC && !FORGE
    • now correctly checks conditions that need to be false, such as the #if/elseif's preceding an #else/elseif block being tested
  • Preprocessor jump to file action
    • now also correctly moves you to the same caret position and scrolls to it
    • can now differentiate files based on the preprocessor conditions that apply at the caret position
    • can now optionally hide those differentiated results
    • can now press the down arrow from the search bar to navigate to the list (keyboard navigation streamlining)
  • can optionally highlight formatting/clarity problems such as:
    • #if directive not being indented further than it's containing preprocessor block
    • #else/elseif/endif directives not having a matching indent with their initial #if directive
  • Added an option to disable the //$$ insertion on new lines
image
  • Added an action to toggle all preprocessor comments //$$ for the selected lines
  • Added an action to toggle all preprocessor comments //$$ for the entire preprocessor block the caret is within
  • Further keyboard navigation improvements to file jump action

Fixed

  • Fixed sorting of entries in the "jump to preprocessed files" dialogue window.
  • Fixed kotlin k2 mode not registering correctly and always ignoring the optional kotlin-plugin.xml, and thus no working kotlin file folding in k2
  • Fixed/improved PreprocessorNewLineHandler noticably
  • Several bugs from the previous preprocessor condition checking fixed, including the prevSibling iterating not correctly finding previous directives
  • Correct version checking has replaced some logic that used mainVersion for all files, mainVersion is still a fallback if this fails

Updated

  • Changed preprocessor comment styling to have more muted colours & use italics
image
  • Added support for override files within versions/<version>/src/ to the "jump to preprocessed files" action.
  • Improved the visual clarity of the list in the "jump to preprocessed files" dialogue window.
  • Improved keyboard navigation of the "jump to preprocessed files" dialogue window.
  • Having ! before a condition identifer is no longer highlighted as an error, e.g. !FABRIC

Thank you to @Traben for contributing this update!