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 options to enable/disable nuget search. #11023

Merged
merged 26 commits into from
May 4, 2016

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi
Copy link
Member Author

Tagging @dotnet/roslyn-ide

@CyrusNajmabadi
Copy link
Member Author

test vsi please

@CyrusNajmabadi
Copy link
Member Author

@dotnet-bot retest prtest/win/vsi/p2 please
// Previous failure: http://dotnet-ci.cloudapp.net/job/dotnet_roslyn_prtest_win_vsi_p2/715/
// Retest reason: #11035

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;
Copy link
Member

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?

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 fixed.

@@ -8,6 +8,7 @@
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Packaging;
using Microsoft.CodeAnalysis.SymbolSearch;
Copy link
Member

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?

Copy link
Member Author

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;
Copy link
Member

Choose a reason for hiding this comment

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

Sort usings

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@Pilchie
Copy link
Member

Pilchie commented May 3, 2016

👍

[ExportOptionProvider, Shared]
internal class AddImportOptionsProvider : IOptionProvider
{
private readonly IEnumerable<IOption> _options = ImmutableArray.Create<IOption>(
Copy link
Member

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>
Copy link
Member

Choose a reason for hiding this comment

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

accelerator key?

@CyrusNajmabadi
Copy link
Member Author

Test vsi please

@DustinCampbell
Copy link
Member

👍

@CyrusNajmabadi
Copy link
Member Author

retest prtest/win/vsi/p2 please

@CyrusNajmabadi
Copy link
Member Author

retest prtest/win/vsi/p3 please

@CyrusNajmabadi
Copy link
Member Author

test prtest/win/vsi/p2 please

@CyrusNajmabadi CyrusNajmabadi merged commit 3379fcb into dotnet:master May 4, 2016
@CyrusNajmabadi CyrusNajmabadi deleted the usingOptions branch May 4, 2016 20:14
@CyrusNajmabadi CyrusNajmabadi restored the usingOptions branch May 30, 2016 21:04
@CyrusNajmabadi CyrusNajmabadi deleted the usingOptions branch January 25, 2020 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants