Skip to content

Commit

Permalink
Fix WorkDoneProgressCancel arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAngryByrd authored and baronfel committed Oct 29, 2023
1 parent 4a93d9a commit 40e3453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Server.fs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ type ILspServer =
/// progress initiated on the server side using the `window/workDoneProgress/create`. The progress need
/// not be marked as cancellable to be cancelled and a client may cancel a progress for any number of
/// reasons: in case of error, reloading a workspace etc.
abstract member WorkDoneProgressCancel: ProgressToken -> Async<unit>
abstract member WorkDoneProgressCancel: WorkDoneProgressCancelParams -> Async<unit>

/// The inline value request is sent from the client to the server to compute inline values for a given text document
/// that may be rendered in the editor at the end of lines.
Expand Down Expand Up @@ -766,7 +766,7 @@ type LspServer() =
/// progress initiated on the server side using the `window/workDoneProgress/create`. The progress need
/// not be marked as cancellable to be cancelled and a client may cancel a progress for any number of
/// reasons: in case of error, reloading a workspace etc.
abstract member WorkDoneProgressCancel: ProgressToken -> Async<unit>
abstract member WorkDoneProgressCancel: WorkDoneProgressCancelParams -> Async<unit>

default __.WorkDoneProgressCancel(_) = ignoreNotification

Expand Down Expand Up @@ -910,7 +910,7 @@ type LspServer() =
member this.TextDocumentSemanticTokensRange(p: SemanticTokensRangeParams) = this.TextDocumentSemanticTokensRange(p)
member this.TextDocumentInlayHint(p: InlayHintParams) = this.TextDocumentInlayHint(p)
member this.InlayHintResolve(p: InlayHint) = this.InlayHintResolve(p)
member this.WorkDoneProgressCancel(token) = this.WorkDoneProgressCancel(token)
member this.WorkDoneProgressCancel(p: WorkDoneProgressCancelParams) = this.WorkDoneProgressCancel(p)
member this.TextDocumentInlineValue(p: InlineValueParams) = this.TextDocumentInlineValue(p)

member this.TextDocumentPrepareCallHierarchy(p: CallHierarchyPrepareParams) =
Expand Down

0 comments on commit 40e3453

Please sign in to comment.