aspnetcore/test/Microsoft.AspNetCore.Mvc.Ra...
N. Taylor Mullen d6f3a1bd22 Enable using directive IntelliSense auto-completion.
- Allow identical `@using` directives in the primary document. This means that if a user types `@using System` twice in the primary document (i.e. `Index.cshtml`) then we'll generate that using statement twice; this enables proper C# IntelliSense to light up on both using statements and allows auto-completion to work because there's no more magical distinction logic for Razor code that is in the current document.
- Prior to this change if you had two identical using statements in the same document one would be in no-mans land mapped to nothing (not C#, not HTML) and the other would be mapped to C#; the second a user differentiated the two statements (i.e. adding a `.`) we'd distinctify the using statements resulting in an invalid completion.
- This PR has an end-user impact where they will now receive the normal C# warning about having duplicate using. I treated this prior behavior more as a bug because we threw away the first using directive instance which impacted editing and in general was a silly thing to correct for the user.
- Added new integration test showing how using directives are not de-duplicated in the primary document.

#1255
2018-06-15 13:17:09 -07:00
..
IntegrationTests Enable using directive IntelliSense auto-completion. 2018-06-15 13:17:09 -07:00
Properties
TestFiles/IntegrationTests Enable using directive IntelliSense auto-completion. 2018-06-15 13:17:09 -07:00
AssemblyAttributeInjectionPassTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
InjectDirectiveTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
InjectTargetExtensionTest.cs
InstrumentationPassTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj Update samples and tests to target netcoreapp2.1 2017-11-14 09:45:28 -08:00
ModelDirectiveTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
ModelExpressionPassTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
MvcImportProjectFeatureTest.cs Catch 15.7 up with dev 2018-02-19 10:46:16 -08:00
MvcRazorTemplateEngineTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
MvcShim.cs Don't add the tag helper provider by default 2018-03-08 15:41:34 -08:00
MvcViewDocumentClassifierPassTest.cs Use checksum for classname if filepath is null 2018-06-11 08:25:57 -07:00
NamespaceDirectiveTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
PageDirectiveTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
RazorPageDocumentClassifierPassTest.cs Use checksum for classname if filepath is null 2018-06-11 08:25:57 -07:00
SourceMappingsSerializer.cs
TagHelperDescriptorExtensionsTest.cs
ViewComponentTagHelperDescriptorFactoryTest.cs
ViewComponentTagHelperDescriptorProviderTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
ViewComponentTagHelperPassTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
ViewComponentTagHelperTargetExtensionTest.cs
ViewComponentTypeVisitorTest.cs
xunit.runner.json