Intellisense triggered for the wrong position with backticks
Repro steps
let ``type`` (): unit = i
Press ctrl-space on i.
Expected behavior
Completions for i are shown.
Actual behavior
Completions for ``type`` (supposedly, if the panel's position is anything to go by) are shown.
Known workarounds
Avoid identifiers with backticks.
Related information
VS 17.7.0 Preview 2.0
Perhaps a regression, not sure.
Huh. Interesting.
I am unsure if this is the same bug but I also have issues with completion on properties containing using double backtick.
Code for reproduction:
type SubType() =
member this.test = "dwdw"
type Test() =
member this.``Sub.Type`` : SubType = SubType()
let t = Test()
My version is Visual Studio ARM Version 17.9.6
Original report: https://github.com/easybuild-org/EasyBuild.FileSystemProvider/issues/3
It seems we don't compensate (or overcompensate) for the backticks when we calculating range for the autocompletion.