Skip to content

Commit 0164358

Browse files
author
askeblad
authored
fix spelling errors (#416)
* spelling errors * uppercase * another spelling error
1 parent 6e990ff commit 0164358

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lsp-test/src/Language/LSP/Test.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ runSessionWithHandles' serverProc serverIn serverOut config' caps rootDir sessio
198198
config <- envOverrideConfig config'
199199

200200
let initializeParams = InitializeParams Nothing
201-
-- Narowing to Int32 here, but it's unlikely that a pid will
201+
-- Narrowing to Int32 here, but it's unlikely that a PID will
202202
-- be outside the range
203203
(Just $ fromIntegral pid)
204204
(Just lspTestClientInfo)
@@ -241,7 +241,7 @@ runSessionWithHandles' serverProc serverIn serverOut config' caps rootDir sessio
241241
exitServer :: Session ()
242242
exitServer = request_ SShutdown Empty >> sendNotification SExit Empty
243243

244-
-- | Listens to the server output until the shutdown ack,
244+
-- | Listens to the server output until the shutdown ACK,
245245
-- makes sure it matches the record and signals any semaphores
246246
listenServer :: Handle -> SessionContext -> IO ()
247247
listenServer serverOut context = do

lsp/src/Language/LSP/Server/Core.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ data Options =
221221
-- | The characters that trigger completion automatically.
222222
, completionTriggerCharacters :: Maybe [Char]
223223
-- | The list of all possible characters that commit a completion. This field can be used
224-
-- if clients don't support individual commmit characters per completion item. See
224+
-- if clients don't support individual commit characters per completion item. See
225225
-- `_commitCharactersSupport`.
226226
, completionAllCommitCharacters :: Maybe [Char]
227227
-- | The characters that trigger signature help automatically.
@@ -289,12 +289,12 @@ data ServerDefinition config = forall m a.
289289
-- ^ Called *after* receiving the @initialize@ request and *before*
290290
-- returning the response. This callback will be invoked to offer the
291291
-- language server implementation the chance to create any processes or
292-
-- start new threads that may be necesary for the server lifecycle. It can
292+
-- start new threads that may be necessary for the server lifecycle. It can
293293
-- also return an error in the initialization if necessary.
294294
, staticHandlers :: Handlers m
295295
-- ^ Handlers for any methods you want to statically support.
296296
-- The handlers here cannot be unregistered during the server's lifetime
297-
-- and will be regsitered statically in the initialize request.
297+
-- and will be registered statically in the initialize request.
298298
, interpretHandler :: a -> (m <~> IO)
299299
-- ^ How to run the handlers in your own monad of choice, @m@.
300300
-- It is passed the result of 'doInitialize', so typically you will want
@@ -610,7 +610,7 @@ withProgressBase indefinite title cancellable f = do
610610
_ <- sendRequest SWindowWorkDoneProgressCreate
611611
(WorkDoneProgressCreateParams progId) $ \res -> do
612612
case res of
613-
-- An error ocurred when the client was setting it up
613+
-- An error occurred when the client was setting it up
614614
-- No need to do anything then, as per the spec
615615
Left _err -> pure ()
616616
Right Empty -> pure ()

lsp/src/Language/LSP/VFS.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ codeUnitOffsetToCodePointOffset rope offset = do
427427
guard $ offset <= Rope.length rope
428428
-- Split at the given position in *code units*
429429
(prefix, _) <- Rope.splitAt offset rope
430-
-- Convert the prefixto a rope using *code points*
430+
-- Convert the prefix to a rope using *code points*
431431
let utfPrefix = URope.fromText $ Rope.toText prefix
432432
-- Get the length of the prefix in *code points*
433433
pure $ URope.length utfPrefix

lsp/test/URIFilePathSpec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ uriFilePathSpec = do
164164
let theUri = filePathToUri testFilePath
165165
theUri `shouldBe` testUri
166166

167-
it "removes unnecesary current directory paths" $ do
167+
it "removes unnecessary current directory paths" $ do
168168
let theUri = filePathToUri withCurrentDirFilePath
169169
theUri `shouldBe` testUri
170170

0 commit comments

Comments
 (0)