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

Nightly build of Neovim with JDTLS (java language server) not recognizing JAR files in ${CLASSPATH}

I have added the junit jar file in my ${CLASSPATH} environment variable, but when I use the lsp for neovim it doesn't recognize the functions and imports from the JAR file. import static org.junit.Assert.assertEquals; ■ The import org.junit…
ujjain
  • 9
  • 1
  • 4
0
votes
0 answers

Automating LSP interactions to instrument source code

Given an existing set of program sources, I would like to leverage an LSP server to instrument that source code so that, when run with a test, profiler, benchmark or some other sample program, the instrumented code will generate a database of…
pajato0
  • 3,628
  • 3
  • 31
  • 37
0
votes
1 answer

Language Server Provider - Get Line Break Type

I'm trying to get the line break type (CRLF or LF) of the client document, but can't find any reference to it in the docs. I need something like this in the server.ts file: function validateTextDocument(textDocument) { return __awaiter(this,…
Fabiow
  • 11
  • 3
0
votes
1 answer

LSP hover text markdown links from C# not working

I'm working on a VSCode extension with an LSP (implemented in C#/Omnisharp). I've implemented my language hover provider in the LSP and it's working fine. However, I want to add a clickable [vscode] command link to the hover. I've done this before…
0
votes
0 answers

VS Code documentation on completion not shown

The documentation on completion is not shown in VS Code even if the language server sends the completionItem/resolve with documentation. [Trace - 3:33:37 PM] Sending request 'completionItem/resolve - (33)'. Params: { "label": "append", …
0
votes
1 answer

Store information in model when using diagnostics and hover together

I'm writing my own IDE by Monaco Editor. First, I have diagnostics which sets markers from the result of optimizeFormula(text, "A1"): export class DiagnosticsAdapter { private async _doValidate(model: monaco.editor.ITextModel): Promise { …
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
0
votes
1 answer

VS Code with stdin/out .exe server on Windows

I have an LSP server that works fine with VS 2019 IDE. I am now trying to get it to work with VSCode. I wrote a simple extension for VSCode that was working with the server at one point, but VSCode is now not working at all. So, I decided to write a…
kaby76
  • 1,142
  • 1
  • 7
  • 10
0
votes
1 answer

Custom language Xtext LanguageServer

I am tying to make a simple example of language server running with IntelliJ Idea plugin. I started with a simple Xtext project from Eclipse. I did nothing special. Just created a new Xtext project and built it with gradle. For some reason my new…
Ondrej Havlicek
  • 170
  • 5
  • 12
0
votes
0 answers

How does VSCode decide what can be control-clicked

In VSCode you can ctrl-click some word, like types and variables names, and it will underline the word while hovering, and then go to the definition when you click. How does it decide which words are clickable?
Timmmm
  • 88,195
  • 71
  • 364
  • 509
0
votes
1 answer

Is there a way we can make the Java Language Server to skip checking `node_modules` files while starting up in VSCode?

Since I am having a couple of angular projects within the same workspace along with Spring Projects, the Java Language Server that runs for providing Java support to VSCode takes an enormous time (~10 mins) to run through all the contents of the…
0
votes
0 answers

Serve csharp-language-server-protocol instance through a web socket

I am using the csharp-language-server-protocol implementation to create a custom language server and it works great (see LSP). The only problem is that I am not finding a nice way to connect the in/out streams the server uses to a websocket using…
0
votes
1 answer

can't connect to tsserver

I'm writing a vscode extension that should connect to tsserver in order to provide language support for typescript/javascript. Here is how i'm doing it (in extension.ts, inside activate): const serverModule = path.resolve( __dirname, "..", …
0
votes
1 answer

How to add "show preview" button to VS Code extension?

I have a VS Code extension that analyses custom JSON and YAML files. So in the project's package.json, there is this: "activationEvents": [ "onLanguage:yaml", "onLanguage:json", "onCommand:extension.sidePreview" …
0
votes
0 answers

Xtext Language Server

I wrapped an Ace Editor in a React Front-End Application and served a separat Java-Backend using the LanguageServerImpl class to have my own grammar using Xtext. I want to use xtexts validation and autocomplete methods passing data between the Ace…
0
votes
1 answer

how can a language server access a file in the same directory as the source file

I am writing a language server for my custom language. The way a source file is processed is partly influenced by a manifest.json file in the same directory as the source file. In a workspace there might be multiple directories with multiple source…
Corno
  • 5,448
  • 4
  • 25
  • 41