-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Move classification tests to new framework #65734
Conversation
{ | ||
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); | ||
var dte = await GetRequiredGlobalServiceAsync<SDTE, EnvDTE.DTE>(cancellationToken); | ||
dte.ExecuteCommand(commandName, argument); |
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.
@sharwell wanted to check with you if this was appropriate - this is how the old framework did it, but the new framework uses a different method - https://github.com/microsoft/vs-extension-testing/blob/d460a813832a479f21ec0d076de213e6a1a5ccae/src/Microsoft.VisualStudio.Extensibility.Testing.SourceGenerator.UnitTests/Resources/TestGenerationForVS2022/ShellInProcess1.g.cs#L61
However I didn't see (or understand perhaps) a way to pass args in the way that the new framework is doing it.
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.
The new approach intentionally avoids DTE. We can update it to support arguments tomorrow. 👍
ed4123e
to
c5bb21b
Compare
This reverts commit a07c343.
No description provided.