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.
151
151
-> IO a
152
152
runSession = runSessionWithConfig def
153
153
154
- -- | Starts a new sesion with a custom configuration.
154
+ -- | Starts a new session with a custom configuration.
155
155
runSessionWithConfig :: SessionConfig -- ^ Configuration options for the session.
156
156
-> String -- ^ The command to run the server.
157
157
-> C. ClientCapabilities -- ^ The capabilities that the client should declare.
@@ -703,7 +703,7 @@ getHover doc pos =
703
703
let params = HoverParams doc pos Nothing
704
704
in getResponseResult <$> request STextDocumentHover params
705
705
706
- -- | Returns the highlighted occurences of the term at the specified position
706
+ -- | Returns the highlighted occurrences of the term at the specified position
707
707
getHighlights :: TextDocumentIdentifier -> Position -> Session (List DocumentHighlight )
708
708
getHighlights doc pos =
709
709
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
56
56
import Language.LSP.Types.SemanticTokens
57
57
import Control.Lens.TH
58
58
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!!
60
60
61
61
-- client capabilities
62
62
makeFieldsNoPrefix ''MessageActionItemClientCapabilities
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import Data.Type.Equality
29
29
import Data.Function (on )
30
30
31
31
-- ---------------------------------------------------------------------
32
- -- Working with arbritary messages
32
+ -- Working with arbitrary messages
33
33
-- ---------------------------------------------------------------------
34
34
35
35
data FromServerMessage' a where
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import Language.LSP.Types.Method (Method(..), SMethod(..))
28
28
29
29
-- This type exists to avoid a dependency on 'dependent-map'. It is less
30
30
-- 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'.
32
32
data SMethodMap (v :: Method f t -> Type ) =
33
33
-- This works by using an 'IntMap' indexed by constructor tag for the majority
34
34
-- 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
252
252
defaultOptions :: Options
253
253
defaultOptions = def
254
254
255
- -- | A package indicating the perecentage of progress complete and a
255
+ -- | A package indicating the percentage of progress complete and a
256
256
-- an optional message to go with it during a 'withProgress'
257
257
--
258
258
-- @since 0.10.0.0
@@ -319,7 +319,7 @@ data ServerDefinition config = forall m a.
319
319
newtype ServerResponseCallback (m :: Method FromServer Request )
320
320
= ServerResponseCallback (Either ResponseError (ResponseResult m ) -> IO () )
321
321
322
- -- | Return value signals if response handler was inserted succesfully
322
+ -- | Return value signals if response handler was inserted successfully
323
323
-- Might fail if the id was already in the map
324
324
addResponseHandler :: MonadLsp config f => LspId m -> (Product SMethod ServerResponseCallback ) m -> f Bool
325
325
addResponseHandler lid h = do
You can’t perform that action at this time.
0 commit comments