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

Add cancellation to HtmlCopy GetAllClassificationSpans #243

Closed

Conversation

KirillOsenkov
Copy link
Member

Fixes #242
Fixes #239

@KirillOsenkov
Copy link
Member Author

Hmm I fear if clicking Cancel does nothing then cancellation token might not be checked too often:
#242 (comment)

Still I think it’s a good change to make but we need to keep thinking

@KirillOsenkov
Copy link
Member Author

KirillOsenkov commented Mar 6, 2021

@CyrusNajmabadi @olegtk

using (var waitContext = WaitHelper.Wait(_waitIndicator, "HTML Copy", "Formatting document for copying"))
try
{
using (var waitContext = WaitHelper.Wait(_waitIndicator, "HTML Copy", "Formatting document for copying"))
Copy link
Member

Choose a reason for hiding this comment

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

Do we know which component doesn't react to this cancellation token? I think I've seen a comment saying Cancel button doesn't work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes that's what worries me too. Eventually it's the taggers and the aggregate tagger and GetTags().

Another option is to drop AccurateTagger support entirely here. If a regular copy is working fine for them, this should too.

Copy link
Member

Choose a reason for hiding this comment

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

I think @gundermanc has UI delay bug related to this, where LSP client makes remote call to get this information.
I'd suggest dropping IAccurateTagger altogether. The impact is that in this case you would get what you see, which should be good enough.

Copy link
Member

Choose a reason for hiding this comment

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

Btw, we build PPT from an internal repo for legacy reasons

Copy link
Member Author

Choose a reason for hiding this comment

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

I rewrote it to just delete IAccurateTagger

It is causing unacceptably long delays
@KirillOsenkov KirillOsenkov deleted the dev/kirillo/timeout branch March 20, 2021 02:12
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.

VS 2019 intermittently crashing on HTML copy Nagging Formatting the document for copying popups
2 participants