Skip to content

Commit c3df52d

Browse files
committed
fix TimeSpan.FromMilliseconds
1 parent 69f73fd commit c3df52d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CSharpLanguageServer/Handlers/Initialization.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ module Initialization =
156156
// start loading the solution
157157
//
158158
logger.LogDebug("handleInitialized: post SolutionReloadRequest")
159-
stateActor.Post(SolutionReloadRequest(TimeSpan.FromMilliseconds(100)))
159+
stateActor.Post(SolutionReloadRequest(TimeSpan.FromMilliseconds(int64 100)))
160160

161161
logger.LogDebug("handleInitialized: Ok")
162162

src/CSharpLanguageServer/State/ServerState.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ let processServerEvent (logger: ILogger) state postSelf msg : Async<ServerState>
286286
not (state.Settings.SolutionPath = newState.Settings.SolutionPath)
287287

288288
if solutionChanged then
289-
postSelf (SolutionReloadRequest(TimeSpan.FromMilliseconds(250)))
289+
postSelf (SolutionReloadRequest(TimeSpan.FromMilliseconds(int64 250)))
290290

291291
return newState
292292

0 commit comments

Comments
 (0)