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

How to invoke built-in command 'vscode.executeReferenceProvider' from language-server host

I try to execute built-in command 'vscode.executeReferenceProvider' from language-server. The command is provided in the context of 'onCodeLensResolve' method as property of 'CodeLens' object. private onCodeLens(params: LSP.CodeLensParams):…
0
votes
1 answer

VSCode: obtain editor content in Language Server

I'm trying to develop a Language Server to a new language in VS Code and I'm using the Microsoft sample as reference (https://github.com/microsoft/vscode-extension-samples/tree/master/lsp-sample). In their sample the autocompletion is done in this…
rbasniak
  • 4,484
  • 11
  • 51
  • 100
0
votes
0 answers

Xtext language Server and Global Scoping

I've implemented a Language Server for a Java-like "toy" DSL based on Xtext together with a VS code extension and everything worked like a charm. Trying to improve my language server a bit, I've added "imports" support and have leveraged the…
Amine Ben
  • 65
  • 6
0
votes
1 answer

JSON language server in QtCreator

I don't seem to be able to get a language server for JSON (not tried others) working in QtCreator. I downloaded vscode-json-langageserver and set it up in QtCreator options... Language client: *.json, startup behaviour: "Requires an Open…
0
votes
1 answer

how to apply edits to text document from vscode language server?

how to apply edits to text document from server side of LSP language server vscode extension? Maybe I have to create a WorkspaceEdit structure and send a workspace/applyEdit request to the client? Looking for some sample code I can review. What I…
RockBoro
  • 2,163
  • 2
  • 18
  • 34
0
votes
0 answers

What is the best way to write a completion provider for vscode extension for javascript

What i am doing right now is to identify the current scope of the cursor point and then provide the completions using a hashmap according to the scope. HashMap program =new HashMap(){{ put("function",…
0
votes
0 answers

Problem understanding VSCode extension for code completion

I am trying to have language support in VSCode for an assembler targeting a programmable ASIC. So far I have only the TextMate grammar and I am now trying to understand how to implement a language server. I am learning from …
0
votes
0 answers

Language Server Protocol /VSCODE : Adaptation of lsp-sample to my own case

I'm creating a vscode extension (client language) which communicates with my own language server (LP) which is written by OCaml using the Language server protocol. Based on the lsp sample provided by vscode documentation, which I wasn't able to…
0
votes
0 answers

Weird error in cquery using coc.vim on neovim

I have built and installed cquery as explained in it's repository. But it seems to me that something goes wrong. This simple code snippet compiles well without any error while cquery shows me an error telling invalid operands to binary expression…
0
votes
1 answer

LSP: Cannot get document symbol

I'm learning LSP and am right now trying to get document symbols. I use Felix Becker PHP language server. No matter what I try I cannot get back the symbols. I have tried to log what the Language Server receives and here it is (tried to omit…
Stefano Mtangoo
  • 6,017
  • 6
  • 47
  • 93
0
votes
1 answer

VSCode JSON language server unhandled method

I posted this last week and have made progress since, where I've discovered the packages that VSCode's JSON support is delivered via…
0
votes
1 answer

vscode language server verbose log shows Sending request 'textDocument/hover - (9)' but server does not get the message

the server is executable program, it use stdio as transport.it's repo https://github.com/PMunch/nimlsp the log shows it got an initialize notification and text document didopen notification, why it can't get the request type message? whether hover…
0
votes
1 answer

Is it possible to make a proxy between IDE and language server?

Say, I want to slightly change the behavior of some language. Can this be done? Has it been done before? UPD: Typescript has very limited possibilites to work with property names (for example you can not with the help of typescript create a…
Nurbol Alpysbayev
  • 19,522
  • 3
  • 54
  • 89
0
votes
1 answer

How to display LSP's relatedInformation in VS Code

I'm writing a language server. It delivers additional DiagnosticRelatedInformation as part of its diagnostics response. Just like in https://code.visualstudio.com/updates/v1_22#_related-information-in-errors-and-warnings. Currently, though while I…
0
votes
0 answers

VSCode language server plugin wont activate

I have a language server plugin that I inherited from a developer no longer in our company. It is published in vscode marketplace. It works kinda ok, as has issues but at least does something. Now when I've fetched the repo & made the fixes needed…
1 2 3
23
24