Skip to content

Unable to specify document selectors for formatting requests during the initial initialization #2088

Open
@rcjsuen

Description

@rcjsuen

/**
* The server provides document formatting.
*/
documentFormattingProvider?: boolean | DocumentFormattingOptions;

/**
* The server provides selection range support.
*
* @since 3.15.0
*/
selectionRangeProvider?: boolean | SelectionRangeOptions
| SelectionRangeRegistrationOptions;

For ServerCapabilities I can include SelectionRangeRegistrationOptions in the original response to the initialize request but I cannot include DocumentFormattingRegistrationOptions because only DocumentFormattingOptions is allowed.

Would it make sense to update ServerCapabilities so that it supports declaring registration options for textDocument/formatting and other such features?

Metadata

Metadata

Assignees

No one assigned

    Labels

    info-neededIssue requires more information from poster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions