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

IWaitIndicator #264

Open
scottcantwell opened this issue Apr 14, 2023 · 2 comments
Open

IWaitIndicator #264

scottcantwell opened this issue Apr 14, 2023 · 2 comments

Comments

@scottcantwell
Copy link

Getting an error message in the source code stating that the type or namespoace cannot be found for IWaitIndicator.

Where is IWaitIndicator located?

 public sealed class FormattedStringBuilder
    {
        private readonly HtmlMarkupProvider _htmlMarkupProvider;
        private readonly IClassifier _classifier;
        private readonly IClassificationType _defaultClassificationType;
        private readonly IWaitIndicator _waitIndicator;
@olegtk
Copy link
Member

olegtk commented Apr 14, 2023

IWaitIndicator is not officially supported, it's in Microsoft.VisualStudio.Text.Internal.dll. Try officially supported IUIThreadOperationExecutor instead, it replaced it.

@scottcantwell
Copy link
Author

Thank You.

What would be the replacement for the WaitHandle.Wait() method?

image

 using (var waitContext = WaitHelper.Wait(_waitIndicator, "HTML Copy", "Formatting document for copying"))
                {
                    return accurateClassifier.GetAllClassificationSpans(parentSpan, waitContext.CancellationToken);
                }

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

No branches or pull requests

2 participants