aspnetcore/test
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
..
Microsoft.AspNetCore.Mvc.Razor.Extensions.Test Enable using directive IntelliSense auto-completion. 2018-06-15 13:17:09 -07:00
Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test Use checksum for classname if filepath is null 2018-06-11 08:25:57 -07:00
Microsoft.AspNetCore.Razor.Design.Test Corrected a typo 2018-06-06 01:59:42 -07:00
Microsoft.AspNetCore.Razor.Language.Test Enable using directive IntelliSense auto-completion. 2018-06-15 13:17:09 -07:00
Microsoft.AspNetCore.Razor.Runtime.Test
…
Microsoft.AspNetCore.Razor.Test
…
Microsoft.AspNetCore.Razor.Test.Common Upgrade to netcoreapp22 2018-05-08 15:22:54 -07:00
Microsoft.AspNetCore.Razor.Test.MvcShim Upgrade to netcoreapp22 2018-05-08 15:22:54 -07:00
Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib
…
Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X Upgrade to netcoreapp22 2018-05-08 15:22:54 -07:00
Microsoft.AspNetCore.Razor.Tools.Test Upgrade to netcoreapp22 2018-05-08 15:22:54 -07:00
Microsoft.CodeAnalysis.Razor.Test
…
Microsoft.CodeAnalysis.Razor.Workspaces.Test Added a taghelpers and imports overload to Process and ProcessDesignTime 2018-05-22 11:40:21 -07:00
Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common
…
Microsoft.VisualStudio.Editor.Razor.Test Add partial parsing for parenthesis 2018-06-15 11:22:03 -07:00
Microsoft.VisualStudio.Editor.Razor.Test.Common Track the open/closed state of documents 2018-05-11 08:18:08 -07:00
Microsoft.VisualStudio.LanguageServices.Razor.Test Rename a file 2018-06-06 09:30:24 -07:00
Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test Track the open/closed state of documents 2018-05-11 08:18:08 -07:00
RazorPageGenerator.Test Upgrade to netcoreapp22 2018-05-08 15:22:54 -07:00
testapps Pass versions using MSBuild template instead of importing dependencies.props 2018-06-05 11:33:46 -07:00
Directory.Build.props Upgrade to netcoreapp22 2018-05-08 15:22:54 -07:00