-
Notifications
You must be signed in to change notification settings - Fork 4k
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 options to enable/disable nuget search. #11023
Conversation
Tagging @dotnet/roslyn-ide |
test vsi please |
@dotnet-bot retest prtest/win/vsi/p2 please |
using Moq; | ||
using Roslyn.Test.Utilities; | ||
using Xunit; | ||
|
||
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Diagnostics.AddUsing | ||
{ | ||
using FixProviderData = Tuple<IPackageInstallerService, IPackageSearchService>; | ||
using CodeAnalysis.Shared.Options; |
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: Why are these inside the namespace?
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.
I fixed.
@@ -8,6 +8,7 @@ | |||
using Microsoft.CodeAnalysis.CodeActions; | |||
using Microsoft.CodeAnalysis.Host; | |||
using Microsoft.CodeAnalysis.Packaging; | |||
using Microsoft.CodeAnalysis.SymbolSearch; |
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.
Why is this needed here?
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.
Types moved out of the packaging namespace into this new namespace.
@@ -10,6 +9,8 @@ | |||
using Microsoft.CodeAnalysis.Packaging; | |||
using Microsoft.CodeAnalysis.Shared.Extensions; | |||
using Roslyn.Utilities; | |||
using Microsoft.CodeAnalysis.Shared.Options; | |||
using Microsoft.CodeAnalysis.SymbolSearch; |
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.
Sort usings
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.
Fixed.
👍 |
[ExportOptionProvider, Shared] | ||
internal class AddImportOptionsProvider : IOptionProvider | ||
{ | ||
private readonly IEnumerable<IOption> _options = ImmutableArray.Create<IOption>( |
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.
I'm sad if the generic method needs <IOption>
😄
<value>Import Directives</value> | ||
</data> | ||
<data name="Option_Suggest_imports_for_types_in_NuGet_packages" xml:space="preserve"> | ||
<value>Suggest imports for types in NuGet packages</value> |
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.
accelerator key?
Test vsi please |
👍 |
retest prtest/win/vsi/p2 please |
retest prtest/win/vsi/p3 please |
test prtest/win/vsi/p2 please |
No description provided.