Skip to content

Commit 319f84e

Browse files
committed
fix cancellationtoken
1 parent 20de742 commit 319f84e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FSharpLint.Console/Daemon.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ type FSharpLintDaemon(sender: Stream, reader: Stream) as this =
5757
member _.Version() : string = FSharpLint.Console.Version.get ()
5858

5959
[<JsonRpcMethod(Methods.LintFile)>]
60-
member _.LintFile(request: LintFileRequest) : Result<ClientLintWarning list, string> =
60+
member _.LintFile(request: LintFileRequest, cancellationToken: CancellationToken option) : Result<ClientLintWarning list, string> =
6161
let lintConfig =
6262
match request.LintConfigPath with
6363
| Some path ->
64-
{ CancellationToken = None
64+
{ CancellationToken = cancellationToken
6565
ReceivedWarning = None
6666
Configuration = FromFile path
6767
ReportLinterProgress = None }

0 commit comments

Comments
 (0)