protocol icon indicating copy to clipboard operation
protocol copied to clipboard

SemanticTokensOptions definition

Open joyme123 opened this issue 2 years ago • 2 comments

SemanticTokensOptions is defined as follow in Semantic Token

export interface SemanticTokensOptions extends WorkDoneProgressOptions {
	/**
	 * The legend used by the server
	 */
	legend: SemanticTokensLegend;

	/**
	 * Server supports providing semantic tokens for a specific range
	 * of a document.
	 */
	range?: boolean | {
	};

	/**
	 * Server supports providing semantic tokens for a full document.
	 */
	full?: boolean | {
		/**
		 * The server supports deltas for full documents.
		 */
		delta?: boolean;
	};
}

but in this repo, SemanticTokensOptions lack of legend, range and full fields

// SemanticTokensOptions option of semantic tokens provider server capabilities.
//
// @since 3.16.0.
type SemanticTokensOptions struct {
	WorkDoneProgressOptions
}

joyme123 avatar Aug 07 '23 09:08 joyme123

I've run into this issue as well.

Alfus avatar Nov 03 '23 01:11 Alfus

I am also suffering for this issue, and it seems I can't convince the client (neovim) to issue semanticTokens requests without them.

gamebox avatar Jan 01 '24 14:01 gamebox