@@ -118,7 +118,7 @@ data Options =
118
118
instance Default Options where
119
119
def = Options Nothing Nothing Nothing Nothing Nothing
120
120
Nothing Nothing Nothing Nothing Nothing
121
- Nothing Nothing
121
+ Nothing Nothing Nothing
122
122
123
123
-- | A function to publish diagnostics. It aggregates all diagnostics pertaining
124
124
-- to a particular version of a document, by source, and sends a
@@ -238,6 +238,7 @@ data Handlers =
238
238
, documentRangeFormattingHandler :: ! (Maybe (Handler J. DocumentRangeFormattingRequest ))
239
239
, documentTypeFormattingHandler :: ! (Maybe (Handler J. DocumentOnTypeFormattingRequest ))
240
240
, renameHandler :: ! (Maybe (Handler J. RenameRequest ))
241
+ , prepareRenameHandler :: ! (Maybe (Handler J. PrepareRenameRequest ))
241
242
, foldingRangeHandler :: ! (Maybe (Handler J. FoldingRangeRequest ))
242
243
-- new in 3.0
243
244
, documentLinkHandler :: ! (Maybe (Handler J. DocumentLinkRequest ))
@@ -293,7 +294,7 @@ instance Default Handlers where
293
294
Nothing Nothing Nothing Nothing Nothing Nothing
294
295
Nothing Nothing Nothing Nothing Nothing Nothing
295
296
Nothing Nothing Nothing Nothing Nothing Nothing
296
- Nothing Nothing Nothing Nothing
297
+ Nothing Nothing Nothing Nothing Nothing
297
298
298
299
-- ---------------------------------------------------------------------
299
300
nop :: a -> b -> IO a
@@ -367,6 +368,7 @@ handlerMap _ h J.TextDocumentColorPresentation = hh nop ReqColorPresentation $
367
368
handlerMap _ h J. TextDocumentDocumentLink = hh nop ReqDocumentLink $ documentLinkHandler h
368
369
handlerMap _ h J. DocumentLinkResolve = hh nop ReqDocumentLinkResolve $ documentLinkResolveHandler h
369
370
handlerMap _ h J. TextDocumentRename = hh nop ReqRename $ renameHandler h
371
+ handlerMap _ h J. TextDocumentPrepareRename = hh nop ReqPrepareRename $ prepareRenameHandler h
370
372
handlerMap _ h J. TextDocumentFoldingRange = hh nop ReqFoldingRange $ foldingRangeHandler h
371
373
handlerMap _ _ J. WindowProgressCancel = helper progressCancelHandler
372
374
handlerMap _ h (J. CustomClientMethod _) = \ ctxData val ->
0 commit comments