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

How can I save the value of Monaco Editor

So i am trying to build a web based editor using Monaco, and I would like to save the code that I wrote in the editor in like a file by clicking a button and keep it even if I restart the server How can I do that ? const value = ``; const editor =…
LYass
  • 584
  • 4
  • 20
2
votes
1 answer

How does Semantic Highlighting work in VS Code with custom Xtext LS

I'm currently testing how to create a VS Code extension that would allow me to write files using my own DSL defined in Xtext (*.sample). So far I've been able to create the VS Code extension and use it: Open a file (*.sample) and load the…
2
votes
0 answers

Change which file vscode opens when using "go to definition"

I'm using Visual Studio Code to manage a C project that contains a number of libraries and fully-linked executables. When the executables need to depend on headers from a library, rather that point at the library's source files directly, they point…
Michael Mrozek
  • 169,610
  • 28
  • 168
  • 175
2
votes
0 answers

Eclipse Wild Web Developer Generic Editor: How to share the language server XML formatting settings within a team?

So far we have used the XML Editor from the Web Tools Platform (WTP). It does not support save-actions for automatic formatting on save. It does not support project-specific formatting settings (only workspace settings) I am now learning that the…
2
votes
0 answers

Uncaught ReferenceError: monaco is not defined at new t.MonacoWorkspace

I just build the sample in the example folder (with some modifications to make monaco edit typescript rather json(I'm getting to know how to use monaco api), below in the post) but I got some erros on the console window like below and the…
2
votes
0 answers

LSP for VS Code - client/server, need some tips

I struggle with understanding how does LSP client-side works. I mean I think I understand the theory of communication (JSON-RPC/LSP Protocol basics) but I struggle with existing libraries that are used for this for VS Code and I think trying to…
Axelly
  • 589
  • 3
  • 7
  • 26
2
votes
3 answers

How to get current text/symbol when implementing Go To Definition

I'm working on my first vscode extension using Language Server Protocol, I need to get the text were the Right click -> Go to definition was triggered My current onDefinition method receives only the textPosition export default class…
2
votes
1 answer

Writing an Emacs Backend Plugin in Common Lisp

I am interested in creating an emacs extension that delegates the work to an external program. I have my logic as a library, however, written in Common Lisp. If I can directly call the CL library from Elisp, that would be simpler for me; otherwise,…
user2232305
  • 319
  • 2
  • 11
2
votes
1 answer

Emacs LSP mode - is it possible to avoid mouse click to complete suggested actions?

I'm currently using Emacs with LSP mode for writing TypeScript code and it works pretty well. The only annoyance that I currently have is that each time I need to reach to mouse to click to complete suggested actions like Add async modifier to…
BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91
2
votes
2 answers

I cannot activate NVIM's built-in LSPs for javascript and html

I am trying to utilize NVIM's built-in LSPs. While I've been able to implement the LSP for css and python, I haven't been successful with javascript and html. I installed the LSPs with :LspInstall Here's how I'm loading the LSPs: packadd…
burke
  • 89
  • 2
  • 2
  • 10
2
votes
6 answers

My Neovim LSP error message doesn't have a red color

My Neovim LSP error message doesn't have a red color: Here is my vimrc file. I really don't know what the issue is. syntax on set guicursor= set relativenumber set noerrorbells set tabstop=2 softtabstop=2 set shiftwidth=2 set expandtab set…
merry-go-round
  • 4,533
  • 10
  • 54
  • 102
2
votes
1 answer

LSP4J: How to make language server request something from client

I'm working on a Language Server written in Scala using LSP4J. I was following the docs from both VS Code and the LSP4J and got to the point where I could send notifications back and forth between client and server. I have also managed to make the…
2
votes
0 answers

Typescript: getSymbolAtLocation

I am not sure if I fully understand what the expected behavior for getSymbolAtLocation is. Given a node (let's say a reference variable). Would that function return the Symbol for the declaration variable or the reference variable? My guess would be…
2
votes
1 answer

Is there a way to watch file system events inside node_modules folder for vscode-languageclient?

Inside the extensions activate(context:ExtensionContext) function, I want to add a FileSystemWatcher. While this works for e.g const clientOptions: LanguageClientOptions = { documentSelector: [{scheme: 'file', language: 'plainText'}], …
2
votes
0 answers

is it possible to use coc.nvim extensions behind a firewall?

In my case, I am trying to use coc-clangd at work where we have a firewall, preventing access to external resources (like github). There is however a way to have a local mirror of github repos. This is where i have copies of coc.nvim and…
ambushed
  • 533
  • 1
  • 5
  • 14