Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
49 views

vscode.executeDocumentSymbolProvider in the VS Code API only returns top-level symbols for some languages

I am writing a VS Code extension. In one of the commands, I need to get the AST of the focused file. I was hoping to outsource this task to the LSP so that I don't have to worry about supporting ...
petdomaa100's user avatar
1 vote
1 answer
55 views

LSP SignatureHelp.activeParameter not dynamically changing

maybe I'm just doing something obvious wrong, as I don't have any LSP or really TS experience. I am currently trying to implement an Language server using the vscode-languageserver/node package, but ...
Ben's user avatar
  • 21
0 votes
0 answers
26 views

How to get a partialResultToken from the textDocument/documentSymbol request in vscode

In the lsp specification, the documentSymbolParams extend WorkDoneParams and PartialResultParams. I need to need to get a partialResultToken to send back the results of textDocument/documentSymbols ...
Romain Tetley's user avatar
0 votes
0 answers
28 views

How to report a crashed language server to the user

My VS Code extension is starting a language server (win, exe) on basis of the language server protocol via a socket connection. Under some circumstances (coding problems) that languageserver.exe ...
Matt's user avatar
  • 43
0 votes
1 answer
66 views

VsCode Language Server Protocol on Hover local image not working

I'm creating an external language server in csharp using the language server protocol for a client in vscode. In the language, there exist references to image files (pngs), and I would like to have an ...
Swan's user avatar
  • 92
0 votes
0 answers
164 views

Is there any possible way to connect monaco editor react with eclipse.jdt.ls language server for multiple users

I’m implementing a web-based code editor with IntelliSense support for Java using the Eclipse JDT Language Server (JDT LS) via LSP. I run the JDT LS in a Node.js application as a child process, and ...
Dhileepan Dhileepan's user avatar
0 votes
0 answers
40 views

Access the channel output associated to a language server trace

As part of an extension I am developing, I would like to access the output channel associated to the trace of my language server, or even better its file so that I could open it either through the ...
Romain Tetley's user avatar
1 vote
0 answers
148 views

Is it possible to inject code context into VS Code Javascript language server

in VS Code I want to provide custom JSDocs and autocomplete for javascript. So I have a js file that contains definitions and JSDocs for specific objects and functions and I would like to have ...
rstsec's user avatar
  • 11
0 votes
0 answers
43 views

LSP LanguageClient setTrace sends always "off"

When successfully implementing a language client - server system, I can not set "trace" to an other value by setTrace. The server always receives "off". The client is visual studio ...
Matt's user avatar
  • 43
0 votes
0 answers
16 views

Custom VS Code extension: how to get the *full* custom-language UX in Notebooks?

TL;DR: I'm not seeing input-cell hovers / completions / etc for our fully-functioning (LSP-driven) custom-language IntelliSense impls, nor output-cell syntax-coloring with text/x-mylanguageid, what ...
meta_leap's user avatar
  • 2,185
0 votes
0 answers
240 views

How to send correct initialize response to VS Code for an LSP

I am building a Language Server Protocol (LSP) in C# and I'm currently setting up the response to the initialize request. My LSP receives JSON-RPC messages correctly, but I'm encountering an issue ...
user19522235's user avatar
1 vote
1 answer
41 views

VSCode Language Server extension does not return correct results if my cursor is in the middle of a line

I am developing a fork of a Cucumber Language Server as a VSCode extension, and I've run into a strange problem. My autocomplete (onCompletion) works as expected if there is nothing to the right of my ...
Lasse Klausen's user avatar
0 votes
0 answers
48 views

How to check for a license file in a git-tracked project on GitHub using LSP?

I'm fairly new to Language Server Protocol (LSP) and need some guidance on solving the following use case. I want to implement this on the server side to maximize compatibility with different IDEs. ...
silverfighter's user avatar
0 votes
1 answer
49 views

Intellisense in custom vscode Extension not working

I have copied the setup from the microsoft lsp-sample.The handling for the Completion is in the server. connection.onCompletion( (_textDocumentPosition: TextDocumentPositionParams): CompletionItem[...
Tumba's user avatar
  • 1
-1 votes
1 answer
83 views

What happens / how to handle when client.sendRequest(req, cursor).then((answer) does not receive any answer?

I have some VS Code client that sends a request to a server using: client.sendRequest(req, cursor).then((answer)=> { processing... }) What happens if the server does not (for some good reason) ...
Abdelghani's user avatar

15 30 50 per page
1
2 3 4 5
8