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
1 answer

SpringBoot get InputStream and OutputStream from websocket

we want to integrate third party library(Eclipse XText LSP) into our SpringBoot webapp. This library works "interactively" with the user (like chat). XText API requires input and output stream to work. We want to use WebSocket to let users interact…
0
votes
1 answer

Reading another file in the same directory as the current file (VS Code)

I am creating a language server and currently have a list of static/preloaded completion items. This language server will activate on any .script file. In the same directory there will exist a .map file (arbitrary extension, I am not referring to JS…
0
votes
1 answer

Where is the LSP artifact generated by Xtext

I just tried the new Xtext 2.13 and generated a new project with Language Server Protocol support (I chose the fat jar option). However, I have no idea where the jar is. Here is what I tried searching for find . -name "*shadow*" find . -name…
Hristo Vrigazov
  • 1,357
  • 2
  • 12
  • 20
0
votes
1 answer

How to retrieve the rootPath (or any other client side info) from language server side?

I am working on a language extention, based on the sample "language server" (https://code.visualstudio.com/docs/extensions/example-language-server). On the server side, I need to know the current folder used by vscode, which, on the client side,…
0
votes
1 answer

Unable to attach server portion of an extension to the debugger

I'm following the guide on building a language server extension (https://code.visualstudio.com/docs/extensions/example-language-server) and it says to debug the server portion, you simply F5 from the editor with the server code within it. However,…
-1
votes
1 answer

Language Server Protocol(LSP) for VS Code, document.getText() is not working in onCompletion()

I am trying to create a new custom language, with the code completion. My purpose is to detect user defined functions and variables in the documents every time the code changes and put it in the list of completion. The code is based on "lsp-sample"…
-1
votes
1 answer

coc-tsserver is not detecting undefined variables

I am using coc and tsserver in my neovim editor, coc-tsserver is providing excellent autocomplete suggestions and warnings as in vs code but it is failing to detect undefined variables. Can someone help me in configuring this .
Abd
  • 85
  • 7
-1
votes
2 answers

How to setup Neovim with LSP ( Clangd)

I'm tring to set-up neovim for competetive-programming in c++ . And I think showing error while typing code would help me alot thus i need to set-up lsp in neovim, i have tried Nighty Build neovim but i was not working in gnome-terminal so i even…
Gourav Raj
  • 21
  • 1
  • 1
  • 2
-1
votes
1 answer

Get the size of the biggest derived class from a language server

I've got the problem that I need to know the size of the biggest derived class of a base class. At the moment I'm using the -D option of the compiler to specify the size, this is the easiest option I could think of, but you always have to update…
Gian Laager
  • 474
  • 4
  • 14
-1
votes
1 answer

When developing a new VSCODE extension, how to generate a Language Sever Protocol requirement and deal with the response?

When using the LSP provided by microsoft, at client how to generate a requiring json data and send it to the server? And then how to deal with the json data responded by the server? I've read official documents but didn't find the way. All I want to…
-2
votes
1 answer

injecting deleted files while codegen

using this code to fetch files for codegen from filesystem public void executeCommand(Resource resource, Document document, ILanguageServerAccess access, ExecuteCommandParams params) { JavaIoFileSystemAccess fileSystemAccess =…
Siddharth
  • 1
  • 1
1 2 3
23
24