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
41
votes
6 answers

How to write to log from vscode extension?

I am attempting to develop an extension with a language-server for VSCode. I am trying to figure out how to write text to log from language-server part of the extension. console.log produces nothing
25
votes
2 answers

What is the new C#_LSP entry under the Text Editor options for?

Visual Studio 2019 has a new entry under the Text Editor options named C#_LSP. I guess it has something to do with the Language Server Protocol, but I couldn't find what the entry is used for exactly. Is there certain standard tooling that uses it?…
user247702
  • 23,641
  • 15
  • 110
  • 157
21
votes
2 answers

How to setup VS Code for C++ with clangd support?

Disclaimer: I am totally new to VS Code, so, please, be gentle with me. :-) I am trying to set up VS Code for C++. However, I explicitly want to set it up so that it uses the Language Server Protocol to communicate with clangd when handling…
21
votes
2 answers

Connect external language server to VSCode extension

I want to implement a VSCode extension that uses the Language Server Protocol, but I want the server component to be on an actual server (in the cloud), and not a part of the VSCode extension. Can I set the client extension to connect to a server…
Ido
  • 951
  • 1
  • 13
  • 27
14
votes
3 answers

VSCode + Clangd: type annotations become obtrusive - how to disable?

I'm using VSCode 1.65.0, the clangd extension, and clangd from latest LLVM (14.0). It seems to have introduced a feature where it displays type-hints whenever I use auto. Here is an example: This is becoming very obtrusive to me. How can this be…
13
votes
1 answer

Is there a way to setup a shortcut to "re-run" the Delphi LSP instances?

As long as the Delphi LSP implementation has its flaws, it would come in handy if we could restart the LSP processes with an easy to reach shortcut. How can such a shortcut be added?
Uwe Raabe
  • 45,288
  • 3
  • 82
  • 130
13
votes
4 answers

How to enable logs for Language server in Visual Studio Code

In the Language Server Extension Guide it says: 'If you are using vscode-languageclient to implement the client, you can specify a setting [langId].trace.server that instructs the Client to log communications between Language Client / Server to a…
11
votes
0 answers

How do I see the logs of a VSCode Language Server process?

Situation I'm experimenting with writing a VSCode Language Server Protocol (LSP) Extension. I've got it running as follows: An lsp-server process which is launched by running haskell-lsp-example-exe from terminal An lsp-client written in Typescript…
11
votes
2 answers

How to implement "Go To Definition" extension in VSCode

Which method in vscode-languageserver::IConnection has to be implemented to provide functionality "Go To Definition" over multiple files? I was studying Language Server Node Example and vscode "API documentation", but I didn't find any info.
10
votes
1 answer

Configuring Vim/Neovim ALE plugin to support :ALEGoToDefinition in JavaScript files

I installed the ALE plugin for Vim using vim-plug: Plug 'dense-analysis/ale' The plugin seems to have been installed correctly. I can use ALE to automatically format files with Prettier, for example. But I can't seem to get anything that uses the…
John Karahalis
  • 3,369
  • 2
  • 15
  • 20
10
votes
1 answer

Vscode Language Client extension - how to send a message from the server to the client?

I have been developing a vscode extension that consits of client and server using the language server protocol. At the moment, I am trying to do the following thing: when the server detects a certain condition, he requests the client to load a…
9
votes
4 answers

Neovim lsp auto-fix / fix-current?

I was looking for a solution similar to CoC's coc-fix-current but using native lsp for Neovim 0.5 but I did not find such thing in the documentation, is there any way to achieve this through other method?
Oscar Lastra
  • 93
  • 1
  • 5
9
votes
4 answers

How to use the Language Server Protocol for Python in Neovim

I've spend quite some time figuring out how to use the Language Server Protocol (LSP) for Python (3) in neovim. Mainly I'm looking for autocompletion with Python 3 and it's modules like PySide2. Sadly I just can't get my config file…
stack_anonymous
  • 129
  • 1
  • 1
  • 5
9
votes
1 answer

Language server with semantic highlight in VSCode

I'd like to write a language server to VSCode with semantic highlight support. The language I'm using has very complex rules, so I'd like not to rely on a tokenizer to distinguish between identifiers and keywords. I already have a language service…
8
votes
1 answer

Working with single file rust using rust-analyzer

I'm trying to make rust-analyzer (with Neovim) work with a single Rust file. I know that using Cargo should be the default, but I'm trying to solve problems like the ones from project euler, where making a project for each problem seems like an…
Jay Lee
  • 1,684
  • 1
  • 15
  • 27
1
2 3
23 24