Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAngryByrd committed Oct 9, 2023
1 parent 8f35d64 commit 30f546f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 126 deletions.
1 change: 0 additions & 1 deletion src/FsAutoComplete/FsAutoComplete.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<Compile Include="LspServers/IFSharpLspServer.fs" />
<Compile Include="LspServers/FSharpLspClient.fs" />
<Compile Include="LspServers/Common.fs" />
<Compile Include="LspServers/CallHierarchy.fs" />
<Compile Include="LspServers/AdaptiveFSharpLspServer.fsi" />
<Compile Include="LspServers/AdaptiveFSharpLspServer.fs" />
<Compile Include="LspServers/FsAutoComplete.Lsp.fsi" />
Expand Down
12 changes: 1 addition & 11 deletions src/FsAutoComplete/LspHelpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,14 @@ module FcsRange = FSharp.Compiler.Text.Range
type FcsPos = FSharp.Compiler.Text.Position
module FcsPos = FSharp.Compiler.Text.Position

// type LspPos = Ionide.LanguageServerProtocol.Types.Position
// type LspRange = Ionide.LanguageServerProtocol.Types.Range

module Lsp = Ionide.LanguageServerProtocol.Types

module LspRange =
// static member Create (start: LspPos) (end_: LspPos) : LspRange =
// { Start = start; End = end_ }
let Zero: Lsp.Range =
{ Start = { Line = 0; Character = 0 }
End = { Line = 0; Character = 0 } }

module FcsPos =
let subtractColumn (pos: FcsPos) (column: int) = FcsPos.mkPos pos.Line (pos.Column - column)

[<AutoOpen>]
module Conversions =

module Lsp = Ionide.LanguageServerProtocol.Types
/// convert an LSP position to a compiler position
let protocolPosToPos (pos: Lsp.Position) : FcsPos = FcsPos.mkPos (pos.Line + 1) (pos.Character)

Expand Down
4 changes: 1 addition & 3 deletions src/FsAutoComplete/LspHelpers.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ module FcsPos = FSharp.Compiler.Text.Position

module Lsp = Ionide.LanguageServerProtocol.Types

module LspRange =
val Zero: Lsp.Range

module FcsPos =
val subtractColumn: pos: FcsPos -> column: int -> FcsPos

[<AutoOpen>]
module Conversions =
module Lsp = Ionide.LanguageServerProtocol.Types
/// convert an LSP position to a compiler position
val protocolPosToPos: pos: Lsp.Position -> FcsPos
val protocolPosToRange: pos: Lsp.Position -> Range
Expand Down
111 changes: 0 additions & 111 deletions src/FsAutoComplete/LspServers/CallHierarchy.fs

This file was deleted.

0 comments on commit 30f546f

Please sign in to comment.