Commit Graph

1895 Commits

Author SHA1 Message Date
N. Taylor Mullen 56d69db0fa Add Razor document tracking to FallbackRazorProjectHost.
- VisualStudio defaults to adding a `<none>` link item when right click -> add existing item for Razor files; therefore, this also includes the knowledge of the "None" item group when finding Razor files.
- Added unit and functional tests to verify the new `FallbackRazorProjectHost` behavior.
- Added new schema items to represent the `Content` and `None` item type information (pulled from the project system repo).

#2373
2018-05-30 11:15:25 -07:00
Pranav K 607812f97f
Merge remote-tracking branch 'origin/release/2.1' into dev 2018-05-29 15:19:10 -07:00
Pranav K c413101b87
Merge commit '9c3a331e4f9785f0febc4a8e978008e6eead4390' into dev 2018-05-29 15:18:44 -07:00
Pranav K fe436411d8
Merge commit 'f4eeacfdbaaad99ee6e69158e39b2bf29f8a9ad1' into dev 2018-05-29 15:18:39 -07:00
Pranav K cdbcfb7a05 Fixup references to versions in vsix 2018-05-29 15:17:01 -07:00
Pranav K 9c3a331e4f Allow publish to work when BuildProjectReferences=false
Fixes #2363
2018-05-29 15:17:01 -07:00
Nate McMaster f4eeacfdba
Bumping version from 2.1.0 to 2.1.1 2018-05-29 11:38:42 -07:00
ASP.NET CI 48db99b805 Update dependencies.props
[auto-updated: dependencies]
2018-05-29 09:49:34 -07:00
Ryan Brandenburg 28a859605f Override MicrosoftNETCoreApp22PackageVersion 2018-05-29 09:35:55 -07:00
ASP.NET CI 35a34a81fc Update dependencies.props
[auto-updated: dependencies]
2018-05-27 19:26:14 +00:00
Nate McMaster (automated) 629ac3e216
Update bootstrapper scripts (automated commit) [ci skip] 2018-05-25 16:16:52 -07:00
Pranav K 1b6ca7f55a Allow publish to work when BuildProjectReferences=false
Fixes #2363
2018-05-25 11:13:26 -07:00
Ryan Brandenburg a42f9d28be Don't police netcoreapp version 2018-05-24 12:20:58 -07:00
Ajay Bhargav Baaskaran 78f698db96 Fix test failure on MacOS 2018-05-24 10:59:47 -07:00
Ajay Bhargav Baaskaran 4bad5adc24 Don't run build server when building testapps in-place 2018-05-23 18:04:10 -07:00
N. Taylor Mullen 93d8a93498 Enable serialization of `TagHelperDescriptor`s.
- Added ability for TagHelpers to write their own json output.
2018-05-22 16:48:26 -07:00
Ryan Brandenburg de9c5b3909 netcoreapp22 status 2018-05-22 16:41:31 -07:00
Ajay Bhargav Baaskaran f9d4fba39d Added a taghelpers and imports overload to Process and ProcessDesignTime
We want to have a way to specify the taghelper descriptors and imports to use while
processing a specific document.
- Added an overload to Process and ProcessDesignTime to take in a list
TagHelperDescriptors and a list of imports
- Added the corresponding CreateCodeDocumentCore overload
- Added GetTagHelpers and SetTagHelpers extension methods for
CodeDocument
- Added the necessary plumbing to use the taghelpers from the
CodeDocument when available and fallback logic.
- Added DocumentImportsTracker and updated background code generation
logic to use the new overload
- Added/updated tests
2018-05-22 11:40:21 -07:00
N. Taylor Mullen a20a88fa3f Make local VSIX builds debuggable. 2018-05-21 17:25:42 -07:00
N. Taylor Mullen 592f5669db Revert "Fix local VSIX creation."
This reverts commit 1ff2e7022f.
2018-05-21 17:20:48 -07:00
N. Taylor Mullen 1ff2e7022f Fix local VSIX creation. 2018-05-21 12:58:22 -07:00
N. Taylor Mullen 59baad17da Merge branch 'rel/vs15.8' into dev 2018-05-21 10:48:16 -07:00
Ryan Nowak 4ac8b21978 Fix dispose logic for EditorDocument
This could throw when the document is disposed and wasn't open in the
editor.

Improved the tests to cover dispose as well for both cases.
2018-05-20 16:39:46 -07:00
ASP.NET CI 53eedb2e34 Update dependencies.props
[auto-updated: dependencies]
2018-05-20 19:43:37 +00:00
Ryan Nowak a35ef53891 Fix mef attributes project path provider 2018-05-19 13:06:24 -07:00
N. Taylor Mullen 95d41507fc Add `ProjectPathProvider` abstract for document tracker creation.
- First iteration of live share replaced the document tracker factory entirely; however, this will be prone to breaking changes in the future when me make changes to document tracker to not rely on a file path. To pre-emptively prevent breaking changes I added a project path provider that can be overridden in the live share case. Note that one big difference here between old and new is that instead of being a MEF service implementation for the project path resolution we're bringing that to the Workspace service level.
- Added tests to validate the two flows of the default project path provider.
2018-05-17 15:28:20 -07:00
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
N. Taylor Mullen e8c8396298 Upgrade to VS 15.8 Preview 2 version of Roslyn. 2018-05-16 15:50:54 -07:00
N. Taylor Mullen 8d4363b515 Update VSIX publishing to be consistent with non-VSIX publishing
- Prior to this change PDBs published by our build system wouldn't match up because the assembly identity would look different.
2018-05-16 15:50:44 -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