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.121 edition #1085

Merged
merged 28 commits into from
Sep 17, 2024
Merged

Commits on Aug 17, 2024

  1. Move indentation-related tasks to their own class…

    …and out of `WASMTreeSitterLanguageMode` for reasons of encapsulation.
    savetheclocktower committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    4a701e2 View commit details
    Browse the repository at this point in the history
  2. [language-css] Bump tree-sitter-css to 0.21.1

    Fixes issue with parsing of selectors in `:has`, `:is`, and other pseudoclasses.
    savetheclocktower committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    338f688 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    74ef36a View commit details
    Browse the repository at this point in the history
  4. Tweaks

    savetheclocktower committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    6eee25f View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2024

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

Commits on Aug 24, 2024

  1. Add comments and make further indentation tweaks…

    …including more consistent firing of the `did-suggest-indent` event.
    savetheclocktower committed Aug 24, 2024
    Configuration menu
    Copy the full SHA
    3834c3f View commit details
    Browse the repository at this point in the history
  2. Add a spec for @match.next

    …and fix a bug with the indentation reparse budget.
    savetheclocktower committed Aug 24, 2024
    Configuration menu
    Copy the full SHA
    50dbbd1 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. [language-php] Handle case-insensitive constants like TRUE/FALSE

    …as booleans. Handle `NULL` in a similar way.
    savetheclocktower committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    738536f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    02f1563 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9db65c0 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

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

Commits on Sep 7, 2024

  1. Upgrade web-tree-sitter to 0.23.0…

    …and update our API usages.
    
    Tree-sitter harmonized the API differences between `web-tree-sitter` and
    `node-tree-sitter` in version 0.22.0. This is the first time we’ve had to deal
    with that. Luckily, the changes were mostly palatable.
    
    The biggest API difference is in `Query#captures`; two positional arguments for
    defining the extent of the query have been moved to keyword arguments. We’ve
    updated our internal usages, but any community packages that relied on the old
    function signature would break if we didn’t do anything about it. So we’ve
    wrapped the `Query#captures` method in one of our own; it detects usages that
    expect the old signature and rearranges their arguments, issuing a deprecation
    warning in the process. Hopefully this generates enough noise that any such
    packages understand what’s going on and can update.
    
    Other API changes are more obscure — which is good, because we can’t wrap them
    the way we wrapped `Query#captures`. They involve conversion of functions to
    getters (`node.hasErrors` instead of `node.hasErrors()`), and there’s no good
    way to make both usages work… short of wrapping nodes in `Proxy` objects, and
    that’s not on the table.
    
    Since lots has changed in `tree-sitter` since we last upgraded
    `web-tree-sitter`, I updated our documentation about building a custom version
    of `web-tree-sitter`.
    savetheclocktower committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    87a9322 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. Configuration menu
    Copy the full SHA
    f64b44f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d433753 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d696a7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    72b1a6e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c674d8f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    265d7e0 View commit details
    Browse the repository at this point in the history
  7. coverShallowerScopes shouldn't affect “sibling” injections…

    …only injections with a shallower depth.
    savetheclocktower committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    fbdf18a View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. [language-(java|type)script]: Update Tree-sitter parsers to 0.23.0…

    …and modify query files in response to all non–backwards-compatible changes.
    savetheclocktower committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    03ba902 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. [symbol-provider-tree-sitter] Fix specs…

    …after `tree-sitter-javascript` bump.
    savetheclocktower committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    44ad31f View commit details
    Browse the repository at this point in the history
  2. [language-(java|type)script] Update injections…

    …to conform to new `tree-sitter-(java|type)script` node structure for template strings.
    savetheclocktower committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    cdad4ff View commit details
    Browse the repository at this point in the history
  3. [language-gfm] Migrate to tree-sitter-markdown

    …at new repo location.
    savetheclocktower committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    44d7734 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. [language-html] Update to latest Tree-sitter parsers…

    …for `tree-sitter-html` and `tree-sitter-embedded-template`.
    
    Fixed an inscrutable out-of-memory error I was getting in an EJS file.
    savetheclocktower committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    0f0050f View commit details
    Browse the repository at this point in the history
  2. Prevent race condition during startup…

    …related to updating open documents’ syntax highlighting as grammars are processed.
    savetheclocktower committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    99521c7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    986c697 View commit details
    Browse the repository at this point in the history
  4. Fix failing tests

    savetheclocktower committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    74479ba View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Address feedback

    savetheclocktower committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    c1d3a8c View commit details
    Browse the repository at this point in the history