Skip to content

Commit

Permalink
Fix bug in GetInterfaceStubCodeAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof-Cieslak committed Jun 13, 2019
1 parent db2bd0b commit afac951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FsAutoComplete/FsAutoComplete.Lsp.fs
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,8 @@ type FsharpLspServer(commands: Commands, lspClient: FSharpLspClient) =
let pos = protocolPosToPos p.Range.Start
let! res = x.HandleTypeCheckCodeAction fn pos (fun tyRes line lines -> commands.GetInterfaceStub tyRes pos lines line)
let res =
match res.[0] with
| CoreResponse.InterfaceStub (text, position) ->
match res with
| CoreResponse.InterfaceStub (text, position)::_ ->
let range = {
Start = fcsPosToLsp position
End = fcsPosToLsp position
Expand Down

0 comments on commit afac951

Please sign in to comment.