Skip to content

Commit a1923f3

Browse files
committed
chore(State.ServerState): drop unused ServerStateEvent.GetDocumentOfTypeForUri
1 parent 7068467 commit a1923f3

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/CSharpLanguageServer/Lsp/Server.fs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ type CSharpLspServer(lspClient: CSharpLspClient, settings: ServerSettings) =
3939
Settings = settings }
4040
)
4141

42-
let getDocumentForUriFromCurrentState docType uri =
43-
stateActor.PostAndAsyncReply(fun rc -> GetDocumentOfTypeForUri(docType, uri, rc))
44-
4542
let mutable timer: Threading.Timer option = None
4643

4744
let setupTimer () =

src/CSharpLanguageServer/State/ServerState.fs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ type ServerStateEvent =
118118
| OpenDocRemove of string
119119
| OpenDocTouch of string * DateTime
120120
| GetState of AsyncReplyChannel<ServerState>
121-
| GetDocumentOfTypeForUri of LspWorkspaceDocumentType * string * AsyncReplyChannel<Document option>
122121
| StartRequest of string * ServerRequestMode * int * AsyncReplyChannel<int * SemaphoreSlim>
123122
| FinishRequest of int
124123
| ProcessRequestQueue
@@ -251,13 +250,6 @@ let processServerEvent (logger: ILogger) state postSelf msg : Async<ServerState>
251250
replyChannel.Reply(state)
252251
return state
253252

254-
| GetDocumentOfTypeForUri(docType, uri, replyChannel) ->
255-
let docForUri = uri |> workspaceDocument state.Workspace docType
256-
257-
replyChannel.Reply(docForUri)
258-
259-
return state
260-
261253
| StartRequest(name, requestMode, requestPriority, replyChannel) ->
262254
postSelf ProcessRequestQueue
263255

0 commit comments

Comments
 (0)