Skip to content

0.2.4

Choose a tag to compare

@github-actions github-actions released this 13 Jul 11:40

0.2.4

This is a smaller QoL update focused on (sur)pressing bugs and improving the editor experience. The GitHub issues will be overhauled to better list all issues and FRs.

Please be aware that in the current iteration of the plugin, removing a comment will remove it completely (i.e. it is not archived). You can always undo a 'accept/remove suggestion(s)' or 'remove comment' action.

Features

  • Added the ability to remove comments (partially addresses #17, archive option still needs to be implemented, thanks @kerim)
  • Implemented more actions in the context menu for the annotations gutter and global annotations view
    • Included annotation types (gutter only)
    • Fold gutter (gutter only)
    • Edit comment (gutter and view)
    • Remove (all) comment (gutter and view)
    • Close comment thread (gutter and view)
    • Accept/Reject changes (gutter and view)
    • Add reply (gutter and view)
  • The current fold state and width of the annotation gutter now persists on the editor across reloads/file changes
  • Reveal hidden CriticMarkup syntax when selecting an annotation in the editor, depending on the current edit mode
  • Added the option to completely hide comments in the editor (Editor > Comments Rendering > Comment rendering mode | Hidden)

Style

  • Improve styling on diff gutter when next to other gutters
  • Improved styling of threads in the global annotations view
  • Improved rendering of Substitutions in the annotation gutter

Fixes

  • Reading mode not having proper CriticMarkup rendering
  • Filters set in the global annotations view not persisting across reloads
  • Prevent a potential plugin load error due to missing fields on editor
  • Solve conflict with the vanilla Line Numbers extension (thanks @nanjingman for reporting this issue in #24!)
  • Focusing on an annotation in gutter will now again focus the corresponding range in the editor
  • Prevent an error while editing when a selection was not explicitly specified
  • Properly clean up elements added to the editor by this plugin on unload
  • Prevent a rare error when adding a comment to a note
  • Remove warning of aria-hidden when focusing on an annotation in the gutter

Refactors

  • Removed debug commands from production builds
  • Removed all annotation gutter-related config facets
  • Removed many instances of direct CodeMirror extension access
  • Group all monkey-patches into the patch.ts file
  • Completely overhauled the Global Annotations View code