Commit Graph

2067 Commits

Author SHA1 Message Date
ASP.NET CI b20921741c Update dependencies.props
[auto-updated: dependencies]
2018-09-16 19:26:41 +00:00
Ryan Nowak 40080f3637 add issue numbers 2018-09-13 16:04:17 -07:00
Ryan Nowak 8d537a3c43 Add Issue numbers 2018-09-13 16:03:36 -07:00
Ryan Nowak b67fa0664d Check for spans that are missing from output 2018-09-13 14:51:46 -07:00
N. Taylor Mullen d2d84d00f5 Allow GeneratedCodeContainer to accept initial output. 2018-09-10 16:14:25 -07:00
N. Taylor Mullen da935bfa95 Generated document output persists result to generated code container.
- Prior to this we had a `BackgroundDocumentGenerator` that would constantly be updating generated code containers. With this changes we've changed the details in how a `GeneratedCodeContainer` can be mutated. It can now be touched from any thread and is updated when an underlying `DocumentSnapshot` has available content. However, if a generated output comes through that's older then the last seen output we no-op.
- Removed `BackgroundDocumentGenerator` SetOutput logic.
- Updated tests to react to new behavior of `GetGeneratedOutputAsync`.
- Added new test to verify getting generated output results in the setting of the host documents output.
2018-09-10 15:24:35 -07:00
Ajay Bhargav Baaskaran 96709c4d77
Actually verify classified spans (#2575) 2018-09-10 10:48:47 -07:00
ASP.NET CI 3bcfa1c87a Update dependencies.props
[auto-updated: dependencies]
2018-09-09 19:27:24 +00:00
N. Taylor Mullen e8f8727193 Merge branch 'release/2.2'
# Conflicts:
#	build/dependencies.props
#	korebuild-lock.txt
#	version.props
2018-09-05 17:24:25 -07:00
N. Taylor Mullen 3a281b8f58 Allow TagHelpers to occur after unclosed C# blocks without assert failures.
- This scenario wasn't considered previously.

#2566
2018-09-05 17:22:17 -07:00
ASP.NET CI 3a8eab1bb6 Update dependencies.props
[auto-updated: dependencies]
2018-09-05 23:57:54 +00:00
ASP.NET CI 45adbe5f7c
Update branding to 2.2.0-preview3 2018-09-05 16:35:54 -07:00
ASP.NET CI d9516f1f83 Update dependencies.props
[auto-updated: dependencies]
2018-09-02 19:25:20 +00:00
ASP.NET CI d1f2b5cfc4 Update dependencies.props
[auto-updated: dependencies]
2018-09-02 12:23:46 -07:00
N. Taylor Mullen 4619d59828 Add IVT to Razor LanguageServer.
- `LanguageServer.StrongNamed` isn't a thing anymore.
2018-08-30 11:26:02 -07:00
N. Taylor Mullen b8ff40fbbd Merge remote-tracking branch 'origin/release/2.2' 2018-08-29 16:00:27 -07:00
N. Taylor Mullen 852ad8df87 Allow content to be written after caught exception from child TagHelper.
- The issue was that the `executeChildContentAsync` call was stopping the invocation of the `_endTagHelperWritingScope`. Therefore, we'd never finish the TagHelper content scope and all following content would be ignored.
- Added two tests to validate the new functionality.

#2561
2018-08-29 16:00:15 -07:00
Ajay Bhargav Baaskaran 9e4c4079f2
Renamed HtmlTextSyntax to HtmlTextLiteralSyntax for consistency (#2560)
* Renamed HtmlTextSyntax to HtmlTextLiteralSyntax for consistency

* Generated baselines
2018-08-28 14:00:32 -07:00
ASP.NET CI 02bc4604a5 Update dependencies.props
[auto-updated: dependencies]
2018-08-26 19:26:05 +00:00
Ajay Bhargav Baaskaran f4808b50b5 Renamed WhiteSpace to Whitespace 2018-08-24 15:45:55 -07:00
Nate McMaster ee6f94dfd5
Merge branch 'release/2.2' 2018-08-21 18:39:13 -07:00
Nate McMaster f703a288dd
Import restore sources into Microsoft.VisualStudio.RazorExtension.csproj 2018-08-21 18:29:40 -07:00
Nate McMaster 001fff0083
Allow building this repo with VS 15.x (#2551) 2018-08-21 15:59:02 -07:00
Ajay Bhargav Baaskaran 27a9991f21
Auto generate CSharp syntax tree nodes (#2550)
* Auto generate CSharp syntax tree nodes
- Auto generated syntax nodes, visitors and factories
- Renamed RazorComment to RazorCommentLiteral to avoid a conflict
- Modified the Visit() contract
- Added new SyntaxKinds
- Regenerated baselines
2018-08-21 14:20:33 -07:00
ASP.NET CI 982088acb3 Update package branding for 2.2.0-preview2 2018-08-21 13:33:52 -07:00
ASP.NET CI aac85ceb4f Update dependencies.props
[auto-updated: dependencies]
2018-08-19 19:26:22 +00:00
Ajay Bhargav Baaskaran 200b1aa4c8
Merge pull request #2547 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-08-17 15:17:26 -07:00
Ajay Bhargav Baaskaran 2db79f1764
Merge pull request #2546 from dotnet-maestro-bot/merge/release/2.1-to-release/2.2
[automated] Merge branch 'release/2.1' => 'release/2.2'
2018-08-17 13:16:08 -07:00
Pranav K d0c7d81336 Skip BuildIncremental_SimpleMvc_PersistsTargetInputFile on xplat
For some inexplicable reason timestamps returned as part of the test often show up
as being different resulting in test flakiness. We've manually verified that this
is not a product issue and builds are correctly incremental on xplat. See #2219
for past discussions.

Fixes https://github.com/aspnet/Razor/issues/2503
2018-08-17 10:52:25 -07:00
Ajay Bhargav Baaskaran db2a142132
Updated the tokenizer and parser to operate on SyntaxTokens directly (#2540)
* Updated the tokenizer and parser to operate on SyntaxTokens directly
- The tokenizer and parser now operates directly on SyntaxTokens (Green)
- The SyntaxToken(Red) is now created when the Span is built with the correct parent and position
- All other passes that run after the parsing is complete(TagHelperRewriter etc) will operate on the Red tokens.
- There is now only one type for all SyntaxTokens. They are differentiated by their SyntaxKind.
- Added equivalence checking for tokens
- Updated test code to react
- Regenerated baselines
2018-08-16 16:11:01 -07:00
Ajay Bhargav Baaskaran 0c25c2958c
Update korebuild VS version range (#2542) 2018-08-16 11:27:33 -07:00
Ajay Bhargav Baaskaran e848bb37a3
Update VSIX build langversion to 7.2 (#2541) 2018-08-15 17:27:26 -07:00
Ryan Nowak 13e13d7632 Add generated documents to workspace 2018-08-15 10:54:32 -07:00
Ryan Nowak b486c5a233
Merge pull request #2536 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-08-15 10:01:39 -07:00
N. Taylor Mullen eec42e9a31 Merge branch 'release/2.2'
# Conflicts:
#	build/dependencies.props
#	korebuild-lock.txt
2018-08-14 11:23:31 -07:00
Marcin Burak 04e58d6ee4 Changed /* */ style comments to // style comments 2018-08-14 11:21:51 -07:00
Ryan Nowak 631e557b2d
Merge branch 'master' into merge/release/2.2-to-master 2018-08-13 17:28:46 -07:00
Ryan Nowak 585e6cd3fe Introduces a 'formatter' for formatting the IR
The new Formatter is used in debugger display, to resolve #2264

The next iteration (assuming we like this) will be to replat our testing
baseline infrastructure on top of this, and then start sharing that with
Blazor - related to #2265.

I found when implementing debugger display that I was duplicating a lot
of details between testing and this.

I also want to convert the Blazor tests to use shared infrastructure.
Right now the Blazor tests use a modified version of the Razor
infrastructure that has different features.
2018-08-13 13:09:49 -07:00
Ajay Bhargav Baaskaran 9a9931d59f
Initial infrastrucure for a better html parser (#2522)
Initial infrastrucure for a better html parser
- Added new syntax node types that follow Roslyn's red/green pattern
- Modified the html text node in the current syntax tree to use the new
nodes
- Updated test infrastructure
- Generated baselines
2018-08-13 11:26:24 -07:00
ASP.NET CI 7450a3a0fb Update dependencies.props
[auto-updated: dependencies]
2018-08-12 20:11:44 +00:00
ASP.NET CI 4b0a750692 Update dependencies.props
[auto-updated: dependencies]
2018-08-12 19:26:09 +00:00
N. Taylor Mullen 220595393a Expose RazorCompletionFactsService. 2018-08-10 14:52:39 -07:00
Artak 692e09b017
Fixes #2491: Treating RazorCommentTransition-s similar to Transitions in tag content (#2531)
* Treating RazorCommentTransition-s similar to Transitions in tag content
2018-08-10 14:46:58 -07:00
N. Taylor Mullen 572b55690d Refactor completion logic into standalone service.
- Migrated the completion item source provider and the legacy directive completion provider to use the new service.
- Cleaned up duplicate tests that were both verifying common completion functionality.
- Ensured that the legacy `RazorDirectiveCompletionProvider` did not result in additional Razor assembly loads when in C# scenarios.

#2530
2018-08-10 14:46:13 -07:00
N. Taylor Mullen aec88e3eba Change Razor directive completions to use new completions API.
- Kept the same behavior as we previously had with Razor directive completions.
- Attempted adding additional functionalities such as lighting up Razor directive completion when completion was invoked on top of Razor directives (non-C#) but ran into issues involving the core HTML editor not consuming the new completion APIs yet. That's something we'll have to re-visit once they move to the new completion APIs.
- Added tests to validate all aspects of new completion APIs.
- Made completion provider turn on and off based off of feature flag.

#1743
#1813
2018-08-10 11:37:47 -07:00
Ajay Bhargav Baaskaran dd62753312 Merge branch 'merge/release/2.2-to-master' 2018-08-08 11:30:27 -07:00
Ajay Bhargav Baaskaran d097adee5f
Unblock VSTS linux builds (#2526)
* Unblock VSTS linux builds

* Updated yml
2018-08-08 10:48:16 -07:00
ASP.NET CI c7337c2d65 Update dependencies.props
[auto-updated: dependencies]
2018-08-06 20:48:01 +00:00
ASP.NET CI cc4fbfe2d9 Update dependencies.props
[auto-updated: dependencies]
2018-08-05 20:02:00 +00:00
ASP.NET CI f8cadf93d1 Update dependencies.props
[auto-updated: dependencies]
2018-08-05 19:24:19 +00:00