Skip to content

automatically open namespace on intellisense completion breaks (frequently) in scripts #16271

Description

@smoothdeveloper

In a script file:

#r "nuget: FSharp.Data"

let v = JsonV
image

results in :
image

Conservative fix would be to:

  • check we are in a script
  • check the last #r or #load directive based on insertion point
  • apply the same logic as when we are not in a script, but from there only

Ideally, it would also consider which assembly or F# file it is picked from and put the open closer to it than what this logic proposes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-CodeFixesCode fixes associated with diagnosticsBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    Projects

    Status
    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions