Skip to content
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

Remove blocking members from FSharpDeclarationListItem #9187

Merged
merged 1 commit into from
May 15, 2020

Conversation

cartermp
Copy link
Contributor

@cartermp cartermp commented May 14, 2020

The asynchronous versions of these members are what are used in tools. These legacy members will just block on the caller for up to 5 seconds which is madness. Also removed all the comments about this, since those stem from at least F# 3.0 days and refer to behavior in Visual Studio that has long since been outdated (at least since VS 2017 when we replaced the language service host, and certainly in VS 2019 when all completion was made asynchronous by default). No editor tooling should be calling these members.

@@ -183,7 +183,7 @@ type internal FSharpDeclarations_DEPRECATED(documentationBuilder, declarations:
let decls = trimmedDeclarations filterText
if (index >= 0 && index < decls.Length) then
let buf = Text.StringBuilder()
XmlDocumentation.BuildDataTipText_DEPRECATED(documentationBuilder, TaggedText.appendTo buf, TaggedText.appendTo buf, decls.[index].StructuredDescriptionText)
XmlDocumentation.BuildDataTipText_DEPRECATED(documentationBuilder, TaggedText.appendTo buf, TaggedText.appendTo buf, decls.[index].StructuredDescriptionTextAsync |> Async.RunSynchronously)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the usage is only in FSharpDeclarations_DEPRECATED - which was deprecated 2017 ;-)

@cartermp
Copy link
Contributor Author

@TIHan pls approve

Copy link
Member

@KevinRansom KevinRansom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Copy link
Contributor

@TIHan TIHan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This existed

@TIHan TIHan merged commit 8e7a1e6 into dotnet:master May 15, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
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.

4 participants