Skip to content

Add symbol creation for an operator with a constraint #896

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

Closed
wants to merge 1 commit into from
Closed

Add symbol creation for an operator with a constraint #896

wants to merge 1 commit into from

Conversation

7sharp9
Copy link
Member

@7sharp9 7sharp9 commented Mar 4, 2019

This addresses a situaltion where if you request a tooltip for an operator with a constraint no symbol is returned due to:

Item.ImplicitOp(_, { contents = Some(TraitConstraintSln.FSMethSln(_, vref, _)) })

Being turned into a vanilla FSharpSymbol which has no real information about the symbol that the IDE can use.

@7sharp9
Copy link
Member Author

7sharp9 commented Mar 4, 2019

An corresponding issue was logged for ionide here: ionide/ionide-vscode-fsharp#1025

@goswinr
Copy link
Contributor

goswinr commented Mar 4, 2019

thanks, shouldn't this go to VF# first / too ?
https://github.com/Microsoft/visualfsharp/blob/master/src/fsharp/symbols/Symbols.fs

@7sharp9
Copy link
Member Author

7sharp9 commented Mar 4, 2019

@goswinr It can, but I've always committed here first.

KevinRansom pushed a commit to dotnet/fsharp that referenced this pull request Mar 9, 2019
This addresses a situaltion where if you request a tooltip for an operator with a constraint no symbol is returned due to:

Item.ImplicitOp(_, { contents = Some(TraitConstraintSln.FSMethSln(_, vref, _)) })
Being turned into a vanilla FSharpSymbol which has no real information about the symbol that the IDE can use.

An corresponding issue was logged for ionide here: ionide/ionide-vscode-fsharp#1025

Corresponding PR at FCS: fsharp/fsharp-compiler-docs#896
@baronfel
Copy link
Collaborator

Closing this because the associated VF# issue was merged.

@baronfel baronfel closed this Mar 22, 2019
baronfel pushed a commit to baronfel/FSharp.Compiler.Service that referenced this pull request Mar 22, 2019
This addresses a situaltion where if you request a tooltip for an operator with a constraint no symbol is returned due to:

Item.ImplicitOp(_, { contents = Some(TraitConstraintSln.FSMethSln(_, vref, _)) })
Being turned into a vanilla FSharpSymbol which has no real information about the symbol that the IDE can use.

An corresponding issue was logged for ionide here: ionide/ionide-vscode-fsharp#1025

Corresponding PR at FCS: fsharp#896
@7sharp9 7sharp9 deleted the AddSymbolForOperatorWithConstraint branch May 9, 2019 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants