Skip to content

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

Closed

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.

Activity

  1. added this to the Backlog milestone on Nov 13, 2023
  2. added
    Area-LangService-CodeFixes
    Impact-Medium
    and removed on Nov 27, 2023
  3. added a commit that references this issue on Jun 2, 2026
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-CodeFixesBugImpact-Medium

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions