@@ -178,7 +178,7 @@ semanticTokensFullDeltaTests :: TestTree
178
178
semanticTokensFullDeltaTests =
179
179
testGroup " semanticTokensFullDeltaTests" $
180
180
[ testCase " null delta since unchanged" $ do
181
- let file1 = " TModula𐐀bA .hs"
181
+ let file1 = " TModuleA .hs"
182
182
let expectDelta = InR (InL (SemanticTokensDelta (Just " 1" ) [] ))
183
183
Test.Hls. runSessionWithServerInTmpDir def semanticTokensPlugin (mkFs $ FS. directProjectMulti [file1]) $ do
184
184
doc1 <- openDoc file1 " haskell"
@@ -188,7 +188,7 @@ semanticTokensFullDeltaTests =
188
188
liftIO $ delta @?= expectDelta
189
189
190
190
, testCase " add tokens" $ do
191
- let file1 = " TModula𐐀bA .hs"
191
+ let file1 = " TModuleA .hs"
192
192
let expectDelta = InR (InL (SemanticTokensDelta (Just " 1" ) [SemanticTokensEdit 20 0 (Just [2 ,0 ,3 ,8 ,0 ])]))
193
193
-- r c l t m
194
194
-- where r = row, c = column, l = length, t = token, m = modifier
@@ -207,7 +207,7 @@ semanticTokensFullDeltaTests =
207
207
liftIO $ delta @?= expectDelta
208
208
209
209
, testCase " remove tokens" $ do
210
- let file1 = " TModula𐐀bA .hs"
210
+ let file1 = " TModuleA .hs"
211
211
let expectDelta = InR (InL (SemanticTokensDelta (Just " 1" ) [SemanticTokensEdit 0 20 (Just [] )]))
212
212
-- delete all tokens
213
213
Test.Hls. runSessionWithServerInTmpDir def semanticTokensPlugin (mkFs $ FS. directProjectMulti [file1]) $ do
@@ -229,7 +229,7 @@ semanticTokensTests :: TestTree
229
229
semanticTokensTests =
230
230
testGroup " other semantic Token test" $
231
231
[ testCase " module import test" $ do
232
- let file1 = " TModula𐐀bA .hs"
232
+ let file1 = " TModuleA .hs"
233
233
let file2 = " TModuleB.hs"
234
234
Test.Hls. runSessionWithServerInTmpDir def semanticTokensPlugin (mkFs $ FS. directProjectMulti [file1, file2]) $ do
235
235
doc1 <- openDoc file1 " haskell"
@@ -245,14 +245,14 @@ semanticTokensTests =
245
245
246
246
result <- docSemanticTokensString def doc2
247
247
let expect = unlines [
248
- " 3:8-18 TModule \" TModula \\ 66560bA \" "
249
- , " 4:18-28 TModule \" TModula \\ 66560bA \" "
248
+ " 3:8-16 TModule \" TModuleA \" "
249
+ , " 4:18-26 TModule \" TModuleA \" "
250
250
, " 6:1-3 TVariable \" go\" "
251
251
, " 6:6-10 TDataConstructor \" Game\" "
252
252
, " 8:1-5 TVariable \" a\\ 66560bb\" "
253
- , " 8:8-19 TModule \" TModula \\ 66560bA .\" "
254
- , " 8:19-22 TRecordField \" a\\ 66560b\" "
255
- , " 8:23-25 TVariable \" go\" "
253
+ , " 8:8-17 TModule \" TModuleA .\" "
254
+ , " 8:17-20 TRecordField \" a\\ 66560b\" "
255
+ , " 8:21-23 TVariable \" go\" "
256
256
]
257
257
liftIO $ result @?= expect,
258
258
goldenWithSemanticTokensWithDefaultConfig " mixed constancy test result generated from one ghc version" " T1" ,
0 commit comments