@@ -83,7 +83,7 @@ spec = do
83
83
updater $ ProgressAmount (Just 75 ) (Just " step3" )
84
84
liftIO $ waitBarrier b3
85
85
86
- runSessionWithServer logger definition Test. defaultConfig Test. fullCaps " ." $ do
86
+ runSessionWithServer logger definition Test. defaultConfig Test. fullLatestClientCaps " ." $ do
87
87
Test. sendRequest (SMethod_CustomMethod (Proxy @ " something" )) J. Null
88
88
89
89
-- Wait until we have seen a begin messsage. This means that the token setup
@@ -144,7 +144,7 @@ spec = do
144
144
-- Wait around to be cancelled, set the MVar only if we are
145
145
liftIO $ threadDelay (5 * 1000000 ) `Control.Exception.catch` (\ (e :: ProgressCancelledException ) -> modifyMVar_ wasCancelled (\ _ -> pure True ))
146
146
147
- runSessionWithServer logger definition Test. defaultConfig Test. fullCaps " ." $ do
147
+ runSessionWithServer logger definition Test. defaultConfig Test. fullLatestClientCaps " ." $ do
148
148
Test. sendRequest (SMethod_CustomMethod (Proxy @ " something" )) J. Null
149
149
150
150
-- Wait until we have created the progress so the updates will be sent individually
@@ -190,7 +190,7 @@ spec = do
190
190
takeMVar killVar
191
191
Control.Exception. throwIO AsyncCancelled
192
192
193
- runSessionWithServer logger definition Test. defaultConfig Test. fullCaps " ." $ do
193
+ runSessionWithServer logger definition Test. defaultConfig Test. fullLatestClientCaps " ." $ do
194
194
-- First make sure that we get a $/progress begin notification
195
195
skipManyTill Test. anyMessage $ do
196
196
x <- Test. message SMethod_Progress
@@ -235,7 +235,7 @@ spec = do
235
235
updater $ ProgressAmount (Just 75 ) (Just " step3" )
236
236
liftIO $ waitBarrier b3
237
237
238
- runSessionWithServer logger definition Test. defaultConfig Test. fullCaps " ." $ do
238
+ runSessionWithServer logger definition Test. defaultConfig Test. fullLatestClientCaps " ." $ do
239
239
Test. sendRequest SMethod_TextDocumentCodeLens (CodeLensParams (Just $ ProgressToken $ InR " hello" ) Nothing (TextDocumentIdentifier $ Uri " ." ))
240
240
241
241
-- First make sure that we get a $/progress begin notification
@@ -318,7 +318,7 @@ spec = do
318
318
ps = DidChangeWorkspaceFoldersParams ev
319
319
in Test. sendNotification SMethod_WorkspaceDidChangeWorkspaceFolders ps
320
320
321
- runSessionWithServer logger definition config Test. fullCaps " ." $ do
321
+ runSessionWithServer logger definition config Test. fullLatestClientCaps " ." $ do
322
322
changeFolders [wf1] []
323
323
changeFolders [wf2] [wf1]
324
324
0 commit comments