General Recommendations: Should I Use Tree-sitter as the AST for the LSP I am developing?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Visual Studio Code

    Visual Studio Code

  • I guess this reference might be useful for you: once vscode tried to adopt treesitter for their markdown language service https://github.com/microsoft/vscode/pull/152829, and it was finally closed because of the bad performance result.

  • markdown-oxide

    Editor Agnostic PKM: you bring the text editor and we bring the PKM - inspired by and compatible with Obsidian

  • I have been setting up tree-sitter with rust bindings, and, with a few modifications, the performance is pretty good (for and LSP). The code is here code (the testing stats are linked in the readme)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • rayon

    Rayon: A data parallelism library for Rust

  • Sequentially, generating tree-sitter AST for each file and querying for the links of each file takes around 2.3 seconds. However, I randomly remembered this crate rayon, and I decided to test it. It ended up improving the performance (just by changing 2 lines of code) to 200-300ms by parallelizing the iterators and tree-sitter queries. MAJOR.

  • vscode-langservers-extracted

    vscode-langservers bin collection.

  • Here is https://github.com/hrsh7th/vscode-langservers-extracted wrapping the service into a standalone server which you could try (the readme said the markdown language server is not available but it is outdated).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Using VSCode for Web Development: HTML, CSS, and JavaScript

    1 project | dev.to | 1 Jun 2024
  • Please Upvote:) Project Tabs on Windows for VSCode

    1 project | news.ycombinator.com | 29 May 2024
  • Day 1: Getting Started with JavaScript

    1 project | dev.to | 28 May 2024
  • Getting Started with VSCode: A Beginner's Guide

    1 project | dev.to | 27 May 2024
  • Cmd+S doesn't work on VSCode if you installed the ChatGPT Mac app

    1 project | news.ycombinator.com | 21 May 2024