Commit Graph

22 Commits

Author SHA1 Message Date
Ryan Nowak c37dada0dc Flow FileKind from project items -> code document
This is a bit of a rework of how we initially set this up, but with more
forethought to how this will work in the project system. I have not yet
surfaced this through VS.

My immediate next step is to light up the component integration tests
and something like this is on the critical path to get that work since
we need a way to specify in tests that a document should be treated as
a component.
\n\nCommit migrated from 6b81da3f02
2018-12-18 22:34:14 -08:00
Ryan Nowak ceb1189b2e Stop generating page/view attribute in 3.0
\n\nCommit migrated from 4eb93869b9
2018-12-18 11:55:16 -08:00
Ryan Nowak 2c2ff1f592 Code dump of component tests
This is a dump of the existing component codegen tests from
the Blazor effort.

I'm also adding the minimal Component types as a new shim to get things
to compile. This is similar to how our shims work already for MVC.

The next step will be add port functionality until the tests pass.
\n\nCommit migrated from 49f49dd9f0
2018-12-17 18:21:18 -08:00
Ajay Bhargav Baaskaran 9fc340553f Minor text tag fix
\n\nCommit migrated from 5787d1e7d4
2018-12-14 16:34:03 -08:00
N. Taylor Mullen e8a584729f Fix racey directive token auto-complete.
- This happens because a completion session starts when we've rendered a marker directive token without a line pragma and then we return our parse results which provide a C# buffer with a line pragma. This pull request fixes that.
- Updated tests and verified in VS d16.0stg.

aspnet/AspNetCoredotnet/aspnetcore-tooling#4810
\n\nCommit migrated from ca593c80f7
2018-12-14 11:57:17 -08:00
Ajay Bhargav Baaskaran 9105653629 Completely moved tag grouping logic to the parser (dotnet/aspnetcore-tooling#28)
* Completely moved tag grouping logic to the parser
- Removed MarkupElementRewriter
- Removed legacy Html parser
\n\nCommit migrated from c98b2fe1be
2018-12-11 18:24:39 -08:00
Ajay Bhargav Baaskaran 9f93a212f0 Partially moved tag grouping logic to the parser (dotnet/aspnetcore-tooling#20)
* Partially moved tag grouping logic to the parser
- Added StackGuard

* Feedback

* More feedback
\n\nCommit migrated from 0a37f5dafa
2018-12-06 16:08:43 -08:00
Ajay Bhargav Baaskaran cf6b1d7135 Correct logic for GetTagName
\n\nCommit migrated from 72a389149a
2018-12-06 16:08:42 -08:00
Ajay Bhargav Baaskaran 0c71f4f520 Added test for razor comment between code block and markup (dotnet/aspnetcore-tooling#14)
\n\nCommit migrated from 131003d0c3
2018-12-05 11:48:33 -08:00
Ajay Bhargav Baaskaran ad0f2a5af4 Group HTML tags (dotnet/aspnetcore-tooling#6)
\n\nCommit migrated from a2d1ac4cea
2018-12-04 16:04:20 -08:00
Ryan Nowak ebd37599b6 PR feedback
\n\nCommit migrated from d38687acf2
2018-12-04 14:08:21 -08:00
N. Taylor Mullen 3c3d699804 Only add DotNetCoreRazorConfiguration capability in SDK for netcoreapp3.0.
- Prior to this we were unconditionally adding the `DotNetCoreRazorConfiguration` capability resulting in 1.0 projects looking like 2.1+ projects.
- Added a project capability test that verifies we're maintaining project capabilities for netcoreapp3.0 projects.
- Added a project capability test that verifies we don't muck with 1.1 project capabilities.

aspnet/Razordotnet/aspnetcore-tooling#2751
\n\nCommit migrated from 8d733ecc04
2018-12-04 13:01:26 -08:00
Ryan Nowak 6b4e03db1b Merge pull request dotnet/aspnetcore-tooling#2 from aspnet/rynowak/workaround-publishing
Attempt to work around dotnet/arcadedotnet/aspnetcore-tooling#1425\n\nCommit migrated from 451f10ab8f
2018-12-03 13:33:46 -08:00
Ryan Nowak c9f0acd5fd Increase timeout
\n\nCommit migrated from 5f1204a960
2018-12-03 12:59:56 -08:00
Ajay Bhargav Baaskaran 19f5798c2a Refactor attribute parsing (dotnet/aspnetcore-tooling#3)
\n\nCommit migrated from b7441d433f
2018-12-03 12:24:12 -08:00
Ryan Nowak f2bc93d0f6 Port changes from 16.0-preview1
\n\nCommit migrated from 446af41614
2018-12-02 15:16:04 -08:00
Ryan Nowak 616ec14459 Remove Razor Runtime projects
\n\nCommit migrated from 39472ca0d6
2018-12-02 13:40:01 -08:00
N. Taylor Mullen c8bb6c34bb Use MVC 2.1 at design time for Razor 3.0 projects. (dotnet/aspnetcore-tooling#4324)
- When we detect a design time build we force tooling to use 2.1
- In runtime builds (i.e. rzc) it still uses the 3.0 configuration for 3.0 apps.

(cherry picked from commit dotnet/aspnetcore-tooling@0326abe530)
\n\nCommit migrated from a6dc88e455
2018-12-02 11:01:08 -08:00
Ajay Bhargav Baaskaran 5bb16b1a14 Refactored Html parser - part 1
(cherry picked from commit dotnet/aspnetcore-tooling@31f53d44b5)
\n\nCommit migrated from b154e53f06
2018-12-02 10:59:41 -08:00
Ryan Nowak 6fa46903e2 Fix DevDiv 736427
When a user builds a 2.1 or 2.2 project with a 3.0 they can get an error
due to invalid command line options from rzc. What happens is that the
3.0 tasks (which are a singleton) are talking to the 2.X build tool
(which is NOT a singleton).

Recently some changes were make to the 3.0 tasks which caused this bug
because it did not properly accomodate downlevel versions of rzc. We
have an integration test for this scenario for but the regression was
not detected, so obviously something is wrong with the test setup. I'll
investigate that separately.

(cherry picked from commit dotnet/aspnetcore-tooling@1aace2b6c7)
\n\nCommit migrated from d2654d0847
2018-12-02 10:59:09 -08:00
Ryan Nowak 7df54be754 Merged PR 304: Enable local builds with dotnet/Arcade
[WIP] Enable local builds with dotnet/Arcade
\n\nCommit migrated from 409618521f
2018-12-02 00:25:55 +00:00
Ryan Nowak a5ef5133a3 Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganization, this source code was found in https://github.com/aspnet/Razor/tree/dotnet/aspnetcore-tooling@582f3f867eeb8fca00e6b328faf7665c9a98476c
\n\nCommit migrated from 33b287d4a4
2018-11-29 15:13:03 -08:00