File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
lsp-test/src/Language/LSP
lsp-types/src/Language/LSP/Types
lsp/src/Language/LSP/Server Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ runSession :: String -- ^ The command to run the server.
151151 -> IO a
152152runSession = runSessionWithConfig def
153153
154- -- | Starts a new sesion with a custom configuration.
154+ -- | Starts a new session with a custom configuration.
155155runSessionWithConfig :: SessionConfig -- ^ Configuration options for the session.
156156 -> String -- ^ The command to run the server.
157157 -> C. ClientCapabilities -- ^ The capabilities that the client should declare.
@@ -703,7 +703,7 @@ getHover doc pos =
703703 let params = HoverParams doc pos Nothing
704704 in getResponseResult <$> request STextDocumentHover params
705705
706- -- | Returns the highlighted occurences of the term at the specified position
706+ -- | Returns the highlighted occurrences of the term at the specified position
707707getHighlights :: TextDocumentIdentifier -> Position -> Session (List DocumentHighlight )
708708getHighlights doc pos =
709709 let params = DocumentHighlightParams doc pos Nothing Nothing
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ import Language.LSP.Types.Message
5656import Language.LSP.Types.SemanticTokens
5757import Control.Lens.TH
5858
59- -- TODO: This is out of date and very unmantainable , use TH to call all these!!
59+ -- TODO: This is out of date and very unmaintainable , use TH to call all these!!
6060
6161-- client capabilities
6262makeFieldsNoPrefix ''MessageActionItemClientCapabilities
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import Data.Type.Equality
2929import Data.Function (on )
3030
3131-- ---------------------------------------------------------------------
32- -- Working with arbritary messages
32+ -- Working with arbitrary messages
3333-- ---------------------------------------------------------------------
3434
3535data FromServerMessage' a where
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import Language.LSP.Types.Method (Method(..), SMethod(..))
2828
2929-- This type exists to avoid a dependency on 'dependent-map'. It is less
3030-- safe (since we use 'unsafeCoerce') but much simpler and hence easier to include.
31- -- | A specialized altenative to a full dependent map for use with 'SMethod'.
31+ -- | A specialized alternative to a full dependent map for use with 'SMethod'.
3232data SMethodMap (v :: Method f t -> Type ) =
3333 -- This works by using an 'IntMap' indexed by constructor tag for the majority
3434 -- of 'SMethod's, which have no parameters, and hence can only appear once as keys
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ instance Default Options where
252252defaultOptions :: Options
253253defaultOptions = def
254254
255- -- | A package indicating the perecentage of progress complete and a
255+ -- | A package indicating the percentage of progress complete and a
256256-- an optional message to go with it during a 'withProgress'
257257--
258258-- @since 0.10.0.0
@@ -319,7 +319,7 @@ data ServerDefinition config = forall m a.
319319newtype ServerResponseCallback (m :: Method FromServer Request )
320320 = ServerResponseCallback (Either ResponseError (ResponseResult m ) -> IO () )
321321
322- -- | Return value signals if response handler was inserted succesfully
322+ -- | Return value signals if response handler was inserted successfully
323323-- Might fail if the id was already in the map
324324addResponseHandler :: MonadLsp config f => LspId m -> (Product SMethod ServerResponseCallback ) m -> f Bool
325325addResponseHandler lid h = do
You can’t perform that action at this time.
0 commit comments