aspnetcore/test/Microsoft.AspNetCore.Razor....
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
..
CodeGeneration Generate line pragmas even for whitespace. 2018-06-11 14:48:38 -07:00
Extensions Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
IntegrationTests Added a taghelpers and imports overload to Process and ProcessDesignTime 2018-05-22 11:40:21 -07:00
Intermediate
Legacy Add partial parsing for parenthesis 2018-06-15 11:22:03 -07:00
Properties
TestFiles Generate line pragmas even for whitespace. 2018-06-11 14:48:38 -07:00
BoundAttributeDescriptorExtensionsTest.cs
DefaultAllowedChildTagDescriptorBuilderTest.cs
DefaultBoundAttributeDescriptorBuilderTest.cs
DefaultDocumentClassifierPassTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
DefaultItemCollectionTest.cs
DefaultRazorCSharpLoweringPhaseTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
DefaultRazorCodeDocumentTest.cs
DefaultRazorDiagnosticTest.cs
DefaultRazorDirectiveClassifierPhaseTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
DefaultRazorDocumentClassifierPhaseTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
DefaultRazorEngineBuilderTest.cs
DefaultRazorEngineTest.cs
DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs Enable using directive IntelliSense auto-completion. 2018-06-15 13:17:09 -07:00
DefaultRazorIntermediateNodeLoweringPhaseTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
DefaultRazorOptimizationPhaseTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
DefaultRazorParsingPhaseTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
DefaultRazorProjectEngineBuilderTest.cs
DefaultRazorProjectEngineIntegrationTest.cs Added a taghelpers and imports overload to Process and ProcessDesignTime 2018-05-22 11:40:21 -07:00
DefaultRazorProjectEngineTest.cs
DefaultRazorProjectFileSystemTest.cs
DefaultRazorProjectItemTest.cs
DefaultRazorSyntaxTreePhaseTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
DefaultRazorTagHelperBinderPhaseTest.cs Added a taghelpers and imports overload to Process and ProcessDesignTime 2018-05-22 11:40:21 -07:00
DefaultRequiredAttributeDescriptorBuilderTest.cs
DirectiveDescriptorBuilderExtensionsTest.cs
DirectiveDescriptorTest.cs
DirectiveRemovalOptimizationPassTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
DirectiveTokenEditHandlerTest.cs
DocumentClassifierPassBaseTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
HtmlConventionsTest.cs
HtmlNodeOptimizationPassTest.cs
LargeTextSourceDocumentTest.cs
Microsoft.AspNetCore.Razor.Language.Test.csproj Upgrade to netcoreapp22 2018-05-08 15:22:54 -07:00
RazorCodeDocumentExtensionsTest.cs Added a taghelpers and imports overload to Process and ProcessDesignTime 2018-05-22 11:40:21 -07:00
RazorCodeDocumentTest.cs
RazorDiagnosticDescriptorTest.cs
RazorDiagnosticTest.cs
RazorEngineBuilderExtensionsTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
RazorEngineTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
RazorParserFeatureFlagsTest.cs
RazorProjectEngineBuilderExtensionsTest.cs
RazorProjectEngineFeatureBaseTest.cs
RazorProjectEngineTest.cs
RazorProjectItemTest.cs
RazorProjectTest.cs
RazorSourceDocumentTest.cs
RazorSyntaxTreeTest.cs
RazorTemplateEngineTest.cs Obsoleted IRazorEngineBuilder APIs 2018-04-13 12:35:53 -07:00
SourceChangeTest.cs
SourceLocationTest.cs
SourceSpanTest.cs
StreamSourceDocumentTest.cs
StringSourceDocumentTest.cs
TagHelperBinderTest.cs
TagHelperDescriptorBuilderTest.cs
TagHelperDescriptorExtensionsTest.cs
TagHelperMatchingConventionsTest.cs
TagHelperParseTreeRewriterTests.cs
TestRazorProject.cs
VirtualRazorProjectFileSystemTest.cs
xunit.runner.json