Skip to content

0.12.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Rosemoe Rosemoe released this 21 Jun 11:29
· 1179 commits to main since this release
49eda90

Bug fix

  • Fix parent view of Magnifier
  • Fix missing invalidate() call in setFontFeatureSettings()
  • Remove unnecessary string resource items
  • Adapt Mircosoft Swift Key
  • Fix potential invalid state of SHIFT and ALT in EditorKeyEvent
  • Fix invalid error indicator line display (invalid phi for the wavy lines)
  • Fix 1 char invisible at line ending sometimes when wordwrap is enabled

New & Improvements

  • Custom scale factor in Magnifier
  • Add time limit for merging undo actions (can be modified by UndoManager#setMergeTimeLimit(long))
  • Better magnifier image quality (@massivemadness )
  • Better magnifer position when sticky cursor is enabled (@massivemadness )
  • KeyBindingEvent and some new built-in keybindings (@itsaky )
  • Improved cursor animation (ScaleCursorAnimation)
  • Diagnostics APIs
  • More diagnostic indicator styles (DiagnosticIndicatorStyle)
  • Approriate default size for diagnostic indicator lines

Breaking changes

  • Span#problemFlags, MappedSpans#markProblemRegion and MappedSpans.Builder#markProblemRegion are removed. Instead, you are expected to replace them with Diagnostic APIs
  • In order to catch up with the updates from tm4e in time, some packages in language-textmate are moved to its original package in tm4e project.

Migration Guide

->Mainly, your work will be miragting your problem marking logic to the new diagnostic API.
Now, the diagnostics are sent by calling StyleReceiver#setDiagnostics(DiagnosticContainer). You are expected to add your DiagnosticRegion objects to the DiagnosticContainer. The container will maintain the positions of those added regions. And also, DiagnosticRegion is described by the start index and end index of the diagnostic item, but not by (line, column) pairs. So you need to compute the index by shadowed Content.
Note that it is not recommended to add new regions to a container that is already being used by editor though the class is thread-safe.
See package io.github.rosemoe.sora.lang.diagnostic.

->package io.github.rosemoe.langs.textmate.core and io.github.rosemoe.langs.textmate.languageconfiguration are moved to org.eclipse.tm4e.core and org.eclipse.tm4e.languageconfiguration

More information

Now editor will show diagnostics with zero length. The editor will show the indicator with a width of the character 'a'.

Note

Maven artifact language-textmate 0.12.0 is broken. Use 0.12.0-1 instead.