Class DefaultRenameProvider

Language-specific service for handling rename requests and prepare rename requests.

Implements

Constructors

Properties

grammarConfig: GrammarConfig
nameProvider: NameProvider
references: References

Methods

  • Handle a prepare rename request.

    Parameters

    • document: LangiumDocument<AstNode>

      The document in which the prepare rename request was triggered.

    • params: TextDocumentPositionParams

      The prepare rename parameters.

    • Optional_cancelToken: CancellationToken

    Returns MaybePromise<undefined | Range>

    A range that describes the range of the symbol to be renamed.

    OperationCancelled if cancellation is detected during execution

    ResponseError if an error is detected that should be sent as response to the client

  • Handle a rename request.

    Parameters

    Returns Promise<undefined | WorkspaceEdit>

    A workspace edit that describes the changes to be applied to the workspace.

    OperationCancelled if cancellation is detected during execution

    ResponseError if an error is detected that should be sent as response to the client