Skip to content

Commit 7ff1350

Browse files
committed
Update an Old regression test
For proper rename we now span according to cursor position. if cursor on quilified name then we cannot rename, else we rename.
1 parent 689f6e4 commit 7ff1350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • plugins/hls-rename-plugin/test

plugins/hls-rename-plugin/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ prepareRenameTests = testGroup "PrepareRename"
4949
void waitForBuildQueue
5050
result <- prepareRename doc (Position 10 16)
5151
liftIO $ result @?=
52-
InL (PrepareRenameResult (InL (Range (Position 10 14) (Position 10 19))))
52+
InL (PrepareRenameResult (InL (Range (Position 10 16) (Position 10 19))))
5353

5454
, testCase "Non-renameable position" $ runRenameSession "" $ do
5555
doc <- openDoc "PrepareRename.hs" "haskell"

0 commit comments

Comments
 (0)