Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a snippet system #9801

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add a snippet system #9801

wants to merge 6 commits into from

Commits on Jul 26, 2024

  1. Configuration menu
    Copy the full SHA
    97a35d2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2cf38ca View commit details
    Browse the repository at this point in the history
  3. refactor DocumentDidChange events

    in the past DocumentDidChange and SelectionDidChange events were implemented in
    a simplistic manner to get a simple prototype out. However, if you want to use
    these events in more complex scenarios with interdependencies between the two
    handlers the system fell short.
    
    The `SelectionDidChange` event was dispatched before the DocumentDidChange (and
    not at all if the selection wasn't manually set) so any handlers that wants to
    track selection was not able to map their ranges yet.
    
    The reason for this was actually the way that apply_impl was structured. The
    function was slightly refactored to address these problems and enable moving
    other range mappings to event handlers.
    pascalkuthe committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    80d520f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    68201ae View commit details
    Browse the repository at this point in the history
  5. add fallback onNextKey

    adds a variant of on_next_key callbacks that are only called when no other
    mapping matches a key
    pascalkuthe committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    2dba70d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a6511ff View commit details
    Browse the repository at this point in the history