-
-
Notifications
You must be signed in to change notification settings - Fork 401
Closed
Labels
Description
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.
Version: 1.54.2 (user setup)
Commit: fd6f3bce6709b121a895d042d343d71f317d74e7
Date: 2021-03-11T00:56:19.848Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19041
Extension v1.2.0