You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using "Change All Occurrences (CTRL+F2)" it appears to match too much. It looks like it's doing a basic "search/replace" rather than matching on the selected symbol.
Code to reproduce
module Main where
import qualified Data.Time as Time ( Day, fromGregorian )
data Day = Day Int Int Int
myDay :: Day
myDay = Day 2021 3 14
myRealDay :: Time.Day
myRealDay = Time.fromGregorian 2021 3 14
main :: IO ()
main = putStrLn "Hello, Haskell!"
Place the caret on the data definition of Day. Notice that only the relevant symbols are now highlighted by the editor (ie. the data definition and the type declaration of myDay).
Now hit CTRL+F2. Notice that now all simple text matches of Day are selected and updated when changing the text.
I've moved the issue to haskell-language-server as the bad behaviour is caused by the server as @fendor mentioned.
The main issue about add renaming (via retrie plugin) would be: #282
When using "Change All Occurrences (CTRL+F2)" it appears to match too much. It looks like it's doing a basic "search/replace" rather than matching on the selected symbol.
Code to reproduce
Place the caret on the
data
definition ofDay
. Notice that only the relevant symbols are now highlighted by the editor (ie. thedata
definition and the type declaration ofmyDay
).Now hit CTRL+F2. Notice that now all simple text matches of
Day
are selected and updated when changing the text.Extension v1.2.0
output.txt
The text was updated successfully, but these errors were encountered: