dotnet / dotnet/fsharp

[F#] Go to definition does not display attributes of the decompiled type

Open
#13,225 0 comments 0 reactions 0 assignees View on GitHub
Area-LangService-Navigation Feature Improvement Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/F-Go-to-definition-does-not-display-a/10038353)._

---
If you open the definition of any attribute in C# you will see
``` C#
//
// Summary:
// Indicates that a class can be serialized. This class cannot be inherited.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Delegate, Inherited = false)]
public sealed class SerializableAttribute : Attribute
{
//
// Summary:
// Initializes a new instance of the System.SerializableAttribute class.
public SerializableAttribute();
}
```

but in F# you will not see attributes
``` F#
namespace System

open System

///Indicates that a class can be serialized. This class cannot be inherited.
type SerializableAttribute =
inherit Attribute

///Initializes a new instance of the class.
new: unit -> unit
```

Fix that, please

---
### Original Comments

#### XperiAndri on 5/11/2022, 04:29 PM:

(private comment, text removed)
#### Feedback Bot on 5/12/2022, 05:11 AM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.