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

Parse Xtext based DSL in VS Code with LSP support

I have created a custom DSL in xtext along with LSP support, which looks something like grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals generate myDsl "http://www.xtext.org/example/mydsl/MyDsl" Model: …
0
votes
2 answers

CMake project builds but shows include error in LSP

I'm working on a C++ project using ccls (the LSP language server) and lsp-mode in Emacs. I also have a CMake project definition for my project. My project builds correctly with make using the Makefile generated by CMake, but ccls says that my…
ironchicken
  • 754
  • 6
  • 19
0
votes
0 answers

Using C#-Language Server of Visual Studio 2019 in VSIX Extension

I'd like to create a new extension that allows some kind of text templating similar to Microsoft's T4 runtime text templating engine. Those templates can contain C# code and I'd like to have LSP functionality for these snippets within the Visual…
sonntam
  • 358
  • 1
  • 2
  • 14
0
votes
2 answers

VSCode extension does not seem to be sending requests to my LSP server

TL;DR I have a VSCode extension acting as a client for an LSP server written in Python (using the pygls library) and I can't seem to get basic requests sent to my LSP server from the extension. The Longer Version I'm working on an LSP server for a…
0
votes
0 answers

Code completion not working for Xtext language server

I tried building a vscode extension for my custom DSL. I initially tested it with a dummy xtext project with LSP support and used the default DSL grammar org.xtext.example.mydsl1.MyDsl with org.eclipse.xtext.common.Terminals generate myDsl…
0
votes
1 answer

Xtext: How to react on external changes of the AST

We're currently testing the connection between the Language Server with an instance of the EMFCloud.ModelServer. We're able to save/edit our Semantic Model in the Model Server workspace as it is described in the following answer. Basically, the…
0
votes
0 answers

CGO interface implemented on C type shows an error

I have a C header file leddimer.h with typedef typedef struct leddimer_s { int id; } leddimer_t; Then I have main.go file package main //#cgo CFLAGS: -I /Users/dd/projects/cgotypedef/ // #include "leddimer.h" import "C" type dimer…
0
votes
1 answer

Xtext: How to persist a DSL AST using XMI (or JSON)?

I'm currently trying to figure out how to "connect" an Xtext Language Server with an EMFCloud.ModelServer instance so each time a client (VS Code extension in my case) saves a custom DSL text file, the Language Server saves the AST as XMI (or JSON).…
0
votes
1 answer

Unable to acquire application service when trying to execute JDTLS (Java language server) from command line

I've been trying to make JDTLS (a java language server) work to use it with nvim LSP features but after solving some problems I'm stuck with the following error written in a log file: Note: found out a clue in the comments, it's trying to import…
0
votes
1 answer

How to deploy a C# language server, and use WebSockets for communication with client?

I am trying to host a web page with monaco editor and add intellisense for c#. From what I have found I should use monaco-languageclient with a language server running in a different process and have both communicate over some transport channel,…
0
votes
0 answers

Add a Language Server Protocol extension does not work

I am trying to implement the example of a LSP client: https://learn.microsoft.com/en-us/visualstudio/extensibility/adding-an-lsp-extension?view=vs-2019#create-a-simple-language-client When I use the code given on this page, I get an…
0
votes
1 answer

Is it possible to have LSP support VB.net?

For roslyn seemed to support LSP, and is available under linux, is is possible to have LSP support in Visual Studio code, or Kate? If yes, how?
0
votes
1 answer

csharp_ls not working with Neovim built-in lsp

I installed csharp_ls like in official nvim lsp docs. I have dotnet-sdk installed: $ dotnet --version 5.0.205 as well as csharp-ls: $ whereis csharp-ls csharp-ls: /home/user/.dotnet/tools/csharp-ls But when I try to run it in neovim, I get this…
0
votes
1 answer

How to attach LSP debugging on Extention Host start, rather than manual attach

Hopefully 'There are no stupid questions apply' rule is in full effect, and I realise language server development is a little niche. I have a bunch of startup code in my vscode extension I occasionally need to walk/debug, with a manual attach task,…
0
votes
0 answers

C++ Reference to overloaded function could not be resolved

I am just testing the LSP-ccls in Emacs. Emacs gave me this mysterious error, but the code is indeed runnable. Does anyone know why this is happening? #include using namespace std; int main() { for (auto i = 0; i < 5; i++) { cout…
yaoya
  • 1
  • 1