Skip to content

SemanticTokensOptions definition #47

Open

Description

@joyme123

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
}

Activity

  1. Alfus commented on Nov 3, 2023

    @Alfus

    I've run into this issue as well.

  2. gamebox commented on Jan 1, 2024

    @gamebox

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions