Skip to content

Intellisense triggered for the wrong position with backticks #15485

Closed

Description

@kerams

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.

image

Known workarounds

Avoid identifiers with backticks.

Related information

VS 17.7.0 Preview 2.0

Activity

  1. added this to the Backlog milestone on Jun 24, 2023
  2. kerams commented on Jun 24, 2023

    @kerams
    ContributorAuthor

    Perhaps a regression, not sure.

  3. vzarytovskii commented on Jun 24, 2023

    @vzarytovskii
    Member

    Huh. Interesting.

  4. added
    Impact-Medium
    and removed on Jul 3, 2023
  5. MangelMaxime commented on Apr 22, 2024

    @MangelMaxime
    Contributor

    I am unsure if this is the same bug but I also have issues with completion on properties containing using double backtick.

    CleanShot 2024-04-22 at 20 43 27

    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: easybuild-org/EasyBuild.FileSystemProvider#3

  6. vzarytovskii commented on Apr 22, 2024

    @vzarytovskii
    Member

    It seems we don't compensate (or overcompensate) for the backticks when we calculating range for the autocompletion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-AutoCompleteBugImpact-Medium

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions