-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Reenable/Fix integration test reporting #79789
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
d13c6ff to
6fede59
Compare
Also fix newly failing tests
6fede59 to
398c879
Compare
| private void LoadLanguageClient() | ||
| { | ||
| using var token = _asynchronousOperationListener.BeginAsyncOperation(nameof(LoadLanguageClient)); | ||
| var token = _asynchronousOperationListener.BeginAsyncOperation(nameof(LoadLanguageClient)); |
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.
fixes double dispose exception I saw debugging the integration tests
src/EditorFeatures/Core/LanguageServer/AlwaysActiveLanguageClientEventListener.cs
Show resolved
Hide resolved
| await TestServices.Shell.ExecuteCommandAsync(VSConstants.VSStd2KCmdID.ToggleConsumeFirstCompletionMode, cancellationToken); | ||
| if (await IsUseSuggestionModeOnAsync(forDebuggerTextView, cancellationToken) != value) | ||
| await UpdateUseSuggestionModeAsync(); | ||
| var useSuggestionMode = await IsUseSuggestionModeOnAsync(forDebuggerTextView, cancellationToken); |
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.
These test started failing to set the option when resetting options between tests. Talked to the editor - the olecommand version only works with an active text view which we may not have at that point.
Instead we can just use the editor API to set the option, like we do when we read it.
Retry logic broke when we updated the test runner. This caused tests that failed to never get reported as failed if they were retried.
Fix was made in the extension testing library, also updated tests to fix new failures.