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

Tree-sitter rolling fixes: 1.115 edition #941

Merged

Commits on Feb 16, 2024

  1. Configuration menu
    Copy the full SHA
    0df4e75 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2024

  1. [language-typescript] Highlighting fixes…

    * Add scopes for unary arithmetic operators (`+`, `-`)
    * Ensure that function parameters set `capture.final`
    savetheclocktower committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    0cea266 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. Configuration menu
    Copy the full SHA
    2827e6a View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. Be more aggressive in determining suggested indent positions…

    …at ends of transactions — instead of falling back to a transaction-wide auto-indent quite so easily.
    savetheclocktower committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    afe6e1e View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2024

  1. Prefer synchronous indentation by default in modern Tree-sitter…

    …but only while we can afford to spend time on re-parsing.
    
    Synchronous indentation hinting is clearly the best choice, but it can theoretically be very costly. So we'll set a time budget per transaction — currently 10ms, but could be adjusted up or down. We'll start out doing synchronous indentation, but flip to async indentation if we run out of time in a given transaction. At the end of a transaction, the time budget resets.
    
    This allows us to balance indentation accuracy with editor responsiveness, and would even allow us to expose this tradeoff as a setting in the future. The current threshold, 10ms, would probably result in one dropped frame if exceeded, but not two.
    
    Right now, any one parse can exceed the budget — because we don't set a timeout on the parse the way we do with an async parse. But this could be changed in the future. The main goal here is to prevent a catastrophic scenario where a complex transaction locks up the editor.
    savetheclocktower committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    8b0f62b View commit details
    Browse the repository at this point in the history
  2. Small fixes

    savetheclocktower committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    89d410b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ab6f081 View commit details
    Browse the repository at this point in the history
  4. Fix issue where we fail to consider legacy Tree-sitter grammars…

    …if the user has opted into them via _only_ a scope-specific setting.
    savetheclocktower committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    fd37c4d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6c54813 View commit details
    Browse the repository at this point in the history
  6. [grammar-selector] Overhaul grammar display:

    * When set to `true`, `hideDuplicateTextMateGrammars` will hide all grammars except whichever one the user has indicated a preference for — via `useTreeSitterParsers` and `useLegacyTreeSitter` settings, whether global or scope-specific.
    
    * When set to `false`, `hideDuplicateTextMateGrammars` will show all grammars, even Legacy Tree-sitter.
    savetheclocktower committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    b9258b5 View commit details
    Browse the repository at this point in the history
  7. Update workspace spec…

    …to reflect new behavior of `GrammarRegistry#getGrammars`.
    savetheclocktower committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    df6349a View commit details
    Browse the repository at this point in the history
  8. [grammar-selector] Simplify fallback options…

    …when the user's preferred type of grammar isn't available for a particular language.
    savetheclocktower committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    e8d4e0b View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. [grammar-selector] Show a badge for all kinds of grammars…

    …when `hideDuplicateTextMateGrammars` is `false`.
    savetheclocktower committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    579cc26 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Configuration menu
    Copy the full SHA
    83a0e12 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    95ca84a View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2024

  1. Configuration menu
    Copy the full SHA
    78deb79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e030105 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2024

  1. [symbols-view] Ensure query field contents are initially selected…

    …when `prefillSelectedText` is `true` and the editor has selected text when a `SelectListView` is opened.
    savetheclocktower committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    86cb072 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    175174e View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. [language-c] C/C++ highlighting fixes…

    * GOTO labels
    * Members like `foo.bar`
    * Marking of constants in C++
    savetheclocktower committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    a294c88 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Address feedback

    savetheclocktower committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    6fe8e53 View commit details
    Browse the repository at this point in the history