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
2
votes
2 answers

Error importing 'vscode-languageserver' in a React app

I am trying to create a playground using monaco-editor and vscode-languageserver to show the features of my language server. However when I try to import 'vscode-languageserver' from a page like the following example //# src/pages/test.js const {…
Rami ZK
  • 510
  • 3
  • 13
2
votes
2 answers

How to enable diagnostics tracing for LSP in Visual Studio

I'm trying to enable diagnostics tracing for LSP in Visual Studio like written in msdn. According to the instructions, I did the following steps: I've added the ConfigurationSections to the ILanguageClient public IEnumerable
itaiy
  • 1,152
  • 1
  • 13
  • 22
2
votes
2 answers

C# LSP autocompletion client for neovim / vim8

I've tried several ways to make it work but there seems to be no easy way. Yes, there are a ton of plugins, configurations. But they do not work right as per Oct 2019. OmniSharp-Vim client needs configuration, it covers only C# and it lists plugins…
Artyom
  • 3,507
  • 2
  • 34
  • 67
2
votes
0 answers

vscode/LSP: debugging vscode extension using breakpoints

i'm trying to implement vscode extension which is language client (written in typescript) that communicates with LSP server which is written in OCaml. for that, i need to debug my extension step by step using breakpoints i read the documentation but…
2
votes
0 answers

Is it possible to listen/intercept LSP messages to/from typescript language server in VSCode?

Our extension refers (has links) to typescript symbols. That's why, I should know whenever a symbol is refactored/renamed, to reflect the name changes in my extension. Is it possible? If yes, how? AFAIK, I could listen to textDocument/rename request…
2
votes
1 answer

Is it somehow possible to create VS Code extension using Xtext Fat Jar language server?

I'm trying to create VS Code extension out of the FatJar language server created by Xtext. I saw the example project also (https://github.com/itemis/xtext-languageserver-example) but there is just an example using reference to parent xtext project…
2
votes
1 answer

Cannot Initialize Language Server Protocol

I'm toying around LSP and I cannot get past first stage. Am using Python as client language since it is simple to work with. All I do is: Connect to LSP - This works fine Send Initialize JSON RPC - Client report success Get response - Empty…
Stefano Mtangoo
  • 6,017
  • 6
  • 47
  • 93
2
votes
1 answer

How to completion with function paren or arguments with Vim-lsp

With vim-lsp in java code, after type System.out.printf the following candidates appears: printf(Locale l, String format, Object... args) printf(String format, Object... args) When I choose first of the candidates, System.out.printf but I want to…
2
votes
1 answer

Is vscode-python extension for VSCode is a Language Service or just an extension only?

I want to write an extension for VSCode that reuse refactor/rename function of vscode-python extension. So that, when the user executes my command, my extension will do rename on a variable of .py file. I don't know if vscode-python is just an…
2
votes
1 answer

What is the sense of the Trace setting in the Language Server Protocol?

I am trying to figure out what the trace setting in the Language Server Protocol does. So according to the specification: The initial trace setting. If omitted trace is disabled ('off'). But that doesn't tell me much. It is embedded within the…
Socrates
  • 8,724
  • 25
  • 66
  • 113
1
vote
0 answers

How do I get Metals LSP working in neovim?

Please help me with Metals LSP setup. I tried doing that with no luck, so I hope somebody here can help me please. I've been using mason and its lsp-config but now with metals i have trouble to configure it correctly since its not in mason currently…
1
vote
1 answer

Python client library for Language Server Protocol (LSP)

I need to interact with a language server (Eclipse JDT LS) implementing the Language Server Protocol (LSP), and I need it for a Python project that will be used to analyze different programming languages, starting from Java. I've been looking around…
Federico Bonelli
  • 761
  • 1
  • 7
  • 23
1
vote
1 answer

How to get lsp to work in Neovim for c++(clangd) and python?

I'm using LazyVim as a bootstrap config. On top of that I have very few changes. However, I'm not able to get lsp working for c++. LSP is working fine because it is working for Lua files. So, that leaves me suspecting my LSP config. The behavior is…
thumala manish
  • 198
  • 1
  • 10
1
vote
0 answers

Any reliable EJS plugin/formatter/LSP for Neovim?

Does anyone know a reliable EJS plugin/formatter/LSP for Neovim? I'm not talking about the tree-sitter parser tree-sitter-embedded-template. I tried using the EJS-Lint but it would be better if there is a specific one built for Neovim. Thanks.
1
vote
1 answer

Lunar vim does not highlight syntax error on solidity, the default LSP does not show

When I was coding on solidity the syntax erros did not appear, every time I need to compile to solve see compilation problems. I tried to download several plugins to Lunar VIM, tried to add vscode plugins too but did not work.