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

5447 Коммитов

Автор SHA1 Сообщение Дата
N. Taylor Mullen f0b8f39c89
Fix underscores from being duplicated when completed. (#2827)
- The language server platform restricts the bounding of the "applicable commit span" based on the active trigger/commit characters. Since `_` is already part of our "identifier" trigger set we don't need to specify it.

Before:
![image](https://user-images.githubusercontent.com/2008729/101828670-b6481b00-3ae6-11eb-8fb4-ba1f984bd625.gif)

After:
![image](https://i.imgur.com/0XDdkQS.gif)

Fixes dotnet/aspnetcore#28578
2020-12-15 00:13:14 +00:00
Tanay Parikh 70fcb847bb
HTML Embedded Language Publish Diagnostics, Fix RazorMapToDocumentRangesResponse (#2814)
* Update RazorMapToDocumentRangesResponse

* Update Razor LSP Conventions

* Create RazorHtmlPublishDiagnosticsInterceptor.cs

* PR Feedback

* Filter null diagnostic codes

* Remove filtering

* Fix tests

* Sort usings

* PR Feedback
2020-12-14 23:54:42 +00:00
N. Taylor Mullen 6ad30a487e Provide C# polyfill's more frequently.
- Prior to this if you were to continuously type then additional completion requests would be "requested" for non-transition trigger characters. Aka typing `@D` quickly could result in two completion requests: one for the trigger character `@` and one for the literal `D`. If the first completion request returned quick enough we'd provide C# polyfills because `@` was the trigger character; however, if it doesn't and it instead gets cancelled in favor for the `D` completion request then no polyfills would be provided prior to this PR.
- Given C#'s polyfills are ultimately just a "workaround" until snippet support is added I utilized VS' word calculation logic to lazily detect simple implicit expressions which involve a transition and then a single word. This new logic will grab the entire word range and then look on the left hand side of the word to see if it's lead by a transition.
- Updated existing tests to pass in a fake text navigator since it's a new requirement to better introspect over  what we're providing completion over.
- Added a new test to validate that we provide C# completions for re-trigger scenarios

Fixes dotnet/aspnetcore#28327
2020-12-14 10:47:48 -08:00
dotnet-maestro[bot] 3920f8c120
Update dependencies from https://github.com/dotnet/aspnetcore build 20201214.2 (#2826)
[master] Update dependencies from dotnet/aspnetcore
2020-12-14 16:28:33 +00:00
dotnet-maestro[bot] d42197d9d4
Update dependencies from https://github.com/dotnet/arcade build 20201210.4 (#2825)
[master] Update dependencies from dotnet/arcade
2020-12-14 13:36:39 +00:00
dotnet-maestro[bot] 1a731175e8
Update dependencies from https://github.com/dotnet/aspnetcore build 20201212.4 (#2824)
[master] Update dependencies from dotnet/aspnetcore
- Coherency Updates:
  - Microsoft.Extensions.Configuration.Json: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.Extensions.Logging: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
  - System.Diagnostics.DiagnosticSource: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
  - System.Resources.Extensions: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
  - System.Text.Encodings.Web: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.Extensions.DependencyModel: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.App.Ref: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.BrowserDebugHost.Transport: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.App.Runtime.win-x64: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.Platforms: from 6.0.0-alpha.1.20611.2 to 6.0.0-alpha.1.20611.23 (parent: Microsoft.CodeAnalysis.Razor)
2020-12-12 16:01:55 +00:00
dotnet-maestro[bot] 1c4ec52eb8
Update dependencies from https://github.com/dotnet/aspnetcore build 20201211.17 (#2823)
[master] Update dependencies from dotnet/aspnetcore
2020-12-11 22:45:31 +00:00
dotnet-maestro[bot] 2c4fa31317
[master] Update dependencies from dotnet/aspnetcore (#2822)
[master] Update dependencies from dotnet/aspnetcore
2020-12-11 21:56:54 +00:00
dotnet-maestro[bot] 7e61435018
Update dependencies from https://github.com/dotnet/aspnetcore build 20201211.9 (#2821)
[master] Update dependencies from dotnet/aspnetcore
2020-12-11 19:34:18 +00:00
dotnet-maestro[bot] 5d74100080
Update dependencies from https://github.com/dotnet/aspnetcore build 20201211.3 (#2820)
[master] Update dependencies from dotnet/aspnetcore
- Coherency Updates:
  - Microsoft.Extensions.Configuration.Json: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.Extensions.Logging: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
  - System.Diagnostics.DiagnosticSource: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
  - System.Resources.Extensions: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
  - System.Text.Encodings.Web: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.Extensions.DependencyModel: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.App.Ref: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.BrowserDebugHost.Transport: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.App.Runtime.win-x64: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.Platforms: from 6.0.0-alpha.1.20609.15 to 6.0.0-alpha.1.20611.2 (parent: Microsoft.CodeAnalysis.Razor)
2020-12-11 18:06:46 +00:00
dotnet-maestro[bot] ec3e5c2ce8
Update dependencies from https://github.com/dotnet/aspnetcore build 20201210.24 (#2819)
[master] Update dependencies from dotnet/aspnetcore
2020-12-11 03:52:49 +00:00
dotnet-maestro[bot] bd8bb28930
Update dependencies from https://github.com/dotnet/aspnetcore build 20201210.22 (#2818)
[master] Update dependencies from dotnet/aspnetcore
2020-12-11 03:04:07 +00:00
dotnet-maestro[bot] 5114df9517
Update dependencies from https://github.com/dotnet/aspnetcore build 20201210.21 (#2817)
[master] Update dependencies from dotnet/aspnetcore
2020-12-11 02:08:48 +00:00
dotnet-maestro[bot] 697d1655b9
Update dependencies from https://github.com/dotnet/aspnetcore build 20201210.19 (#2815)
[master] Update dependencies from dotnet/aspnetcore
2020-12-11 00:45:21 +00:00
dotnet-maestro[bot] e7506ce11b
Update dependencies from https://github.com/dotnet/aspnetcore build 20201210.16 (#2813)
[master] Update dependencies from dotnet/aspnetcore
2020-12-10 23:17:59 +00:00
dotnet-maestro[bot] 64d98f196f
Update dependencies from https://github.com/dotnet/aspnetcore build 20201210.13 (#2811)
[master] Update dependencies from dotnet/aspnetcore
2020-12-10 22:19:24 +00:00
dotnet-maestro[bot] 38d23607ff
Update dependencies from https://github.com/dotnet/aspnetcore build 20201210.11 (#2809)
[master] Update dependencies from dotnet/aspnetcore
2020-12-10 21:23:41 +00:00
dotnet-maestro[bot] 70b8d4033d
[master] Update dependencies from dotnet/aspnetcore (#2806)
* Update dependencies from https://github.com/dotnet/aspnetcore build 20201209.12

Microsoft.CodeAnalysis.Razor , Microsoft.AspNetCore.Testing , Microsoft.AspNetCore.Razor.Language , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.NET.Sdk.Razor , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions
 From Version 6.0.0-alpha.1.20609.10 -> To Version 6.0.0-alpha.1.20609.12

Dependency coherency updates

Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Logging,System.Diagnostics.DiagnosticSource,System.Resources.Extensions,System.Text.Encodings.Web,Microsoft.Extensions.DependencyModel,Microsoft.NETCore.App.Ref,Microsoft.NETCore.App.Internal,Microsoft.NETCore.App.Runtime.win-x64,Microsoft.NETCore.Platforms
 From Version 6.0.0-alpha.1.20560.10 -> To Version 6.0.0-alpha.1.20609.11 (parent: Microsoft.CodeAnalysis.Razor

* Update dependencies from https://github.com/dotnet/aspnetcore build 20201209.13

Microsoft.CodeAnalysis.Razor , Microsoft.AspNetCore.Testing , Microsoft.NET.Sdk.Razor , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions , Microsoft.AspNetCore.Razor.Language
 From Version 6.0.0-alpha.1.20609.10 -> To Version 6.0.0-alpha.1.20609.13

Dependency coherency updates

Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Logging,System.Diagnostics.DiagnosticSource,System.Resources.Extensions,System.Text.Encodings.Web,Microsoft.Extensions.DependencyModel,Microsoft.NETCore.App.Ref,Microsoft.NETCore.App.Internal,Microsoft.NETCore.App.Runtime.win-x64,Microsoft.NETCore.Platforms
 From Version 6.0.0-alpha.1.20560.10 -> To Version 6.0.0-alpha.1.20609.11 (parent: Microsoft.CodeAnalysis.Razor

* Update dependencies from https://github.com/dotnet/aspnetcore build 20201210.3

Microsoft.CodeAnalysis.Razor , Microsoft.NET.Sdk.Razor , Microsoft.AspNetCore.Testing , Microsoft.AspNetCore.Razor.Language , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions
 From Version 6.0.0-alpha.1.20609.10 -> To Version 6.0.0-alpha.1.20610.3

Dependency coherency updates

Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Logging,System.Diagnostics.DiagnosticSource,System.Resources.Extensions,System.Text.Encodings.Web,Microsoft.Extensions.DependencyModel,Microsoft.NETCore.App.Ref,Microsoft.NETCore.App.Internal,Microsoft.NETCore.App.Runtime.win-x64,Microsoft.NETCore.Platforms
 From Version 6.0.0-alpha.1.20560.10 -> To Version 6.0.0-alpha.1.20609.15 (parent: Microsoft.CodeAnalysis.Razor

* Remove usage of Microsoft.Netcore.App.Internal

* Update VSIX binding redirects for Configuration and Primitives dependenies.

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Will Godbe <wigodbe@microsoft.com>
Co-authored-by: N. Taylor Mullen <nimullen@microsoft.com>
2020-12-10 12:00:27 -08:00
N. Taylor Mullen 55d7facb72
Delegate InvokeKind to sub-languages. (#2804)
* Delegate InvokeKind to sub-languages.

- When the VS language server platform's Json converters are added to our JsonRpc object we're able to see additional information as part of LSP completion requests. This additional information can help influence our sub-languages to "do the right thing".
    - To add JsonConverters to our JsonRpc object I had to change the way we construct the object. Also, since we can't rely on a newer LSP protocol version quite yet I had to copy and paste their converter additions into one of our own.
- Updated two existing tests to validate that the `InvokeKind` flows properly.

Fixes dotnet/aspnetcore#27927

* Addressed code review comments.
2020-12-10 19:03:39 +00:00
dotnet-maestro[bot] 606a48f5db
Update dependencies from https://github.com/dotnet/aspnetcore build 20201209.10 (#2805)
[master] Update dependencies from dotnet/aspnetcore
2020-12-10 01:35:20 +00:00
dotnet-maestro[bot] 82de2a3983
Update dependencies from https://github.com/dotnet/aspnetcore build 20201209.4 (#2803)
[master] Update dependencies from dotnet/aspnetcore
2020-12-09 22:36:40 +00:00
dotnet-maestro[bot] ec6a1acf9b
Update dependencies from https://github.com/dotnet/aspnetcore build 20201209.2 (#2802)
[master] Update dependencies from dotnet/aspnetcore
2020-12-09 18:39:00 +00:00
dotnet-maestro[bot] 309212fd64
Update dependencies from https://github.com/dotnet/aspnetcore build 20201208.5 (#2801)
[master] Update dependencies from dotnet/aspnetcore
2020-12-09 00:22:39 +00:00
dotnet-maestro[bot] 11ecc86e91
Update dependencies from https://github.com/dotnet/aspnetcore build 20201208.3 (#2800)
[master] Update dependencies from dotnet/aspnetcore
2020-12-08 22:06:10 +00:00
Ryan Brandenburg ad4b5f2c00
Code cleanup (#2789)
Code cleanup
2020-12-08 13:14:21 -08:00
dotnet-maestro[bot] 0dbf248075
[master] Update dependencies from dotnet/aspnetcore dotnet/arcade (#2794)
[master] Update dependencies from dotnet/aspnetcore dotnet/arcade
2020-12-08 18:09:57 +00:00
Tanay Parikh 2bcc9bbb58
Remove ProjectSupportsRazorLSP Cache (#2798)
This is (suspected to be) causing an issue in the Codespaces environment where the first file isn't appropriately classified as being LSP and consequently we get a non-LSP experience for it. No strong repro for this unfortunately.

Fixes: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1255364
Fixes: https://github.com/dotnet/aspnetcore/issues/28484
2020-12-07 16:39:45 -05:00
Tanay Parikh feb060660b
HTML onTypeRename Support (#2795)
* HTML onTypeRename Support

* PR Feedback
2020-12-02 21:55:17 +00:00
Safia Abdalla a76afe2e79
Enhance support for configuring debuggers used for Blazor WASM apps (#2774)
* Use .NET debugger to launch app server
* Add support for config properties and fix launch
* Update options description
* Add supported config options to options
2020-11-30 14:32:42 -08:00
dotnet-maestro[bot] 3cb980fadd
Update dependencies from https://github.com/dotnet/aspnetcore build 20201128.2 (#2793)
[master] Update dependencies from dotnet/aspnetcore
2020-11-29 05:05:24 +00:00
dotnet-maestro[bot] bde3575caa
Update dependencies from https://github.com/dotnet/aspnetcore build 20201127.2 (#2792)
[master] Update dependencies from dotnet/aspnetcore
2020-11-27 21:57:28 +00:00
dotnet-maestro[bot] 1f06bbc7f3
Update dependencies from https://github.com/dotnet/aspnetcore build 20201126.2 (#2791)
[master] Update dependencies from dotnet/aspnetcore
2020-11-27 06:57:41 +00:00
dotnet-maestro[bot] d502a39c48
Update dependencies from https://github.com/dotnet/aspnetcore build 20201125.6 (#2790)
[master] Update dependencies from dotnet/aspnetcore
2020-11-26 02:22:51 +00:00
dotnet-maestro[bot] 07e8dd2645
Update dependencies from https://github.com/dotnet/aspnetcore build 20201125.5 (#2788)
[master] Update dependencies from dotnet/aspnetcore
2020-11-26 00:45:06 +00:00
Ryan Brandenburg d1e1e11d34
Fix VSCode SemanticTokens (#2781) 2020-11-25 16:25:07 -08:00
dotnet-maestro[bot] 967c93149a
Update dependencies from https://github.com/dotnet/aspnetcore build 20201125.4 (#2787)
[master] Update dependencies from dotnet/aspnetcore
2020-11-25 23:20:31 +00:00
Ajay Bhargav B 19fe9d15bb
Workaround to support curly-brace OnAutoInsert (#2779)
* Workaround to support curly-brace OnAutoInsert

* feedback
2020-11-25 21:50:01 +00:00
dotnet-maestro[bot] 997b71ccf2
Update dependencies from https://github.com/dotnet/aspnetcore build 20201125.3 (#2786)
[master] Update dependencies from dotnet/aspnetcore
2020-11-25 21:28:56 +00:00
dotnet-maestro[bot] 4b763d4cac
Update dependencies from https://github.com/dotnet/aspnetcore build 20201125.2 (#2785)
[master] Update dependencies from dotnet/aspnetcore
2020-11-25 16:01:21 +00:00
dotnet-maestro[bot] 51222bd7d2
Update dependencies from https://github.com/dotnet/aspnetcore build 20201124.8 (#2784)
[master] Update dependencies from dotnet/aspnetcore
2020-11-25 06:03:43 +00:00
dotnet-maestro[bot] cad6dfee08
Update dependencies from https://github.com/dotnet/aspnetcore build 20201124.7 (#2783)
[master] Update dependencies from dotnet/aspnetcore
2020-11-25 04:08:14 +00:00
dotnet-maestro[bot] 8e1be2a259
Update dependencies from https://github.com/dotnet/aspnetcore build 20201124.6 (#2782)
[master] Update dependencies from dotnet/aspnetcore
2020-11-25 02:29:57 +00:00
dotnet-maestro[bot] d24f13065a
[master] Update dependencies from dotnet/aspnetcore (#2780)
[master] Update dependencies from dotnet/aspnetcore
2020-11-25 00:37:24 +00:00
dotnet-maestro[bot] 1fc5de4310
Update dependencies from https://github.com/dotnet/aspnetcore build 20201124.3 (#2778)
[master] Update dependencies from dotnet/aspnetcore
2020-11-24 21:31:24 +00:00
dotnet-maestro[bot] d3e23789b4
Update dependencies from https://github.com/dotnet/aspnetcore build 20201124.2 (#2777)
[master] Update dependencies from dotnet/aspnetcore
2020-11-24 18:45:29 +00:00
dotnet-maestro[bot] 5f384912f6
[master] Update dependencies from dotnet/aspnetcore (#2776)
[master] Update dependencies from dotnet/aspnetcore
2020-11-24 09:25:44 +00:00
dotnet-maestro[bot] d88527ff24
Update dependencies from https://github.com/dotnet/aspnetcore build 20201123.9 (#2775)
[master] Update dependencies from dotnet/aspnetcore
2020-11-23 23:36:21 +00:00
dotnet-maestro[bot] d36791fe64
Update dependencies from https://github.com/dotnet/aspnetcore build 20201123.4 (#2773)
[master] Update dependencies from dotnet/aspnetcore
2020-11-23 18:54:56 +00:00
dotnet-maestro[bot] 315da53c96
Update dependencies from https://github.com/dotnet/aspnetcore build 20201123.2 (#2772)
[master] Update dependencies from dotnet/aspnetcore
2020-11-23 16:10:18 +00:00
dotnet-maestro[bot] 81335b2b83
Update dependencies from https://github.com/dotnet/arcade build 20201117.7 (#2771)
[master] Update dependencies from dotnet/arcade
2020-11-23 14:08:01 +00:00