Skip to content
Discussion options

You must be logged in to vote

The server is missing the required commands field in the executeCommandProvider part of the ServerCapabilities. executeCommandProvider as defined as:

// https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#executeCommandOptions
export interface ExecuteCommandOptions extends WorkDoneProgressOptions {
	/**
	 * The commands to be executed on the server
	 */
	commands: string[];
}

If commands were optional it would have a trailing ?. Instead the language server should send

{
  // ..
  "executeCommandProvider": {"commands": []},
  // ..
}

in its capabilities to signal that it supports executing commands but doesn't provide any commands out of the box.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@jdrst
Comment options

@christianfosli
Comment options

@jdrst
Comment options

@SofusA
Comment options

@jdrst
Comment options

Answer selected by jdrst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #7495 on July 01, 2023 14:20.