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

15299 Коммитов

Автор SHA1 Сообщение Дата
Rikki Gibson 88b3813e83
Update PublishData.json (#10685) 2024-07-30 11:25:34 -07:00
dotnet-maestro[bot] 4ef57e50aa Update dependencies from https://github.com/dotnet/arcade build 20240726.1
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24376.1
2024-07-30 13:28:52 +00:00
Rikki Gibson 8806e92225
Snap Razor 17.2P1 (#10681) 2024-07-29 23:47:55 +00:00
dotnet-maestro[bot] a14113629d Update dependencies from https://github.com/dotnet/arcade build 20240726.1
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24376.1
2024-07-29 13:20:31 +00:00
dotnet-maestro[bot] 2d8f6a49f4 Update dependencies from https://github.com/dotnet/arcade build 20240726.1
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24376.1
2024-07-28 13:19:59 +00:00
dotnet-maestro[bot] cfb4682d3c Update dependencies from https://github.com/dotnet/arcade build 20240726.1
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24376.1
2024-07-27 13:19:13 +00:00
Fred Silberberg 6cf62038c2
Disable nullable warnings on .NET Standard and Framework (#10677)
Those platforms do not have nullable-annotated BCLs, so things like `Debug.Assert` do not work as expected and cause spurious warnings. This is the same approach that Roslyn takes: https://github.com/dotnet/roslyn/blob/main/eng/targets/Imports.targets#L35-L42.
2024-07-26 15:07:57 -07:00
dotnet-maestro[bot] bb46e7919f Update dependencies from https://github.com/dotnet/arcade build 20240726.1
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24376.1
2024-07-26 13:33:28 +00:00
Jan Jones 5f0c07a50d
Match component properties as case insensitive (#10657)
* Add tests

* Match component properties as case insensitive

* Allow mapped code to differ in case

* Update new baselines

* Update pre-existing baselines

* Add more tests

* Match bind attributes case insensitive too

* Update baselines

* Test EditorRequired with different casing

* Use CaseSensitive property during bind matching

* Improve loop efficiency
2024-07-26 10:25:41 +02:00
David Wengier 40e409e33b Fix excerpt service to allow for multi line verbatim strings that kinda are but kinda aren't supported in Razor 2024-07-26 14:46:56 +10:00
dotnet-maestro[bot] ccac853bc3 Update dependencies from https://github.com/dotnet/arcade build 20240722.3
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24372.3
2024-07-25 13:30:01 +00:00
David Wengier 08f7362727 Cleanup 2024-07-25 22:21:57 +10:00
David Wengier 0fe459e8e7 Fixes after rebasing on new extensions/conversions API 2024-07-25 21:58:29 +10:00
David Wengier ed53daf7c4 Cleanup 2024-07-25 17:38:16 +10:00
David Wengier 51756c1a79 Cleanup 2024-07-25 17:38:16 +10:00
David Wengier 3a21f347de Add inlay hint support to cohosting 2024-07-25 17:38:16 +10:00
David Wengier f179fb9259 Create isolated workspaces in case tests overlap
This was done because originally with inlay hints I was changing global options in Roslyn, but ended up moving away from that. Still makes sense though.
2024-07-25 17:38:16 +10:00
David Wengier 2437736ced Add more services tests 2024-07-25 17:38:16 +10:00
David Wengier 6e4cf07062 Don't regenerate documents more than once for the same snapshot 2024-07-25 17:38:16 +10:00
David Wengier 5191c8320a Switch GetHostDocumentEdits to take TextChange instead of TextEdit 2024-07-25 17:38:15 +10:00
Dustin Campbell 1d3de6295c
Clean up extension methods in MS.CA.Razor.Workspaces (#10670)
As I started looking at co-hosting support for Go to Definition, I
noticed that our extension methods for working with LSP types had
started to grow out of control. This is even more awkward now, since
we've got _two_ sets of LSP types in Razor for co-hosting:
Microsoft.VisualStudio.LanguageService.Protocol and
Roslyn.LanguageService.Protocol.

My commit history starts out helpful, but by the end, the commits are
quite a bit bigger as they focus specifically on LSP extensions and
updating relevant calling code.
2024-07-24 15:52:48 -07:00
Dustin Campbell 4c1e923e7e Move RazorCodeDocumentExtensions to MS.ANC.Razor.Language namespace 2024-07-24 14:34:44 -07:00
Dustin Campbell 84393fca9d Remove RazorCodeDocument.GetSourceText() extension method 2024-07-24 14:30:55 -07:00
Dustin Campbell 5887060d00 Remove arg checking and rework a few methods 2024-07-24 13:58:34 -07:00
Dustin Campbell f1d00c0773 Clean up TryGetAbsoluteIndex and friends 2024-07-24 13:25:00 -07:00
Dustin Campbell 00a09d62fd Remove ILogger from various extension methods 2024-07-24 12:09:33 -07:00
Dustin Campbell 708f1e0f0f Rename GetZeroWidthSpan to ToZeroWidthSpan 2024-07-24 11:39:27 -07:00
Dustin Campbell 10c1cd4e1e Use VsLspFactory tuple overloads in various places 2024-07-24 11:38:00 -07:00
Dustin Campbell b24c3614a7 Add CreateTextEdit methods to RoslynLspFactory 2024-07-24 11:26:03 -07:00
Dustin Campbell 418ede4829 Add CreatePosition and CreateRange extension methods that take tuples 2024-07-24 11:26:02 -07:00
Dustin Campbell e6cc7cb164 Rename EmptyPosition and EmptyRange to DefaultPosition and DefaultRange 2024-07-24 11:26:02 -07:00
Dustin Campbell da1c0ac0ad Use IsSingleLine() and IsZeroWidth() in a couple of places 2024-07-24 11:25:56 -07:00
Dustin Campbell 2c62095253 Add Range.IsZeroWidth() extension method 2024-07-24 08:41:40 -07:00
Dustin Campbell 2cc8b2d558 Change "Collapse" to "ZeroWidth" 2024-07-24 08:40:04 -07:00
dotnet-maestro[bot] e932e4806e Update dependencies from https://github.com/dotnet/arcade build 20240722.3
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24372.3
2024-07-24 13:16:13 +00:00
Dustin Campbell d1c06ac503 Don't add global usings for MS.VS.LS.Protocol.Range in .csproj files 2024-07-23 17:49:27 -07:00
Dustin Campbell 8f7162f15a Clean up remaining extensions 2024-07-23 17:19:12 -07:00
Dustin Campbell 6993bab359 Clean up StringExtensions and move to System namespace 2024-07-23 17:04:42 -07:00
Dustin Campbell 7a291abf01 Clean up RazorCodeDocumentExtensions 2024-07-23 17:01:33 -07:00
Dustin Campbell 684af14712 Clean up Project|SolutionExtensions 2024-07-23 16:55:42 -07:00
Dustin Campbell 5e72b6d3d9 Clean up EnumerableExtensions 2024-07-23 16:52:20 -07:00
Dustin Campbell 82f2030499 Move IDocumentSnapshotExtensions to ProjectSystem folder 2024-07-23 16:51:50 -07:00
Dustin Campbell da767fcf70 Clean up VsLspFactory and RoslynLspFactory 2024-07-23 16:42:27 -07:00
David Wengier 4c306a0daa
Update InsertingRazorIntoVSCodeCSharp.md (#10666) 2024-07-24 06:34:39 +10:00
Fred Silberberg 57e73c9b5f
Remove CSharpKeywordKind (#10648)
* Remove CSharpKeywordKind

This type effectively duplicates a lot of Roslyn's SyntaxKind. So we just use that instead.

* Fix cherry-pick

* Feedback: don't hard-code the text. Just use GetText for it.

* Remove unused line
2024-07-23 13:01:49 -07:00
Dustin Campbell 20f68f9f60 Move all Roslyn.LS.Protocol extension methods into RoslynLspExtensions 2024-07-23 10:55:59 -07:00
Dustin Campbell e313b8c3b2 Clean up RazorSyntax(Node|Token|Tree)Extensions 2024-07-23 10:37:37 -07:00
Dustin Campbell c23484eb12 Move all MS.VS.LS.Protocol extension methods into VsLspExtensions 2024-07-23 10:37:30 -07:00
Dustin Campbell 425009a282 Clean up and normalize more extension methods 2024-07-23 10:31:52 -07:00
Dustin Campbell d67e43be11 Change GetLinesAndOffsets to GetLinePositionSpan 2024-07-23 10:23:48 -07:00