Skip to content

Squirrel: local code intel for Java using tree-sitter

Warren Gifford requested to merge squirrel into main

Created by: chrismwendt

CleanShot 2022-03-03 at 02 29 09@2x

Squirrel is a technique from CodeWing for fast and precise code intelligence using tree-sitter. See the RFC for Squirrel for more info.

TODO

  • Implement TJ's quick query idea to get broad coverage right away (could merge that alone, actually)
  • Wire it up to the GraphQL API
  • Update the code intel extensions to use Squirrel if available https://github.com/sourcegraph/code-intel-extensions/pull/771
  • Remove all traces of cross-file functionality and languages besides Java
  • Tune the tree-sitter queries for known locals (there are still some false positives/negatives)

Test plan

Go tests.

Merge request reports

Loading