-
Notifications
You must be signed in to change notification settings - Fork 839
Changed cancellation strategy for project options #6723
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
Conversation
| try | ||
| // For now, disallow miscellaneous workspace since we are using the hacky F# miscellaneous files project. | ||
| if document.Project.Solution.Workspace.Kind = WorkspaceKind.MiscellaneousFiles then | ||
| reply.Reply(None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit braces. and 2 below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea make sense.
| } | ||
|
|
||
| let rec tryComputeOptions (project: Project) (cancellationToken: CancellationToken) = | ||
| let rec tryComputeOptions (project: Project) = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the comment:
// Because this code can be kicked off before the hack, HandleCommandLineChanges, occurs,
still valid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's still valid.
| try | ||
| // For now, disallow miscellaneous workspace since we are using the hacky F# miscellaneous files project. | ||
| if document.Project.Solution.Workspace.Kind = WorkspaceKind.MiscellaneousFiles then | ||
| if cancellationToken.IsCancellationRequested then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems as if cancellationToken is no longer passed in as an argument to tryComputeOptions so for my education where does this come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i see now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to pass the CT to calls to grab textversion and text. I should not have removed it.
KevinRansom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me ... nice work.
* Trying to fix script performance * Changed cancellation strategy * Added back cancellationToken
This should resolve some of the performance issues that we saw in scripts, #6250 .
We still have an issue with UI delays in the example presented by @kevmal , but it should be a lot better. I need to look into the UI delays more and figure out why that's happening.