Skip to content

Code Focus 1.0.1

Latest

Choose a tag to compare

@vindevoy vindevoy released this 15 May 09:59

Releases Code Focus 1.0.1 — intermediate bugfix release on top of 1.0.0.

pluginVersion = 1.0.1. No new features, no behaviour changes outside the four fixes below, no compatibility change. PyCharm Community / Professional, builds 251261.* (PyCharm 2025.1 → 2026.1) — same as 1.0.0.

What's fixed

Five issues went into this release. Four behaviour fixes plus the version/CHANGELOG bump.

#52 — Blank lines absorbed around collapsed folds

Fold regions created by Show Comments, Show Logging Lines, and Show Imports now absorb the blank line(s) immediately above and below the folded range. The collapsed > placeholder no longer leaves orphaned blank lines around it. Mid-line ranges (code # inline) still pin to the original start. Implementation extracts the previously-duplicated expandRange helpers into a shared FoldExpansion.expand(document, range, previousFoldEnd) so adjacent folds processed in document order don't race for the same blank line.

#57 — Toggle bar font matches editor tab font

Seven JBFont.small()JBFont.label() swaps across the five toggles plus Re-Apply and Format. JBFont.small() is ~2 pt smaller than the default UI label font that the editor tabs use, which produced the visible mismatch in the toggle bar. Fix was already at the right size (no explicit font set, inherited the default), so this brings the other seven into line.

#59 — Toggle pill and knob rounded to match buttons

Five toggles bumped their Pill.paintComponent arc from JBUI.scale(2) to JBUI.scale(6) — the same arc the buttons (Re-Apply, Format, Fix) already use. The knob shares the same arc variable so it picks up the new rounding too. Eliminates the "amateur" near-square pill look.

#60 — Stripped diagnostic LOG.warn flood

19 leftover LOG.warn(...) calls in ShowLoggingLinesToggle (plus the four counter vars that fed the summary log, the Logger companion field, and the corresponding import) removed. They had been added during #47's debugging and never reverted; they fired at WARN level on every editor open / toggle flip / settings-driven re-fold and filled idea.log with [CodeFocus] applyToEditor: ... noise. Net diff: 84 lines removed, 10 added. No behaviour change — every conditional return and fold-creation path still does what it did before.

#61 — Version + CHANGELOG bump

pluginVersion 1.0.0 → 1.0.1 in gradle.properties. CHANGELOG restructured: added [1.0.1] listing the four fixes above, retroactive [1.0.0] pointing at the v1.0.0 GitLab release page, empty [Unreleased] placeholder for post-1.0.1 work.

Compatibility

Unchanged from 1.0.0:

  • PyCharm Community or Professional, builds 251261.*.
  • pluginSinceBuild = 251, pluginUntilBuild = 261.*.
  • com.intellij.modules.platform, com.intellij.modules.python.
  • No new dependencies.

Verification

  • ./gradlew ktlintCheck test is green on develop.
  • ./gradlew clean buildPlugin produces build/distributions/code-focus-1.0.1.zip (~100 KB).
  • Visual confirmation of #52 / #57 / #59 done in real PyCharm during review of the contributing MRs (!53, !54, !55).
  • All seven existing toggle integration suites pass with the new behaviour, including the comprehensive test.py real-fixture tests and the two new issue-52 regression tests.