tower-lsp VS vscode-extension-samples

Compare tower-lsp vs vscode-extension-samples and see what are their differences.

tower-lsp

Language Server Protocol implementation written in Rust (by ebkalderon)

vscode-extension-samples

Sample code illustrating the VS Code extension API. (by microsoft)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
tower-lsp vscode-extension-samples
7 35
895 8,108
- 2.5%
5.3 8.6
about 1 month ago 8 days ago
Rust TypeScript
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

tower-lsp

Posts with mentions or reviews of tower-lsp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-28.
  • What's everyone working on this week (22/2023)?
    14 projects | /r/rust | 28 May 2023
    I am using nom / nom_locate to build the parser side because I've done a handful of other projects with it, and I plan to use tower-lsp to hook up the language server side.
  • State of the Ruby language server (LSP) ecosystem / looking for suggestions
    11 projects | /r/ruby | 2 Oct 2022
    I realize this might not be for everyone, but I'm writing it in Rust using Lib-ruby-parser and tower-lsp: two existing libraries that handle a bunch of the heavy lifting for me. I'm more productive in Rust than with Ruby at this point, despite doing Ruby full time for 15 years, plus I really really don't want to have to deal with a slow LSP--that was the whome impetus for this project. I started in the spring, made a bunch of headway, then backtracked to redo the internals to make it easier to handle monkeypatching, overriding/redefining of methods, etc. across your project.
  • Language Server Protocol
    3 projects | /r/Compilers | 21 Jul 2022
    https://github.com/ebkalderon/tower-lsp is a generalized LSP implementation in a lower-level language (Rust) so you may get a better idea by reading through that repo. It seems that the server opens a TCP socket that the client later connects to, but I'm not really sure.
  • tower_lsp client/server Document Sync
    1 project | /r/rust | 5 Jul 2022
    I was taking a look at the tower_lsp example here (https://github.com/ebkalderon/tower-lsp/blob/master/examples/stdio.rs) and had a question about how the document sync works between the client and the server.
  • how to make a lsp in rust ?
    8 projects | /r/rust | 20 May 2022
    Mine all use [tower-lsp](https://github.com/ebkalderon/tower-lsp/) for the LSP protocol stuff, and then either [Tree-sitter](https://github.com/tree-sitter/tree-sitter) or [Nom](https://github.com/Geal/nom). If I do another I'll probably try [Chumsky](https://github.com/zesterer/chumsky) which combines some of the advantages of both.
  • tower-lsp 0.16.0 — Lightweight framework for building LSP servers
    2 projects | /r/rust | 11 Mar 2022

vscode-extension-samples

Posts with mentions or reviews of vscode-extension-samples. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-18.
  • Initializing a Project with Any Git Repository - Code Recycle
    3 projects | dev.to | 18 Mar 2024
    changeList: - type: copy from: url: https://github.com/microsoft/vscode-extension-samples.git match: - /l10n-sample output: /l10n-sample to: ./l10n source: git
  • vscode extension debugging with .test.js files
    1 project | /r/vscode | 1 Oct 2023
    Trying to follow the your first extension. With javascript, I've also tried this on vscode-minimal-example.
  • Creating an OpenAI powered Writing Assistant for VS Code
    3 projects | dev.to | 20 Jun 2023
    For my extension I wanted an experience similar to the Hashnode AI Editor, so adding commands to the VS Code command palette was not what I was after. What helped me here was the sample extensions directory on GitHub. Their code-actions sample was exactly what I had in mind (and it targets only the markdown files).
  • VS Code extension debug and TS sources
    1 project | /r/vscode | 13 Jun 2023
    Unfortunately I've never used the generator when writing extensions :( However, the extension samples do have several examples (like this one) that have a tsconfig.json and a launch.json that should achieve what you want.
  • Help to create a language server
    1 project | /r/ProgrammingLanguages | 28 May 2023
    I remember it being difficult to get started. I remember starting by having the autocomplete work with 3 specific words. I think I used this to learn how the lsp works. There are more complicated examples in the root directory https://github.com/microsoft/vscode-extension-samples/tree/main/lsp-sample
  • AI Assisted Blog with Nuxt, GitHub Codespaces & Actions
    4 projects | dev.to | 23 May 2023
    VSCode CodeActions Sample
  • VSCode-WASM: Implement a first version of a WebShell
    8 projects | news.ycombinator.com | 30 Apr 2023
    Not true of most compilers.

    Can you design compilers that can do this? Sure, i was at IBM when we did visualage, which could do this in other ways, though not optimally.

    Is it common? Not a chance.

    Your claim that increasingly more modern languages have semantic highlighting in real time is simply false - most cannot real time semantic highlight even a 100k file on every keystroke. There are a very small number which can, and it's mostly by luck - they fall down on larger files because they have no incrementality. Meanwhile, this is trivial with tree-sitter for all languages because of it's optimality. If you want to see it in action - turn on semantic highlighting for vscode and type fast - most of the time you will lose syntax highlighting because things can't keep up. see, e.g., https://github.com/microsoft/vscode-extension-samples/issues...

    Again, yes, you could make a compiler for every language which supports a mode that does what tree-sitter does. and people could carefully implement parsers/lexers in each of their favorite compilers and languages that support optimal incremental parsing in them. and then pay the cost of integrating 50 language specific ways of transforming these to work with the editor, basically reinventing what tree-sitter already did right. (As per above, the current semantic token and highlighting support does not resolve this).

    You seem to really otherwise be complaining that you believe it does always generate correct parsers. Like I said, that seems totally orthogonal to anything about the speed issue, and if that's your real concern, have at it.

  • I made a crate to organize my unit tests with it's own VSCode extension.
    1 project | /r/rust | 28 Apr 2023
    After Googling everywhere for how those little gray bastard are called, here's their name : codeLens and are API of VSCode extensions. An excellent example of how to use them is given here. My first codeLens was to open the file. But then I wanted more! Now my extension can create unit tests file when missing, rename them in the filesystem and code, delete them, generate test template, etc...
  • I made a VSCode extension: "markdown-table-rainbow"
    2 projects | dev.to | 21 Apr 2023
    Official sample extension (Decorator)
  • Is there any way to (relatively easily) create syntax highlighting for my own programming language from ANTLR4 grammar?
    2 projects | /r/ProgrammingLanguages | 16 Apr 2023

What are some alternatives?

When comparing tower-lsp and vscode-extension-samples you can also consider the following projects:

tower - async fn(Request) -> Result<Response, Error>

hy-language-server - Hy Language Server built using Jedhy. works only under Hy1.0a1. For the recent version of Hy, please use https://github.com/sakuraiyuta/hyuga instead.

kakoune-lsp - Kakoune Language Server Protocol Client

Bracket-Pair-Colorizer-2 - Bracket Colorizer Extension for VSCode

rust-analyzer - A Rust compiler front-end for IDEs

vscode-snippets-ranger - View and edit all of your snippets in one purty place! Yee-haw!!

tree-sitter - An incremental parsing system for programming tools

rainbow-delimiters - Emacs rainbow delimiters mode

react-relay - Relay is a JavaScript framework for building data-driven React applications.

prism.el - Disperse Lisp forms (and other languages) into a spectrum of colors by depth

chumsky - Write expressive, high-performance parsers with ease.

vscode-vsce - VS Code Extension Manager