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

How to (manually) disable Eclipse jdt.ls compilation in Maven/Java projects

I currently have a Maven Java 11 project that builds fine. However, I use Eclipse's implementation of the language-server for editing the code within Emacs. This works fine, everything that I really need is available. However, my question, is how…
kballou
  • 68
  • 1
  • 1
  • 10
0
votes
1 answer

Why grammar does not highlight keyword (Visual Studio Language Server)

I want to write Kamailio Language Server for Visual Studio 2022, I Create a project in GitHub with below structure And I use kamailio.tmLanguage.json from…
0
votes
1 answer

SublimeText4: How to disable LSP-typescript for specific directories?

I have LSP and LSP-typescript packages installed. I also have directory with typescript code snippets (read: gists), which i sometimes open with sublime. When i interact with such a snippet, i usually get some typecript syntax warnings, coming from…
user124
  • 1,632
  • 1
  • 11
  • 11
0
votes
1 answer

Semantic Tokens in MarkupString / MarkupContent

Is it possible to use MarkdownString/MarkupContent with code or pre with span to emulate semantic tokens in Hover? If so, is it possible to access the colors from the user's theme using only the CSS on the span elements? Ideally I would like to…
michaelmesser
  • 3,601
  • 2
  • 19
  • 42
0
votes
1 answer

PLS (Perl Language Server) on BBEdit Doesn't Seem to Do Anything?

I do most of my development work in BBEdit, which thankfully now supports Language Server Protocol and specifically PLS, a Perl implementation thereof. Near as I can tell, everything is set up properly for PLS to do its magic, but I cannot seem to…
Timothy R. Butler
  • 1,097
  • 7
  • 20
0
votes
1 answer

Custom language server: how to get the client to send *all* files to the server, not just those opened/edited by the user?

I'm working on implementing a custom language server and a VSCode language extension. My starting point for the client side is lsp-sample. My server implementation is entirely from scratch, in a different language (not JS). Currently, I've…
Sam Westrick
  • 1,248
  • 1
  • 7
  • 9
0
votes
1 answer

markdown not working in hover content in lsp

Markdown content is not showing up in hover content in lsp. code: connection.onHover((params) => { return { contents: [ { language: "lc", kind: MarkupKind.Markdown, value: `#…
0
votes
0 answers

how to get the word below the cursor when hovering over in LSP?

I am making a vscode extension for a programming language. At first i was doing all of the work using the extension api. Now i want to switch LSP. The feature I had implemented was that show the definition of builtin functions on hover. This was the…
0
votes
0 answers

Go to definition programmatically with language server protocol

I have created my own Xtext based DSL and vscode based editor with language server protocol. I create multiple models in separate files: # filename dummy1.xyz model { name dummy1 elements { Elem { name elem1 } } }} There is a…
0
votes
2 answers

why does lsp clangd linting throws an error "bits/c++config.h file not found?

lsp linting clangd throws a linting error when doing an include e.g #include error bits/c++config.h file not found I already installed mingw(via choco install) and added it to my path also tried added the includes enter image description…
0
votes
0 answers

textDocument/hover doesn't work until file is opened in vscode-languageclient/server

I tried to create a language client that communicates with an external language server via web sockets. The communication works well and all LSP functionalities are achieved if all the files are opened once. If we do not open the files,…
0
votes
0 answers

How can I get the type information at point?

When I put my cursor within a function that as additional function calls. The status bar appears to only show the type information for the outer most variable. I see the type for clientFutureBackend whereas I'd expect to see type info for…
irregular
  • 1,437
  • 3
  • 20
  • 39
0
votes
0 answers

abnormal behaviour of neovim with lsp clangd

this is my code that print hello world now if i use command Format that call vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]] my code will becames like this now strange symbols appear in the text clangd changes my text with ^M…
user16297678
0
votes
1 answer

VSCode extension does not update semantic model in language server

I created an Xtext grammar and Language server in eclipse, this was built and added to a vscode extension. I have implemented the below code to start up the language server. import * as path from 'path'; import { workspace, ExtensionContext } from…
0
votes
1 answer

Use clangd via the terminal

I would like to test clangd with my terminal but I can't make a request. I have read the documentation for the LSP language but I still don't understand how to start a connection etc. Here is the opening message: clangd is a language server that…
antho
  • 534
  • 4
  • 18