|
4 | 4 |
|
5 | 5 | ## [Unreleased] |
6 | 6 |
|
| 7 | +### Added |
| 8 | +- Allowed double clicking on entries in the "jump to preprocessed files" dialogue window to open the file. |
| 9 | +- Preprocessor comment blocks can now fold each if/ifdef/elseif/else block separately, rather than the entire block from #if -> #endif |
| 10 | +- Added a plugin settings screen |
| 11 | +- Preprocessor fold regions |
| 12 | + - can optionally collapse inactive regions by default (based on preprocessor condition checks) |
| 13 | + - can optionally collapse all by default |
| 14 | +- Preprocessor condition checking |
| 15 | + - now support chained checks e.g. `//#if this && that` |
| 16 | + - now support loader checks e.g. `//#if FABRIC && !FORGE` |
| 17 | + - now correctly checks conditions that need to be false, such as the #if/elseif's preceding an #else/elseif block being tested |
| 18 | +- Preprocessor jump to file action |
| 19 | + - now also correctly moves you to the same caret position and scrolls to it |
| 20 | + - can now differentiate files based on the preprocessor conditions that apply at the caret position |
| 21 | + - can now optionally hide those differentiated results |
| 22 | + - can now press the down arrow from the search bar to navigate to the list (keyboard navigation streamlining) |
| 23 | +- can optionally highlight formatting/clarity problems such as: |
| 24 | + - #if directive not being indented further than it's containing preprocessor block |
| 25 | + - #else/elseif/endif directives not having a matching indent with their initial #if directive |
| 26 | +- Added an option to disable the `//$$ ` insertion on new lines |
| 27 | +<img width="750" height="405" alt="image" src="https://github.com/user-attachments/assets/dc364ea4-3502-45e0-88ec-e12c8c5bee76" /> |
| 28 | +- Added an action to toggle all preprocessor comments `//$$ ` for the selected lines |
| 29 | +- Added an action to toggle all preprocessor comments `//$$ ` for the entire preprocessor block the caret is within |
| 30 | +- Further keyboard navigation improvements to file jump action |
| 31 | + |
| 32 | +### Fixed |
| 33 | +- Fixed sorting of entries in the "jump to preprocessed files" dialogue window. |
| 34 | +- Fixed kotlin k2 mode not registering correctly and always ignoring the optional kotlin-plugin.xml, and thus no working kotlin file folding in k2 |
| 35 | +- Fixed/improved `PreprocessorNewLineHandler` noticably |
| 36 | +- Several bugs from the previous preprocessor condition checking fixed, including the `prevSibling` iterating not correctly finding previous directives |
| 37 | +- Correct version checking has replaced some logic that used `mainVersion` for all files, `mainVersion` is still a fallback if this fails |
| 38 | + |
| 39 | +### Updated |
| 40 | +- Changed preprocessor comment styling to have more muted colours & use italics |
| 41 | +<img width="381" height="218" alt="image" src="https://github.com/user-attachments/assets/2009d6aa-baa6-4117-adcf-c53e47941b83" /> |
| 42 | +- Added support for override files within `versions/<version>/src/` to the "jump to preprocessed files" action. |
| 43 | +- Improved the visual clarity of the list in the "jump to preprocessed files" dialogue window. |
| 44 | +- Improved keyboard navigation of the "jump to preprocessed files" dialogue window. |
| 45 | +- Having ! before a condition identifer is no longer highlighted as an error, e.g. `!FABRIC` |
| 46 | + |
| 47 | +Thank you to [@Traben](https://github.com/Traben-0) for contributing 100% of this update! |
| 48 | + |
7 | 49 | ## [4.0.0] - 2025-07-31 |
8 | 50 |
|
9 | 51 | ### Added |
|
0 commit comments