Ver Fonte

fix: local config launcher

gretmn102 há 3 anos atrás
pai
commit
02c4a909ef
1 ficheiros alterados com 2 adições e 11 exclusões
  1. 2 11
      QspServer/Program.fs

+ 2 - 11
QspServer/Program.fs

@@ -127,9 +127,7 @@ type FsacClient(sendServerRequest: ClientNotificationSender) =
         sendServerRequest "textDocument/publishDiagnostics" (box p) |> Async.Ignore
     override __.WorkspaceWorkspaceFolders () = // TODO
         failwith ""
-type State = {
-    DicPath : string
-}
+type State = unit
 
 type UpdateFileParms = {
     // File: BackgroundFileCheckType
@@ -866,13 +864,6 @@ type LocalSetting = {
 open FsharpMyExtension
 [<EntryPoint>]
 let main argv =
-    let localSettingPath = @"E:\Project\YetAnotherSpellCheckerServer\YacsServer\bin\Debug\net461\setting.json"
-    // Json.serf localSettingPath { DicPath = @"E:\Project\YetAnotherSpellCheckerServer\fullRussian.txt"}
-    let localSetting : LocalSetting = Json.desf localSettingPath
-    let state = {
-        State.DicPath = localSetting.DicPath
-    }
-
     use input = System.Console.OpenStandardInput()
     use output = System.Console.OpenStandardOutput()
 
@@ -882,7 +873,7 @@ let main argv =
         |> Map.add "fsharp/workspaceLoad" (requestHandling (fun s p -> s.FSharpWorkspaceLoad(p) ))
         // |> Map.add "fsharp/workspacePeek" (requestHandling (fun s p -> s.FSharpWorkspacePeek(p) ))
 
-    Server.start requestsHandlings input output FsacClient (fun lspClient -> BackgroundServiceServer(state, lspClient))
+    Server.start requestsHandlings input output FsacClient (fun lspClient -> BackgroundServiceServer((), lspClient))
     |> printfn "%A"
 
     0