Skip to content

Tooling does not offer to open namespace for attributes applied to method arguments of interfaces.. #8735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #15408
voroninp opened this issue Mar 17, 2020 · 1 comment
Labels
Area-LangService-CodeFixes Code fixes associated with diagnostics Feature Improvement
Milestone

Comments

@voroninp
Copy link
Contributor

voroninp commented Mar 17, 2020

Is your feature request related to a problem? Please describe.
I expect tooling to work consistently, but VS does not offer to open System.Runtime.InteropServices namespace for [<Optional>] and [<DefaultParameterValue>] attributes applied to method arguments.

This is actually not only about theses attributes, but a general issue.

module Bar = 
    [<AttributeUsage(AttributeTargets.Parameter)>]
    type MyAttribute() = inherit Attribute()

type IFoo =
    abstract bar: [<My>] value: string -> string

type Foo() =
    member this.Bar([<My>] value:string) = value

VS offers to open module for My in Foo, but fails to do so for IFoo

@psfinaki
Copy link
Member

Okay this still holds, I reclassified this as a feature improvement since we have a code fix for this, it just should have a broader application.

@psfinaki psfinaki mentioned this issue Jun 15, 2023
85 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-LangService-CodeFixes Code fixes associated with diagnostics Feature Improvement
Projects
Status: New
Development

No branches or pull requests

4 participants