Commit Graph

1867 Commits

Author SHA1 Message Date
N. Taylor Mullen 9a249ffcc1 Add a LiveShare project snapshot base to make it easier to detect breaking changes. 2018-05-17 12:48:23 -07:00
Ryan Nowak 9b911cbb6e Add some benchmarks for project system
Adds a few benchmarks for things we're working on, also addressed a few
small perf issues that have an impact for large documents.
2018-05-16 13:21:39 -07:00
N. Taylor Mullen 63af9221dc Update korebuild and VSIX generation settings to support 15.8 VS.
- Prior to this if a 15.8 VS was installed the VSIX creation target would fail due to a bug in the CLI we're currently pinned to (already fixed, we just haven't pulled it). The fix was removing the parallelism flags to msbuild to allow it to run unrestricted in regards to processor utilization.
- Changed the VS restrictions to ensure we don't use unsupported 15.9 bits that have breaking changes in their MSBuild bits (this has proven to be troublesome in the past).
2018-05-15 11:51:00 -07:00
Nate McMaster 65cb2f0173
Merge branch 'release/2.1' into dev 2018-05-15 10:04:39 -07:00
Nate McMaster 2434d17613
Exclude Visual Studio packages from default NGPV ruleset (#2352) 2018-05-15 10:04:01 -07:00
N. Taylor Mullen 7c70207594 Made the Visual Studio parser smarter about overlapping reparse requests.
- Prior to this the parser would think that a non-latest reparse request was the latest because the only way we would check to see if a change reference was "latest" would be to do an equality check on the snapshot and `SourceChange`; the issue here was that `SourceChange` was null but the snapshots were the same. Problems could arise with this due to project context changes.
- Added tests to validate the new reparse behavior.
- Renamed `Edit` in the `BackgroundParser` to `ChangeReference` also refactored all the "edit" text in `BackgroundParser` to be `ChangerReference` like.
- Added a new event args to be the DTO between the internal and external parser implementations. This is how we could pas additional information in order to determine "latest" change reference.

#2336
2018-05-14 11:54:56 -07:00
Ryan Nowak a412299881 Add a Razor design time build
This allows Razor to know what files belong to the project.
2018-05-14 09:41:15 -07:00
ASP.NET CI ccec11c19d Update dependencies.props
[auto-updated: dependencies]
2018-05-13 14:20:13 -07:00
Ryan Nowak fafdd7e3af Track the open/closed state of documents
This change intoduces content changes to our project snapshots. We now
know the open/closed state of documents that are initialized by the
Razor project system and listen to the correct data source based on
whether the file is open in the editor.

There are a few other random improvements in here as well like a
workaround for the upcoming name change to our OOP client type.
2018-05-11 08:18:08 -07:00
N. Taylor Mullen e0e1c39cce Added a LiveShareWorkspaceProvider to enable location of the remote workspace in live share scenarios.
- MEF is the primary means of resolving the new live share provider therefore we allow it to not be registered.
- The new contract is in the Editor.Razor binary so the LiveShare bits don't have to take the dependency on the windows binary in Razor (has a lot of baggage).
- This is specific to live share but providing a generic way to resolve workspaces didn't seem reasonable given the varying expectations in VS4Mac. If we need to make a more generic solution in the future we'll revisit this; for now this is a straight forward inclusion of live share functionality.
- Added tests to validate the new behavior.
- This unblocks the live share scenario of resolving the remote workspace. We can't rely on the projection buffers to provide the correct workspace because that workspace is wired up too late in the process of opening a Razor file.

#2335
2018-05-08 16:54:43 -07:00
Ryan Nowak 1d5245c421 Reorganize file tracker
This is precursor to a much bigger change. Pushing out some of the
changes that have broad impact early to make it easier to review the
real change.
2018-05-08 16:27:51 -07:00
Pranav K 0f2b315fe4 Fixup Razor Sdk tests to work on netcoreapp2.2 2018-05-08 15:22:54 -07:00
Ryan Brandenburg efaaec6546 Upgrade to netcoreapp22 2018-05-08 15:22:54 -07:00
Ryan Nowak a9e7e4668d Bump Roslyn dependency to 2.8.0
(cherry picked from commit e9fc15de02)
2018-05-07 12:35:51 -07:00
Ryan Nowak e9fc15de02 Bump Roslyn dependency to 2.8.0 2018-05-07 12:09:04 -07:00
ASP.NET CI fdce0ca71e Update dependencies.props
[auto-updated: dependencies]
2018-05-06 12:27:39 -07:00
ASP.NET CI d16988542a Update dependencies.props
[auto-updated: dependencies]
2018-05-04 07:47:22 -07:00
Ryan Nowak b538f22ad5 Add more UI for document generation 2018-05-03 12:27:50 -07:00
Ajay Bhargav Baaskaran f150ee329a Merge branch 'release/2.1' into dev 2018-05-03 11:19:46 -07:00
N. Taylor Mullen dbed73da32 Remove ProjectService requirements for Razor text buffer initialization.
- Now that we have our own content type the editor does the work of determining if a Razor file opened in a core project should flow to our code.
2018-05-03 11:13:36 -07:00
Ryan Nowak e0612d7e07 Fixes for the document window state 2018-05-03 10:28:13 -07:00
Ajay Bhargav Baaskaran 41c0a69c5b Allow build server to run on net46 2018-05-02 16:17:09 -07:00
Ajay Bhargav Baaskaran 8422029310 Merge branch 'release/2.1' into dev 2018-05-02 16:14:42 -07:00
Ajay Bhargav Baaskaran b2c59700d5 Skip flaky test 2018-05-02 15:43:04 -07:00
Pranav K 1a2ca58eba
Merge pull request #2324 from aspnet/release/2.1
Merge release/2.1
2018-05-01 19:31:26 -07:00
Pranav K a94323499b Change CopyToPublishDirectory on Content items instead of explicitly removing this from publish items
Fixes #2295
2018-05-01 16:50:49 -07:00
Pranav K 05c84f008a Ensure Views dll are copied during P2P builds
FastUpToDateCheck in VS doesn't account for changes solely to .Views.dll. This causes referencing projects to be treated as
up to date even though a referenced project rebuilt. Touch the marker file to cause referenced projects to rebuild.

Fixes https://github.com/aspnet/Razor/issues/2306

to cause it to treat
2018-05-01 16:50:49 -07:00
Pranav K 8d99ba53ce Make incremental build in VS copy output files
Fixes #2306
2018-05-01 16:50:49 -07:00
Pranav K 2081663635 Re-enable desktop msbuild tests
Fixes #2208
2018-05-01 15:00:03 -07:00
Ajay Bhargav Baaskaran 7cba5ed593 Fix flaky test failure in ServerCommandTest 2018-04-30 16:32:18 -07:00
N. Taylor Mullen c59dcb9b4c Add IVT for Razor.LiveShare.Test. 2018-04-30 16:13:40 -07:00
Nate McMaster a2a03b896b
Merge branch 'release/2.1' into dev 2018-04-30 15:43:06 -07:00
Nate McMaster (automated) 4c8c86b629
Bump version to 2.1.0-rtm 2018-04-30 14:51:44 -07:00
Ryan Nowak f67458f156 Fix #2298 simplify TagHelperDescriptor hash
The hash code implementation here is exhaustive when it doesn't need to
be. Slimming this down to a much more reasonable set of things for perf
reasons.
2018-04-30 13:55:55 -07:00
N. Taylor Mullen 2885b4b138 Make document tracker resilient to multiple subscribes.
- Added tests to verify new functionality.

#2314
2018-04-30 12:03:13 -07:00
ASP.NET CI 8bc4c7a15c Update dependencies.props
[auto-updated: dependencies]
2018-04-29 12:28:29 -07:00
N. Taylor Mullen ee9537bebd Add Razor.LiveShare IVT to Editor.Razor. 2018-04-27 10:57:10 -07:00
Pranav K 92a7e73b75 Skip flaky test 2018-04-26 17:42:01 -07:00
Pranav K 813e50087c Specify RuntimeFrameworkVersion \ NSLibraryVersion when running tests 2018-04-26 17:42:01 -07:00
N. Taylor Mullen ad66ebb220 Add Razor.LiveShare IVT to CodeAnalysis.Razor. 2018-04-26 15:45:06 -07:00
N. Taylor Mullen 49299d78a4 Add Razor.LiveShare IVT to Razor.Workspaces. 2018-04-25 17:25:56 -07:00
Ryan Nowak e2edc280c5 Add documents, engine, tag helpers to snapshot
The project snapshot now maintains a RazorProjectEngine as well as set
of Tag Helpers that are known for that snapshot.

Pivoted some more services to be snapshot-centric.

Also added the ability to track .cshtml documents to the project system.
For now most components just ignore document changes.
2018-04-25 19:05:54 -04:00
Ajay Bhargav Baaskaran d8990cc2b8 Merge branch 'release/2.1' into dev 2018-04-25 13:26:18 -07:00
Ajay Bhargav Baaskaran bd871ef9e9 Handle Travis failure on ubuntu 2018-04-25 13:24:53 -07:00
Pranav K 1e2a1405e5
Update tests to target netcoreapp2.1 2018-04-25 10:27:07 -07:00
Pranav K a6a5e4ea10
Simplify building Microsoft.AspNetCore.Razor.Design 2018-04-25 10:27:07 -07:00
Nate McMaster b956aa0c80
Merge branch 'release/2.1' into dev 2018-04-23 19:02:19 -07:00
Nate McMaster 0d047d64f3
Remove explicit reference to NETStandard.Library when using .NET Framework 2018-04-23 13:32:50 -07:00
Pranav K a9f818bf82 Disable node-reuse to allow rebuilding
Recent builds of msbuild have node reuse enabled by default. This locks up the
task dlls after the test's completed preventing rebuilds untill you kill the process.
2018-04-23 12:50:38 -07:00
ASP.NET CI a643531c05 Update dependencies.props
[auto-updated: dependencies]
2018-04-23 12:22:04 -07:00