Questions tagged [language-server-protocol]

Questions about the Language Server Protocol (LSP), a Microsoft open source protocol used between an editor or IDE and a language server that provides language features.

The Language Server Protocol (LSP) is an open source protocol used between an editor or IDE and a language server that provides language features such as code completion and syntax highlighting.

The LSP was originally developed for Microsoft's Visual Studio Code.

357 questions
4
votes
1 answer

How to WebPack a TypeScript Language Server Extensions LSP

I have a language server extension (vs-code) based on the lsp-sample code. https://github.com/microsoft/vscode-extension-samples/tree/master/lsp-sample I am trying to WebPack the extension prior to publishing. The problem is that I am unable to…
4
votes
2 answers

How to force the update of the code lenses in vscode

I am working on "run code" actions using code lenses in Metals (Scala Language Server). In our use case, we can provide those code lenses only once the compilation finishes. If the user is not modifying the source file during or after the…
4
votes
1 answer

Visual Studio Code Language Server - how to validate all files in workspace

I followed this tutorial from the visual studio code on how to create a language server to a validate an extension file. I proceeded to make a copy of the lsp-sample project and got it running. In my analysis of this project, I noticed that only…
4
votes
1 answer

Use "Go to symbol" and "Go to symbol in workspace" in VS Code for Ruby

Is it possible to use the "Go to symbol" and "Go to symbol in workspace" features in VS Code for Ruby files? These work great, out of the box, for JavaScript, but they seem to be non-existent for Ruby. For instance, it seems like the most popular…
Gary
  • 3,891
  • 8
  • 38
  • 60
4
votes
2 answers

Is it possible to use VSCode language-server-protocol engine along with the Vim or NeoVim?

I have tried different code-analysis engines and tools (like tern_for_vim) for Vim, but they do not provide such a great autocompletion, goto and rename functionality as in VSCode. As I know VSCode uses language-server-protocol technology to provide…
4
votes
1 answer

How do I make remote debug JVM not output text on stdout, stderr?

I'm currently writing a language server (atop of lsp4j), and need to debug my language server. Language server protocol servers uses stdin and stdout to communicate with the client. Now I want to debug a server that is launched from the client…
Chris
  • 4,450
  • 3
  • 38
  • 49
4
votes
1 answer

Does Visual Studio 2017 use the Language Server Protocol?

Language Server Protocol was created for VS-Code (not the Visual Studio IDE). It is a rather sensible idea about providing language services like various linting and code-completion (intillisense). It is by no means the first-time that idea has been…
4
votes
1 answer

Debugging a crashing language server

I apologize if I'm a bit low on details here, but the main issue is actually trying to find the problem with my code. I'm updating an older extension of my own that was based on the Language Server example…
3
votes
1 answer

Why there is no language server protocol for the `emacs-lisp` language?

Why there is no language server protocol for the emacs-lisp language? For example, the lsp-mode package for Emacs contains support for many languages with their respecting language servers. But no emacs-lisp. Why is that so? The same goes for the…
Refael Sheinker
  • 713
  • 7
  • 20
3
votes
0 answers

Monaco Editor - add Python language server

I'm trying to add support for intellisense for Python in Monaco Editor. All the examples I found involve using a Python Language Server running on the server and communicating with the frontend using a websocket; however, the TS language server that…
3
votes
1 answer

How to enable yaml language server in Kate editor

There is a yaml language server I would like to use it in the Kate Editor. The Kate documentation for the language server plugin suggest configuration examples like: { "servers": { ... "python": { "command":…
sumid
  • 1,871
  • 2
  • 25
  • 37
3
votes
1 answer

How to run Rust Analyzer directly from terminal?

I'm trying to integrate Rust Analyzer with a browser based editor. My first step is to run Rust Analyzer directly from a terminal and send requests via stdio. $ rust-analyzer >…
Agus Putra Dana
  • 669
  • 1
  • 6
  • 14
3
votes
0 answers

Sorbet LSP sublime text read typed: false

So I'm using LSP and Sorbet with Sublime Text 3. I have an issue in my RSpec files that have typed: false in them. The engine spits out tons of type errors: 5:3 error Method `it` does not exist on `T.class_of()` ​unknown-source: 6:5 …
SandeliusME
  • 802
  • 1
  • 10
  • 19
3
votes
1 answer

Language server semantic tokens

In the language server protocol specification, the semantic tokens response has a data field that is an array of integers for the tokens. export interface SemanticTokens { /** * The actual tokens. */ data: uinteger[]; } In all the…
Rich
  • 423
  • 4
  • 11
3
votes
1 answer

Monaco Editor: remove duplicates in completion provider for multiple editor instances

I currently have a language server that provides SQL autocompletion for keywords, functions, tables, columns etc... The language server is running on the back-end and it's providing autocompletion based on the client's requests. On the front-end I…
Jasmine
  • 117
  • 10