Commit Graph

1313 Commits

Author SHA1 Message Date
N. Taylor Mullen aa980fc67c Roslyn-ize our tooling contracts.
- Added `ILanguageServiceFactory` types for all serviceable contracts.
- Maintained binary compatibility by copy/pasting existing services into a Legacy folder.
- Added a Workspaces.Test project since their implementations moved.
- Updated binary incompatible version of `RazorSyntaxFactsService` to not depend on VisualStudio. Added an extension type to the VS.LanguageServices.Razor project to enable easy-access from VisualStudio.

Below on refers to the binary incompatible copies.
Core services that were **entirely** moved from VisualStudio.Razor => Razor.Workspaces are as follows:
- `RazorSyntaxFactsService`, this included mutating the API to not depend on VisualStudio and moving some primitive types such as `AcceptedCharacters`.
- `TagHelperCompletionService`
- `TagHelperFactsService`
These all have a `ServiceLayer` of `Editor`.

Bits that were partially moved:
- `RazorTemplateEngineFactoryService`. The Default implementation and its corresponding factory still live in VisualStudio.Razor. This way Razor.Workspaces can get by without a reference to Mvc.Razor.Extensions.
- `ITagHelperResolver` used to exist in VisualStudio.Razor. Removed the type and replaced its usage with the already-existing `TagHelperResolver` type in Razor.Workspaces. Both contracts were nearly identical.
These all have a `ServiceLayer` of `Default`.

#1260
2017-08-02 16:58:44 -07:00
John Luo 69d68ae62b Ensure fallback to curl after failed wget 2017-08-02 14:33:31 -07:00
John Luo 08dbc2b4a7 Update __get_remote_file logic 2017-08-02 12:44:47 -07:00
Ajay Bhargav Baaskaran ce689b0449 Fixed DebuggerDisplay in DefaultTagHelperContent
- Also refactored it in few other places
2017-08-01 12:13:55 -07:00
Ajay Bhargav Baaskaran 31e9710186 Added unit test for DefaultTagHelperOptimizationPass 2017-07-31 17:12:20 -07:00
Ajay Bhargav Baaskaran ee64ee7e1a Removed warning in ViewImports integration test 2017-07-28 16:59:35 -07:00
Nate McMaster 244c6ddccd Fix syntax warning when running build.sh on older versions of bash
[ci skip]
2017-07-26 10:28:47 -07:00
Nate McMaster 81c596ae58 Update bootstrappers to use the compiled version of KoreBuild
[ci skip]
2017-07-25 16:34:22 -07:00
Pranav K b32db148ea Updating to InternalAspNetCoreSdkVersion 2.1.1-* 2017-07-25 15:14:33 -07:00
Ryan Brandenburg a509de0eb5 Set AspNetCoreVersion 2017-07-24 17:58:18 -07:00
Ryan Brandenburg 643efbe660 Change version on Binding redirects 2017-07-24 14:50:30 -07:00
Ryan Brandenburg e7a53597f7 2.0.0-rtm to 2.1.0-preview1 2017-07-24 12:35:13 -07:00
N. Taylor Mullen 271de04d15 Revert "Add Roslyn feed to work around missing RTM packages."
This reverts commit 28292086ec.
2017-07-21 16:08:47 -07:00
Mike Harder b0fa49b9e1 Comment to re-enable package downgrade warnings (#1578) 2017-07-20 13:45:41 -07:00
Mike Harder 35c8da94bf Temporarily disable package downgrade warnings (#1576)
- Revert when RoslynDevVersion >= RoslynVersion
2017-07-20 13:13:04 -07:00
Pranav K b76a118638 Merge branch 'rel/2.0.0' into dev 2017-07-20 11:29:35 -07:00
Pranav K 3f26451bc7 Revert "Merge branch 'dev' into rel/2.0.0"
This reverts commit 8ff9ef7b4c, reversing
changes made to c02d701e6e.
2017-07-20 11:28:32 -07:00
Mike Harder a92317b2ff Merge pull request #1575 from aspnet/rel/2.0.0
Update Roslyn to 2.3.1 (#1574)
2017-07-20 10:55:51 -07:00
Mike Harder 8ff9ef7b4c Merge branch 'dev' into rel/2.0.0 2017-07-20 10:55:23 -07:00
Mike Harder c02d701e6e Update Roslyn to 2.3.1 (#1574) 2017-07-20 10:48:42 -07:00
N. Taylor Mullen 184ab74e68 Don't render view attributes when in design time.
- This is a temporary work around that's needed until we have multi-targeting support in https://github.com/aspnet/Razor/issues/1535.
2017-07-19 09:56:51 -07:00
N. Taylor Mullen 006b4651da Change product code to work with editor expectations.
- Descriptor providers should not be pushing `null` descriptors into the overall list of `TagHelperDescriptor`s; this causes null refs on the editor side of things at design time.
- Expose `FilePath` on `RazorEditorParser` for the editor. The editor currenlty uses the `RazorEditorParser` as a place to hold some state about the Razor document.
2017-07-19 09:56:51 -07:00
N. Taylor Mullen 8fac9141d8 Revert Roslyn dev dependency increase.
- This is needed for the Razor editor to work inside of VS. Once a version of VS is published that supports 2.6 + then we can undo this change.
2017-07-19 09:56:51 -07:00
Pranav K 6c7859bfba Generate full pdbs for desktop packages
Fixes #1548
2017-07-19 09:39:45 -07:00
Ryan Nowak 8bbfecb0da Merge branch 'rel/2.0.0' into dev 2017-07-17 13:17:03 -07:00
Ryan Nowak 59d3fb433b Fix #1555
Revert validation that file-scoped directives appear before HTML or
code.
2017-07-17 11:24:58 -07:00
N. Taylor Mullen 2a69b50a64 Change Razor.Test.Common to not act like an executable.
- There's no need for this test library to have a conditional TFM because it's never run under the desktop TFM when crossplat.
2017-07-13 14:58:27 -07:00
N. Taylor Mullen 28292086ec Add Roslyn feed to work around missing RTM packages. 2017-07-12 17:01:16 -07:00
N. Taylor Mullen f8d43853f8 Re-introduce RazorEditorParser.
- Revived `RazorEditorParser`.
- Made `PartialParseResult` internal and renamed it to `PartialParseResultInternal`. This fell in line with other syntax tree types.
- Moved the `RazorEditorParser` implementation away from `TextChange` and `ITextBuffer`. Instead it now relies on `SourceChange` and the VS contract `ITextSnapshot`.
- Added `RazorEditorParserTest` to ensure the changes in implementation did not impact previous functionality.
- Removed some obvious tests that unnecessarily re-tested behavior that was already verified.
- Updated tests.
- Moved several Language.Test types to the common test project so they could be reused.

#1259
2017-07-12 17:01:16 -07:00
Pranav K 0d69d98933 Merge pull request #1546 from aspnet/rel/2.0.0
Update to RoslynDev 2.6.0-* packages
2017-07-12 14:07:05 -07:00
Pranav K c812f9d885 Update to RoslynDev 2.6.0-* packages 2017-07-12 14:06:43 -07:00
Pranav K f939480372 Merge remote-tracking branch 'origin/rel/2.0.0' into dev 2017-07-12 09:06:17 -07:00
Pranav K 8a51fdb39d Revert "Update to Roslyn 2.3.0"
This reverts commit dbf57b9268.
2017-07-12 09:04:27 -07:00
Pranav K bc12fccd4d Merge pull request #1544 from aspnet/rel/2.0.0
Update to Roslyn 2.3.0
2017-07-12 08:01:20 -07:00
Pranav K dbf57b9268 Update to Roslyn 2.3.0 2017-07-12 08:00:50 -07:00
Mike Harder 452e3ccfb0 Merge remote-tracking branch 'origin/rel/2.0.0' into dev 2017-07-11 16:35:04 -07:00
Mike Harder 01fe818dcd Update dependencies to match Visual Studio 15.3 (#1534) 2017-07-11 16:34:32 -07:00
Mike Harder 121c20ef26 Merge remote-tracking branch 'origin/rel/2.0.0' into dev 2017-07-11 15:11:46 -07:00
Mike Harder b8f550fdf6 Enable Travis and AppVeyor in "rel" branches (#1539) 2017-07-11 15:11:12 -07:00
Mike Harder 6361491961 Merge remote-tracking branch 'origin/rel/2.0.0' into dev 2017-07-10 18:32:55 -07:00
Mike Harder aebb841e41 Upgrade Roslyn to 2.3.0-beta4-* (#1533) 2017-07-10 17:28:23 -07:00
Ryan Brandenburg cd81c2a48f Skip first time experience on Appveyor 2017-07-10 15:24:33 -07:00
Pranav K 3d62e8e08b Updating KoreBuild branch 2017-07-10 11:58:00 -07:00
Pranav K f8d5c0ec8d Merge branch 'rel/2.0.0' into dev 2017-07-10 11:58:00 -07:00
Pranav K f0794bfe80 Branching for 2.0.0 rtm 2017-07-10 11:45:30 -07:00
Pranav K 2a39052100 Merge branch 'rel/2.0.0' into dev 2017-07-10 11:45:30 -07:00
Ryan Nowak 1d5dfcc6b4 Update our VSIX version to 15.5 2017-07-10 08:08:09 -07:00
N. Taylor Mullen 99ff9d44a3 Update repo to utilize ApiCheck.
- Re-enabled api check for `Microsoft.AspNetCore.Razor` and `Microsoft.AspNetCore.Razor.Runtime`. This resulted in me adding known breaking changes for the packages.
- Added empty baseline files for `Microsoft.AspNetCore.Razor.Language`, `Microsoft.AspNetCore.Mvc.Razor.Extensions` and `Microsoft.CodeAnalysis.Razor`.
- Disabled ApiCheck for `Microsoft.CodeAnalysis.Razor.Workspaces`, `Microsoft.CodeAnalysis.Remote.Razor`, `RazorPageGenerator` and `Microsoft.VisualStudio.LanguageServices.Razor` to prevent ApiCheck warnings about missing baselines.

#1107
2017-07-07 15:59:36 -07:00
Ajay Bhargav Baaskaran b70815e317 Made `RazorCodeGenerationOptionsBuilder.DesignTime` getter only
- Made RazorCodeGenerationOptions consistent with RazorParserOptions
2017-07-07 14:41:53 -07:00
Ryan Nowak 9c0a8a5c96 Rename properties on taghelper nodes 2017-07-07 11:32:05 -07:00