Граф коммитов

2442 Коммитов

Автор SHA1 Сообщение Дата
dotnet-maestro[bot] a125d8ead2
Update dependencies from https://github.com/dotnet/arcade build 20190213.1 (#208)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19113.1
2019-02-14 13:20:31 +00:00
Doug Bunting 925fce5961 Add component detection step to builds
- aspnet/AspNetCore-Internal#1254
2019-02-13 10:23:54 -08:00
dotnet-maestro[bot] b0f1c893c7
Update dependencies from https://github.com/dotnet/arcade build 20190212.3 (#204)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19112.3
2019-02-13 13:19:51 +00:00
N. Taylor Mullen f547905bc6 Merge branch 'release/vs16.0-preview4' 2019-02-12 12:40:11 -08:00
N. Taylor Mullen a73574a1eb For collaboration services don't use session accessor.
- Collaboration services aren't guaranteed to be invoked in a particular order. If the guest initialization service was not invoked prior to the snapshot synchronization service then the synchronization service would null ref when resolving guest paths because the `LiveShareSessionAccessor.Session` would not be set yet.

https://devdiv.visualstudio.com/DevDiv/_workitems/edit/786078
2019-02-12 12:38:48 -08:00
Pranav K f58c436961
Use new PreserveCompilationReferences in Razor Sdk (#187)
* Use new PreserveCompilationReferences in Razor Sdk

Fixes https://github.com/aspnet/AspNetCore/issues/6512
2019-02-11 19:54:04 -08:00
N. Taylor Mullen 27e1d8c011 Add @await foreach for C# 8
- Added general C# 8 tests that we can use to include nullability when the time comes.
- Added statement test to ensure syntax tree is correct for await foreach.

aspnet/AspNetCore#5078
2019-02-11 09:45:02 -08:00
dotnet-maestro[bot] 1d303f9c6e
Update dependencies from https://github.com/dotnet/arcade build 20190208.1 (#199)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19108.1
2019-02-09 13:19:52 +00:00
N. Taylor Mullen b18dcbff57 Add IVT to LanguageServer.Common project. 2019-02-08 17:32:39 -08:00
Nate McMaster e9ce95c096
Update package branding to use SemVer v2 and set version to 3.0.0-preview3 (#198)
Two changes:

* Update packages to 3.0.0-preview3.$(buildnumber) per latest 3.0 plan from the PMs
* Update packages to use SemVerV2 like most other repos are doing. Preview 1 of the packages in this repo were released with SemVer v1 "3.0.0-preview-18579-0056". We didn't update to SemVer v2 like everyone else because semver v2 would have sorted as "older" than 3.0.0-preview-18579-0056. But, now that we're updating the prerelease label to "preview3", semverv2 packages should appear as newer than 3.0.0-preview-18579-0056.
2019-02-08 11:44:05 -08:00
dotnet-maestro[bot] 7e49d3df9d
Update dependencies from https://github.com/dotnet/arcade build 20190207.1 (#197)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19107.1
2019-02-08 13:25:46 +00:00
Ajay Bhargav Baaskaran 408b123a64 Merge branch 'release/vs16.0-preview4' 2019-02-07 15:08:16 -08:00
Ajay Bhargav Baaskaran 56fa17b094
Fix invalid cast with end script tag containing code (#193) 2019-02-07 15:06:26 -08:00
Ajay Bhargav Baaskaran 26e8d86b21
Handle multiple nested sections correctly (#196) 2019-02-07 14:04:57 -08:00
Ajay Bhargav Baaskaran 10dbc434ee
Fixed null-ref with reserved word inside a code block (#192) 2019-02-07 14:03:23 -08:00
Ajay Bhargav Baaskaran 9e97ba9b97
Fix crash with code blocks in tag helper attributes (#190)
* Fix crash with code blocks in tag helper attributes

* Better fix

* Fixed another case
2019-02-07 14:02:10 -08:00
dotnet-maestro[bot] 437b65228f
Update dependencies from https://github.com/dotnet/arcade build 20190206.4 (#194)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19106.4
2019-02-07 13:20:39 +00:00
Pranav K 7f49b97eb5 Restore packages as part of build to avoid restore timeouts as part of running tests
Fixes https://github.com/aspnet/AspNetCore-Internal/issues/1701
2019-02-06 14:04:24 -08:00
dotnet-maestro[bot] 275076187f
Update dependencies from https://github.com/dotnet/arcade build 20190205.5 (#189)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19105.5
2019-02-06 13:22:13 +00:00
N. Taylor Mullen ce9f141521 Merge branch 'release/vs16.0-preview4' 2019-02-05 12:06:56 -08:00
N. Taylor Mullen bffa42655d Fix global LiveShare session access timing issue.
- Because we need to expose a LiveShare session globally to multiple services there was a situation where if the `GuestInitializationService` was instantiated after the snapshot synchronization service then we wouldn't have access to the current collaboration service via the `LiveShareSessionAccessor`. This is ok though, because in our synchronization service we're already passed the session context which we can just use directly.
- `GuestProjectPathProvider`can't actually return a null guest path if it's asked, so also removed the null coalescing on the `LiveShareSessionAccessor`'s `Session`.
- Fixed tests.
2019-02-05 12:06:29 -08:00
dotnet-maestro[bot] b350a29cd2
Update dependencies from https://github.com/dotnet/arcade build 20190204.18 (#186)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19104.18
2019-02-05 13:20:59 +00:00
N. Taylor Mullen ef2f8975db Merge remote-tracking branch 'origin/release/vs16.0-preview4' 2019-02-04 09:55:15 -08:00
N. Taylor Mullen 1ad58966ae Fix-up LiveShare bits to work on latest Razor.
- Changed the LiveShare model from posting its entire state after every ProjectSnapshotManager event to post just the event state and then maintain the project manager on the guest.
- Because of the recent design change to abstract `ProjectSnapshots` away from a Roslyn project I was able to remove all `ProjectSnapshot`/`ProjectSnapshotManager` custom LiveShare implementations to decouple ourselves from LiveShare's remote language service workspace.
- Changed how we detect remote sessions. Instead of relying on an internal API we now look for a specific UI context that only exists during a LiveShare guest session.
- Changed the project snapshot handle proxies to use `ProjectWorkspaceState` instead of directly transporting TagHelpers.
- Updated the `RazorGuestInitializationService` to use public file list APIs to pre-download ViewImports for Razor projects.
- Updated tests to consume new product bits.

aspnet/Razor.LiveShare#47
2019-02-04 09:02:44 -08:00
N. Taylor Mullen 599c81f948 Add Microsoft.VisualStudio.LiveShare.Razor
- Added LiveShare to the RazorExtension
- Updated dependencies to consume LiveShare nupkg

aspnet/Razor.LiveShare#47
2019-02-04 09:02:44 -08:00
N. Taylor Mullen 7ec174ef49 Fix-up LiveShare bits to work on latest Razor.
- Changed the LiveShare model from posting its entire state after every ProjectSnapshotManager event to post just the event state and then maintain the project manager on the guest.
- Because of the recent design change to abstract `ProjectSnapshots` away from a Roslyn project I was able to remove all `ProjectSnapshot`/`ProjectSnapshotManager` custom LiveShare implementations to decouple ourselves from LiveShare's remote language service workspace.
- Changed how we detect remote sessions. Instead of relying on an internal API we now look for a specific UI context that only exists during a LiveShare guest session.
- Changed the project snapshot handle proxies to use `ProjectWorkspaceState` instead of directly transporting TagHelpers.
- Updated the `RazorGuestInitializationService` to use public file list APIs to pre-download ViewImports for Razor projects.
- Updated tests to consume new product bits.

aspnet/Razor.LiveShare#47
2019-02-04 08:14:44 -08:00
N. Taylor Mullen 857ac8758f Add Microsoft.VisualStudio.LiveShare.Razor
- Added LiveShare to the RazorExtension
- Updated dependencies to consume LiveShare nupkg

aspnet/Razor.LiveShare#47
2019-02-04 08:14:44 -08:00
dotnet-maestro[bot] f771e72108
Update dependencies from https://github.com/dotnet/arcade build 20190203.1 (#184)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19103.1
2019-02-04 13:20:38 +00:00
dotnet-maestro[bot] 5200f8bcfb
Update dependencies from dotnet/arcade (#183)
* Update dependencies from https://github.com/dotnet/arcade build 20190201.16

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19101.16

* Update dependencies from https://github.com/dotnet/arcade build 20190202.1

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19102.1
2019-02-03 13:22:14 +00:00
N. Taylor Mullen 5af7556663 Merge branch 'release/vs16.0-preview4' 2019-02-01 11:08:57 -08:00
N. Taylor Mullen a5621641f8 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.

#6672
2019-02-01 11:06:20 -08:00
N. Taylor Mullen 1a96714921 Prioritize local dotnet when running SDK Razor tests.
- The SDK tests were occasionally failing with access denied due to the test using the machines dotnet.exe (instead of the local projects dotnet.exe).

#1667
2019-02-01 11:06:19 -08:00
Ajay Bhargav Baaskaran 77532db903 Merge branch 'release/vs16.0-preview3' 2019-02-01 10:59:34 -08:00
dotnet-maestro[bot] f5b95aa04b
Update dependencies from https://github.com/dotnet/arcade build 20190131.3 (#181)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19081.3
2019-02-01 13:21:05 +00:00
dotnet-maestro[bot] 79f96846f3
Update dependencies from https://github.com/dotnet/arcade build 20190130.6 (#179)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19080.6
2019-01-31 13:48:55 +00:00
dotnet-maestro[bot] 351fdbc3c6
Update dependencies from https://github.com/dotnet/core-setup build 20190130.4 (#178)
This change updates the following dependencies
- Microsoft.Extensions.DependencyModel - 3.0.0-preview-27330-4
- Microsoft.NETCore.App - 3.0.0-preview-27330-4
2019-01-31 13:43:08 +00:00
dotnet-maestro[bot] 0854925a24
Update dependencies from https://github.com/dotnet/corefx build 20190130.5 (#177)
This change updates the following dependencies
- System.Text.Encodings.Web - 4.6.0-preview.19080.5
- System.Diagnostics.DiagnosticSource - 4.6.0-preview.19080.5
2019-01-31 13:37:14 +00:00
dotnet-maestro[bot] ad8ae2d847
Update dependencies from https://github.com/dotnet/arcade build 20190130.6 (#176)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19080.6
2019-01-31 13:26:18 +00:00
Ajay Bhargav Baaskaran 6d71b6a265
Fix: Exception for empty data- attributes in tag helpers (#173) 2019-01-30 09:12:37 -08:00
dotnet-maestro[bot] 259e6173e4
Update dependencies from https://github.com/dotnet/core-setup build 20190129.4 (#175)
This change updates the following dependencies
- Microsoft.Extensions.DependencyModel - 3.0.0-preview-27329-4
- Microsoft.NETCore.App - 3.0.0-preview-27329-4
2019-01-30 13:32:20 +00:00
dotnet-maestro[bot] defa324024
Update dependencies from https://github.com/dotnet/corefx build 20190129.11 (#174)
This change updates the following dependencies
- System.Text.Encodings.Web - 4.6.0-preview.19079.11
- System.Diagnostics.DiagnosticSource - 4.6.0-preview.19079.11
2019-01-30 13:26:56 +00:00
Pranav K 99938c9b7e Ensure TagHelpers from the current project are discovered for projects targeting 2.x
As part of migrating the CodeGeneration targets in to the Razor.Sdk,
the SDK broke the contract that RazorReferencePaths includes the full closure
of assemblies during tag helper discovery.

This change restores the behavior to be compatible with the 2.x Razor.Design
package and adds tests to verify TagHelper discovery works in a range of projects.

Fixes https://github.com/aspnet/AspNetCore/issues/6825
2019-01-29 11:21:27 -08:00
dotnet-maestro[bot] 4b0b61bc55
Update dependencies from https://github.com/aspnet/Extensions build 20190128.02 (#172)
This change updates the following dependencies
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview.19078.2
- Microsoft.AspNetCore.Testing - 3.0.0-preview.19078.2
- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview.19078.2
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview.19078.2
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview.19078.2
2019-01-29 13:31:07 +00:00
Ryan Nowak bd7fc9ddf6 Fix dependency to aspnet/AspNetCore-Tooling (#170)
* Remove unused package versions
* Remove references to Html.Abstractions
Removing this package since it's from the aspnet/AspNetCore.

* Remove System.ValueTuple package inside remove
* Add versions.details.xml items from corefx
* Add Microsoft.NETCore.App
* Fill up Version.Details.xml
* Update dependencies
* Fix failing test
2019-01-24 16:57:16 -08:00
N. Taylor Mullen fbf8b8a27b Update Razor parser state on background thread.
- This change enables our parser to return a background completable task instead of waiting for the document structure notifications on the foreground thread.
- When changing the system to resolve all data on the background thread I ran into several races which triggered severe delays/timeouts/deadlocks when running through completion scenarios. To fix these issues I had to tie into our current partial parsing and snapshot tracking systems to properly complete tasks without crashing VS.
- Had to make a slight hack of returning the latest partially parsed syntax tree which maintains its original diagnostics/source document.
- There were some unrelated issues that result in a completion request aborting mid-flight, because of this changed the API to properly consume a cancellation token.
- Added unit parser tests for the `DefaultVisualStudioRazorParser`
- Added an integration test to verify the partial parsing interaction with `GetLatestSyntaxTreeAsync`.
2019-01-24 15:22:31 -08:00
Ajay Bhargav Baaskaran e160872142
Final cleanup to remove all traces of ParseBlockTest (#169) 2019-01-24 12:42:10 -08:00
N. Taylor Mullen 61b7265bed Convert HtmlAttributeTest to use ParseDocument
aspnet/AspNetCore#6470
2019-01-24 09:05:52 -08:00
dotnet-maestro[bot] 2c10e6af76
Update dependencies from https://github.com/dotnet/arcade build 20190123.5 (#168)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19073.5
2019-01-24 13:45:24 +00:00
dotnet-maestro[bot] 24908bce80
Update dependencies from https://github.com/dotnet/arcade build 20190123.5 (#167)
This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19073.5
2019-01-24 13:27:18 +00:00
N. Taylor Mullen 18feedbbb6 Convert HtmlErrorTest to use ParseDocument
aspnet/AspNetCore#6470
2019-01-23 16:58:19 -08:00