Commit Graph

17 Commits

Author SHA1 Message Date
N. Taylor Mullen 986d465c19 Fix PoliCheck failures.
Addresses:
- https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1111066
- https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1111067
- https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1111068
\n\nCommit migrated from 9603451af9
2020-04-27 13:38:52 -07:00
Ryan Brandenburg 0c84b3abd5 Serialize project state from VS to project.razor.json (dotnet/aspnetcore-tooling#1711)
Serialize project state to project.razor.json\n\nCommit migrated from fef50ba623
2020-03-31 11:07:08 -07:00
Nate McMaster 5d1b6db33f Add support for source-build (dotnet/aspnetcore-tooling#620)
\n\nCommit migrated from 986c224acf
2019-05-29 13:06:38 -07:00
N. Taylor Mullen b1aef03aaf Expand RazorProject.GetItem to take in FileKinds when getting items.
- Obsoleted old `GetItem` API.
- Updated tests to take new API.
- Added a new test to verify the broken scenario.

dotnet/aspnetcore-tooling#8972
\n\nCommit migrated from 2dd34b8dd8
2019-04-02 13:32:35 -07:00
Ajay Bhargav Baaskaran ec503be2d5 Flow RootNamespace from MSBuild (dotnet/aspnetcore-tooling#331)
- Flow Root namespace through in command line builds

- Flow Root namespace through in design time builds

- Feedback\n\nCommit migrated from 057d4f3570
2019-03-13 14:18:07 -07:00
Ajay Bhargav Baaskaran 6747e90b05 Preserve diagnostics when rewriting Red nodes (dotnet/aspnetcore-tooling#319)
\n\nCommit migrated from 276532454e
2019-03-11 10:31:37 -07:00
Ajay Bhargav Baaskaran c7dcbd82d6 Added missed files to RazorSyntaxGenerator (dotnet/aspnetcore-tooling#318)
\n\nCommit migrated from 84066bc880
2019-03-08 15:56:46 -08:00
Ajay Bhargav Baaskaran b2b8ca6479 Added RazorSyntaxGenerator to the repo (dotnet/aspnetcore-tooling#313)
\n\nCommit migrated from cdafa554d7
2019-03-08 10:40:43 -08:00
N. Taylor Mullen 740b1d3c27 Move TagHelperResolver to CodeAnalysis.Workspaces
- There's nothing specific about the TagHelperResolver that needs to be bound to VS. Moving it to the workspaces assembly so it can be used by VSCode.
- Also changed the `TagHelperResolver` to be an `IWorkspaceService`.
\n\nCommit migrated from 9f73afef3a
2019-02-26 11:28:11 -08:00
N. Taylor Mullen e2d2beb685 Merge branch 'release/vs16.0-preview4'
\n\nCommit migrated from f547905bc6
2019-02-12 12:40:11 -08:00
Ajay Bhargav Baaskaran 5f572991b1 Merge branch 'release/vs16.0-preview4'
\n\nCommit migrated from 408b123a64
2019-02-07 15:08:16 -08:00
N. Taylor Mullen f1211013b1 Merge branch 'release/vs16.0-preview4'
\n\nCommit migrated from ce9f141521
2019-02-05 12:06:56 -08:00
N. Taylor Mullen 440b04973a Merge remote-tracking branch 'origin/release/vs16.0-preview4'
\n\nCommit migrated from ef2f8975db
2019-02-04 09:55:15 -08:00
N. Taylor Mullen 045bd10cc9 Merge branch 'release/vs16.0-preview4'
\n\nCommit migrated from 5af7556663
2019-02-01 11:08:57 -08:00
N. Taylor Mullen e4a686575c Don't associate Roslyn workspace project with ProjectSnapshot.
- Removed the differences of workspace project and `HostProject` in regards to `ProjectSnapshotManager` methods. We now just have `ProjectAdded`, `ProjectRemoved` etc.
- Obsoleted Workspace related members from the `ProjectSnapshot`in order to ensure that current LiveShare continues to work. Once LiveShare has been incorporated into Razor we can remove these members from the project snapshot.
- Removed several TagHelper calculating logic pieces from the document tracker. This is now done entirely from the ProjectSnapshotManager so there's no secondary route that needs to be taken in order to resolve TagHelpers for VS windows cases.
- Updated the `ProjectState` to take in TagHelpers and removed the internal logic it had to resolve TagHelpers.
- Added a TagHelpers property to ProjectSnapshot to indicate that they're no longer calculated, they're part of the project inputs.
- Added a ProjectWorkspaceChange generator to be responsible for calculating any workspace related information that is needed for a `ProjectSnapshot`. For now, this just calculates TagHelpers but in the future it may do more.
- Added a `FilePathComparison` static helper class which acts similarly to `FilePathComparer`.
- Changed our dynamic file info provider to no longer care about `ProjectIds`. Before this, it kept track of the project ids internally but never used them so this is a noop functional change.
- Changed how the out of process remote TagHelper resolution flow works. Prior to this you'd pass a Project across the wire as part of a project snapshot handle and then resolve TagHelpers the old fashioned way.
- Updated all existing tests to respect the new `ProjectWorkspaceState` flows.
- Added tests for new APIs.

dotnet/aspnetcore-tooling#6672
\n\nCommit migrated from a5621641f8
2019-02-01 11:06:20 -08:00
Ryan Nowak 7f725e099c Pass filekind through the workspace layer
This commit enables us to initialize projects with the correct file
kind, thus allowing mixed views and components in the same project.

This isn't hooked up to MSBuild yet, so for now nothing will initialize
this code with the correct file kind.
\n\nCommit migrated from 7216d18cfb
2019-01-03 08:50:15 -08:00
Ryan Nowak 1c99d2ed4a 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