Server never initializes if no workspaceFolders are given
See original GitHub issueThe server never responds to the initialize request from the client, if it contains workspaceFolders: null
.
From the LSP specs:
/**
* The workspace folders configured in the client when the server starts.
* This property is only available if the client supports workspace folders.
* It can be `null` if the client supports workspace folders but none are
* configured.
*
* @since 3.6.0
*/
workspaceFolders?: [WorkspaceFolder](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspaceFolder)[] | null;
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
"Workspace not initialized" error when vscode is opened ...
I am running vscode that contains multiple repos and directories. A few directory levels beneath, there is a terraform workspace. Actual ...
Read more >Automatically starting a server when starting a debug ...
So here is how to do this. We add two more lines to the existing `launch.json`, defining a task to run before debugging...
Read more >Cannot Initialize Language Server Protocol - python
Currently I am wondering if it works to interact with the language server by directly sending JSON RPC. It seems that your code...
Read more >Language Server Protocol Specification - 3.17
This document describes the 3.17.x version of the language server protocol. An implementation for node of the 3.17.x version of the protocol can...
Read more >User and Workspace Settings
When you open the Settings editor, you can search and discover the settings you are looking for. When you search using the Search...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jfcherng right now Marksman does need a root/folder and doesn’t provide a single-file mode.
But now that I’m thinking a bit more about this, it seems that it’d be quite convenient and a better/less confusing UX overall. I’ve created a separate issue for this #69
Hi @artempyanykh, with 2022-09-02 and single file mode, the server does start but I don’t see it provide anything but just return
[]
andNone
for everything (Sublime Text). Could you point out the exact feature supported in single file mode from https://github.com/artempyanykh/marksman#demo?