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
5
votes
3 answers

How to set up Angular Language Service in Neovim

My setup at the moment looks like this: local cwd = vim.fn.getcwd() local project_library_path = cwd .. "/node_modules" local cmd = { DATA_PATH .. "/lsp_servers/angularls/node_modules/@angular/language-server/bin/ngserver", …
5
votes
2 answers

Sublime Text: [Errno 2] No such file or directory: 'gopls'

Installed LSP server on Sublime Text 3, then enabled gopls from the LSP: Enable Language Server Globally > selected gopls. Also executed below command on terminal. GO111MODULE=on go get golang.org/x/tools/gopls@latest Error…
5
votes
0 answers

How to run an existed language server without vscode

I am trying to develop my own IDE with language server protocol support, so i download language server written in typescript and try to start them with Node.js. First, I packaged the server package with webpack. and then start with the command "node…
5
votes
1 answer

How to convert IAR .ewp to LSP compile_commands.json database

I am on the quest of creating a compile_commands.json database from my IAR .ewp project. This would allow me to use intelligent LSP autocompletion (ccls) and proper semantic highlighting (vim-lsp-cxx-highlight) from my vim setup. I understand that I…
davidanderle
  • 638
  • 6
  • 12
5
votes
0 answers

How to add VSCode editor completions for iOS frameworks on linux

I would still like to be able to use VSCode to draft Swift code on my Linux machine while I'm away from my Mac. But I can't get the sourcekit-lsp to recognize the modules from the iOS SDK. I have occasional access to a Mac but mostly use my Linux…
Potassium Ion
  • 2,075
  • 1
  • 22
  • 39
5
votes
1 answer

Monaco editor: Highlight syntax errors in Python

I want to highlight Python syntax errors in browser. I discovered there is LSP implementation for Python and LSP client for Monaco editor. Is there any way to connect them together?
Pavel
  • 5,374
  • 4
  • 30
  • 55
5
votes
1 answer

What is a telemetry event in the Language Server Protocol specification

In the Language Server Protocol specification, a telemetry notification is is sent from the server to the client to ask the client to log a telemetry event. I would like to know what a telemetry event is.
Youssef SABIH
  • 629
  • 6
  • 11
5
votes
1 answer

Can I test my LSP server without writing an extension?

I'm writing a Language Server Protocol (LSP) server for use with neovim, and I'd like to test it against VSCode to make sure I've got all the details right and that I'm not accidentally encoding any neovim-isms into my implementation. The current…
alloyed
  • 51
  • 1
  • 3
4
votes
2 answers

How can I automatically trigger the rename flow after extracting into a variable (LSP)?

I'm implementing IDE support for a language using Language Server Protocol. I want to trigger a rename after extracting a variable into the current scope. That is, I've implemented steps 1 to 2 of the current flow and want to know how to implement 3…
Max Heiber
  • 14,346
  • 12
  • 59
  • 97
4
votes
1 answer

ElixirLS compiles without OTP EEP48 docs

Recently I had problem that I can't solve. It's about Elixir LS, when I run language server, it displays this message: {"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"Started ElixirLS…
4
votes
2 answers

Import detection error with neovim-lsp and tsserver

I recently installed typescript-language-server with neovim-lsp to code my react project, but neovim does not detect shortest module import. enter image description here Neovim : 0.8.0 + nvChad My LSP configuration : local present, lspconfig =…
4
votes
0 answers

failed to load view for file:///D:/Go: err: go resolves to executable in current directory (.\go): stderr:

I use neovim and emacs on Windows10, Install through MSYS go install golang.org/x/tools/gopls@latest but emacs eglot & nvim lspconfig show: [eglot] Connected! Server `gopls' now managing `go-mode' buffers in project `Go'. [eglot] Server reports…
4
votes
1 answer

Sublime Text 4 - How To Setup LSP-eslint

When using Sublime text 3 I had SublimeLinter with SublimeLinter-eslint packages, along with eslint & babel-eslint global node modules for JS & JSX syntax. With the switch to Sublime 4 I decided to give LSP a try. I Installed it, also LSP-css (which…
4
votes
1 answer

Are Language servers remote or local processes

A lot of IDE's and plugins talk about language servers that provide some of the IDE features like auto-completion, linting, and highlighting. Is the language server just some local process that is also running on my machine or is my code being sent…
4
votes
0 answers

How to connect existing Language Server to a new VS Code extension

VS Code lets you to install a Language Server like ccls or clang as another extension. But how do I connect it to my new custom extension? I can see information how to write your own language server, but not how to leverage existing ones.
1 2
3
23 24