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

Convert OCE to empty value on certain VS operations #17906

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Conversation

0101
Copy link
Contributor

@0101 0101 commented Oct 22, 2024

Description

There are OperationCancelledExceptions in telemetry originating from FSharp project options not found. in AddSemanticClassificationsAsync and GetBlockStructureAsync operations.

There's not much we can do without options but maybe we can just return empty results instead of propagating OCE further up.

One reason we don't have options is that when project is loading and an F# file is already open VS asks as for semantic classification, block structure (and some other things) using a MiscellaneousFiles workspace. There could potentially be other cases.

This proposed change converts all OCEs in those operations to empty results, unless cancellation has been requested by the caller through the CT they passed us.

Copy link
Contributor

github-actions bot commented Oct 22, 2024

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@0101 0101 linked an issue Oct 22, 2024 that may be closed by this pull request
@0101 0101 added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label Oct 22, 2024
@0101 0101 marked this pull request as ready for review October 22, 2024 14:44
@0101 0101 requested a review from a team as a code owner October 22, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Distracting and not helpful error toast in VS on OperationCanceled
4 participants