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

15299 Коммитов

Автор SHA1 Сообщение Дата
dotnet bot c5b9ab8160
Merge release/dev17.11 to release/dev17.12 (#10840)
This is an automatically generated pull request from release/dev17.11
into release/dev17.12.


Once all conflicts are resolved and all the tests pass, you are free to
merge the pull request. 🐯

## Troubleshooting conflicts

### Identify authors of changes which introduced merge conflicts
Scroll to the bottom, then for each file containing conflicts copy its
path into the following searches:
- https://github.com/dotnet/razor/find/release/dev17.11
- https://github.com/dotnet/razor/find/release/dev17.12

Usually the most recent change to a file between the two branches is
considered to have introduced the conflicts, but sometimes it will be
necessary to look for the conflicting lines and check the blame in each
branch. Generally the author whose change introduced the conflicts
should pull down this PR, fix the conflicts locally, then push up a
commit resolving the conflicts.

### Resolve merge conflicts using your local repo
Sometimes merge conflicts may be present on GitHub but merging locally
will work without conflicts. This is due to differences between the
merge algorithm used in local git versus the one used by GitHub.
``` bash
git fetch --all
git checkout -t upstream/merges/release/dev17.11-to-release/dev17.12
git reset --hard upstream/release/dev17.12
git merge upstream/release/dev17.11
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.11-to-release/dev17.12 --force
```
2024-09-04 20:54:40 -07:00
dotnet bot d6f6a52861
Merge release/dev17.10 to release/dev17.11 (#10833)
This is an automatically generated pull request from release/dev17.10
into release/dev17.11.


Once all conflicts are resolved and all the tests pass, you are free to
merge the pull request. 🐯

## Troubleshooting conflicts

### Identify authors of changes which introduced merge conflicts
Scroll to the bottom, then for each file containing conflicts copy its
path into the following searches:
- https://github.com/dotnet/razor/find/release/dev17.10
- https://github.com/dotnet/razor/find/release/dev17.11

Usually the most recent change to a file between the two branches is
considered to have introduced the conflicts, but sometimes it will be
necessary to look for the conflicting lines and check the blame in each
branch. Generally the author whose change introduced the conflicts
should pull down this PR, fix the conflicts locally, then push up a
commit resolving the conflicts.

### Resolve merge conflicts using your local repo
Sometimes merge conflicts may be present on GitHub but merging locally
will work without conflicts. This is due to differences between the
merge algorithm used in local git versus the one used by GitHub.
``` bash
git fetch --all
git checkout -t upstream/merges/release/dev17.10-to-release/dev17.11
git reset --hard upstream/release/dev17.11
git merge upstream/release/dev17.10
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.10-to-release/dev17.11 --force
```
2024-09-04 16:04:26 -07:00
dotnet bot 1d04db3d31
Merge release/dev17.11 to release/dev17.12 (#10832)
This is an automatically generated pull request from release/dev17.11
into release/dev17.12.


Once all conflicts are resolved and all the tests pass, you are free to
merge the pull request. 🐯

## Troubleshooting conflicts

### Identify authors of changes which introduced merge conflicts
Scroll to the bottom, then for each file containing conflicts copy its
path into the following searches:
- https://github.com/dotnet/razor/find/release/dev17.11
- https://github.com/dotnet/razor/find/release/dev17.12

Usually the most recent change to a file between the two branches is
considered to have introduced the conflicts, but sometimes it will be
necessary to look for the conflicting lines and check the blame in each
branch. Generally the author whose change introduced the conflicts
should pull down this PR, fix the conflicts locally, then push up a
commit resolving the conflicts.

### Resolve merge conflicts using your local repo
Sometimes merge conflicts may be present on GitHub but merging locally
will work without conflicts. This is due to differences between the
merge algorithm used in local git versus the one used by GitHub.
``` bash
git fetch --all
git checkout -t upstream/merges/release/dev17.11-to-release/dev17.12
git reset --hard upstream/release/dev17.12
git merge upstream/release/dev17.11
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.11-to-release/dev17.12 --force
```
2024-09-04 14:39:13 -07:00
David Wengier 976f723840
Merge branch 'release/dev17.12' into merges/release/dev17.11-to-release/dev17.12 2024-09-05 07:01:28 +10:00
David Wengier cb2fd72b5f
Merge branch 'release/dev17.11' into merges/release/dev17.10-to-release/dev17.11 2024-09-05 06:58:43 +10:00
dotnet-maestro[bot] 187962c177
[release/dev17.10] Update dependencies from dotnet/arcade (#10529)
* Update dependencies from https://github.com/dotnet/arcade build 20240624.1

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24324.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24324.7

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24324.7

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24324.7

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24324.7

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24326.4

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24326.4

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24328.2

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24328.2

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24352.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24352.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24352.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24352.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24352.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24352.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24352.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24359.3

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24360.5

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24360.5

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24360.5

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24360.5

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24360.5

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24360.5

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24360.5

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24366.7

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24367.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24367.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24367.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24367.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24367.1

* 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

* 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

* 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

* 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

* 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

* 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

* 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

* 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

* 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

* 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

* 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

* 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

* 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

* 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

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24376.1 -> To Version 8.0.0-beta.24412.1

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24412.1 -> To Version 8.0.0-beta.24413.2

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24413.2 -> To Version 8.0.0-beta.24421.4

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

Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24421.4 -> To Version 8.0.0-beta.24426.2

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-09-04 09:00:43 +02:00
dotnet-maestro[bot] 41acbdeb66
Update dependencies from https://github.com/dotnet/arcade build 20240826.2 (#10808)
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24421.4 -> To Version 8.0.0-beta.24426.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-09-03 23:00:56 -07:00
Phil Allen 5eb9d0c25a
Fix find all references calls to Roslyn (#10807)
Fixes integration test failures in Find All References.

Roslyns LSP types got much more spec compliant in
https://github.com/dotnet/roslyn/pull/73911 and we were never sending
the `Context` property in our request, so deserialization failed on
their end.
2024-08-28 10:27:06 -07:00
Chris Sienkiewicz f35b6c6fe9
Change UseConsolidatedMvcViews to default to true (#10795)
* Change UseConsolidatedMvcViews to default to true
* Update baselines
* Update LSP test
2024-08-28 10:11:29 -07:00
Phil Allen 8e11180508
Fix provisional completion corrupting generated C# documents (#10806)
Fixes https://github.com/dotnet/razor/issues/10759

Initially when investigating this I was digging into buffer versions and
race conditions, but now that the editor fix is in, and we are self
versioned, the bug stood out much more obviously: A character offset was
being passed in to a parameter that expected a length 🤦‍♂️

Sadly none of the `RazorCustomMessageTarget` code is testable. Cohosting
will make this trivial though, as we would simply create a new
`Document` with the provisional change, and drop it on the floor when
we're finished.
2024-08-28 09:23:15 -07:00
David Wengier ec671dbc8a Fix find all references calls to Roslyn 2024-08-28 21:12:33 +10:00
David Wengier 39942a204a When undoing provisional completion, don't accidentally delete a huge large chunk of the generated file 2024-08-28 16:59:21 +10:00
dotnet bot da86194b6a
Merge release/dev17.11 to release/dev17.12 (#10785)
This is an automatically generated pull request from release/dev17.11
into release/dev17.12.


Once all conflicts are resolved and all the tests pass, you are free to
merge the pull request. 🐯

## Troubleshooting conflicts

### Identify authors of changes which introduced merge conflicts
Scroll to the bottom, then for each file containing conflicts copy its
path into the following searches:
- https://github.com/dotnet/razor/find/release/dev17.11
- https://github.com/dotnet/razor/find/release/dev17.12

Usually the most recent change to a file between the two branches is
considered to have introduced the conflicts, but sometimes it will be
necessary to look for the conflicting lines and check the blame in each
branch. Generally the author whose change introduced the conflicts
should pull down this PR, fix the conflicts locally, then push up a
commit resolving the conflicts.

### Resolve merge conflicts using your local repo
Sometimes merge conflicts may be present on GitHub but merging locally
will work without conflicts. This is due to differences between the
merge algorithm used in local git versus the one used by GitHub.
``` bash
git fetch --all
git checkout -t upstream/merges/release/dev17.11-to-release/dev17.12
git reset --hard upstream/release/dev17.12
git merge upstream/release/dev17.11
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.11-to-release/dev17.12 --force
```
2024-08-27 15:46:50 -07:00
David Barbet 79c46c0fdf Merge remote-tracking branch 'upstream/release/dev17.11' into merges/release/dev17.11-to-release/dev17.12 2024-08-27 15:26:08 -07:00
David Barbet 0dc0f6e79c
[release/dev17.12] Update dependencies from dotnet/arcade (#10799)
This pull request updates the following dependencies

[marker]: <> (Begin:761d0bec-2526-451d-fdf9-08dcc6cdae74)
## From https://github.com/dotnet/arcade
- **Subscription**: 761d0bec-2526-451d-fdf9-08dcc6cdae74
- **Build**: 20240826.3
- **Date Produced**: August 26, 2024 5:01:25 PM UTC
- **Commit**: e3bdd9a0f2a65fe037ba1adb2261eea48a840fa4
- **Branch**: refs/heads/main

[DependencyUpdate]: <> (Begin)

- **Updates**:
- **Microsoft.SourceBuild.Intermediate.arcade**: [from
9.0.0-beta.24352.2 to 9.0.0-beta.24426.3][1]
- **Microsoft.DotNet.Arcade.Sdk**: [from 9.0.0-beta.24352.2 to
9.0.0-beta.24426.3][1]

[1]: 4a7d983f83...e3bdd9a0f2

[DependencyUpdate]: <> (End)

- **Updates to .NET SDKs:**
  - Updates sdk.version to 9.0.100-preview.7.24407.12
  - Updates tools.dotnet to 9.0.100-preview.7.24407.12

[marker]: <> (End:761d0bec-2526-451d-fdf9-08dcc6cdae74)
2024-08-27 13:24:50 -07:00
dotnet-maestro[bot] 5a4e0a72b4 Update dependencies from https://github.com/dotnet/arcade build 20240826.3
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 9.0.0-beta.24352.2 -> To Version 9.0.0-beta.24426.3
2024-08-27 19:24:28 +00:00
David Barbet fe31c903d5
Snap for 17.12 P2 (#10793)
merge main into release/dev17.12 to update for 17.12 P2. Main is 17.12
P3.
2024-08-26 18:55:52 -07:00
David Wengier 156f016fff
Fix Formatting and On Enter integration tests (#10788)
Since the end of last week, these tests have been failing. Seems like
something changed on the platform side, perhaps a default value of a
setting. Have started a thread with the editor team to see if we need to
do more.
2024-08-27 07:12:11 +10:00
Chris Sienkiewicz aa024eb33f
[FUSE] Provide intellisense for @inject directives (#10771)
* When @Inject is missing the member name, generate a syntactically valid c# identifier so we get intellisense
* Emit an empty section when there is no typename
* Add tests and update baselines
2024-08-26 10:14:26 -07:00
David Wengier cdcef8e730 Force "Insert Spaces" to be true for Razor documents 2024-08-26 12:59:55 +10:00
David Wengier aeca1e4a27 Don't crash because another team has a bad assumption 2024-08-26 12:59:41 +10:00
David Barbet b5e50df997
[release/dev17.11] Update dependencies from dotnet/arcade (#10552)
This pull request updates the following dependencies

[marker]: <> (Begin:aa7f5ce7-ed24-46a1-195c-08dc952fc8a2)
## From https://github.com/dotnet/arcade
- **Subscription**: aa7f5ce7-ed24-46a1-195c-08dc952fc8a2
- **Build**: 20240821.4
- **Date Produced**: August 21, 2024 6:41:26 PM UTC
- **Commit**: 4460b755f3c7c89e9660d9580ff79afc4218dd85
- **Branch**: refs/heads/release/8.0

[DependencyUpdate]: <> (Begin)

- **Updates**:
- **Microsoft.SourceBuild.Intermediate.arcade**: [from
8.0.0-beta.24413.2 to 8.0.0-beta.24421.4][44]
- **Microsoft.DotNet.Arcade.Sdk**: [from 8.0.0-beta.24413.2 to
8.0.0-beta.24421.4][44]

[44]: 51321b7e15...4460b755f3

[DependencyUpdate]: <> (End)


[marker]: <> (End:aa7f5ce7-ed24-46a1-195c-08dc952fc8a2)
2024-08-23 10:32:18 -07:00
Dustin Campbell 3423142c7d
Remove ItemCollection from CodeRenderingContext (#10764)
Because of a dare from @333fred, I'm currently on a crusade to remove
`ItemCollection` from the Razor Compiler completely. Previously, I
removed `ItemCollection` from `TagHelperDescriptorProviderContext`
(#10720). This time, I'm removing it from `CodeRenderingContext`.

It turns out that every `CodeRenderingContext` greedily creates an
`ItemCollection`, though there are only ever two things stored there:

1. A string to use for new lines in `CodeWriter`.
2. A string representing "suppress IDs", which is already specified in
`RazorCodeGenerationOptions`.

These two items were really present as a hook that compiler tests could
set. However, it's much easier and less wasteful to elevate both items
to `RazorCodeGenerationOptions` and make tests set the options directly.

I made a few other refactorings as part of this change:

- I merged several abstract base classes with their single default
concrete type:
  - `CodeRenderingContext` and `DefaultCodeRenderingContext`
  - `RazorCSharpDocument` and `DefaultRazorCSharpDocument`,
  - `RazorCodeGenerationOptions` and `DefaultRazorCodeGenerationOptions`
- `RazorCodeGenerationOptionsBuilder` and
`DefaultRazorCodeGenerationOptionsBuilder`.
- Reworked `RazorCodeGenerationOptions` and introduced
`RazorCodeGenerationOptionsFlags` to track its boolean fields.
- Cleaned up `RazorCSharpDocument` and unified its collections on
`ImmutableArray<>` rather than `IReadOnlyList<>`.
- Enabled nullability annotations for several types.
- Used more pooled collections in `CodeRenderingContext`.

Note: I was careful with my commit history, and it should be clean
enough to review commit-by-commit if that's your preference.
2024-08-22 13:53:35 -07:00
dotnet-maestro[bot] 6970dee518 Update dependencies from https://github.com/dotnet/arcade build 20240821.4
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24413.2 -> To Version 8.0.0-beta.24421.4
2024-08-22 13:05:55 +00:00
dotnet bot fc8332fdd7
Merge release/dev17.12 to main (#10774)
This is an automatically generated pull request from release/dev17.12
into main.


Once all conflicts are resolved and all the tests pass, you are free to
merge the pull request. 🐯

## Troubleshooting conflicts

### Identify authors of changes which introduced merge conflicts
Scroll to the bottom, then for each file containing conflicts copy its
path into the following searches:
- https://github.com/dotnet/razor/find/release/dev17.12
- https://github.com/dotnet/razor/find/main

Usually the most recent change to a file between the two branches is
considered to have introduced the conflicts, but sometimes it will be
necessary to look for the conflicting lines and check the blame in each
branch. Generally the author whose change introduced the conflicts
should pull down this PR, fix the conflicts locally, then push up a
commit resolving the conflicts.

### Resolve merge conflicts using your local repo
Sometimes merge conflicts may be present on GitHub but merging locally
will work without conflicts. This is due to differences between the
merge algorithm used in local git versus the one used by GitHub.
``` bash
git fetch --all
git checkout -t upstream/merges/release/dev17.12-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.12
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.12-to-main --force
```
2024-08-21 02:32:14 -07:00
dotnet bot d7c7a32b2b
Merge release/dev17.11 to release/dev17.12 (#10767)
This is an automatically generated pull request from release/dev17.11
into release/dev17.12.


Once all conflicts are resolved and all the tests pass, you are free to
merge the pull request. 🐯

## Troubleshooting conflicts

### Identify authors of changes which introduced merge conflicts
Scroll to the bottom, then for each file containing conflicts copy its
path into the following searches:
- https://github.com/dotnet/razor/find/release/dev17.11
- https://github.com/dotnet/razor/find/release/dev17.12

Usually the most recent change to a file between the two branches is
considered to have introduced the conflicts, but sometimes it will be
necessary to look for the conflicting lines and check the blame in each
branch. Generally the author whose change introduced the conflicts
should pull down this PR, fix the conflicts locally, then push up a
commit resolving the conflicts.

### Resolve merge conflicts using your local repo
Sometimes merge conflicts may be present on GitHub but merging locally
will work without conflicts. This is due to differences between the
merge algorithm used in local git versus the one used by GitHub.
``` bash
git fetch --all
git checkout -t upstream/merges/release/dev17.11-to-release/dev17.12
git reset --hard upstream/release/dev17.12
git merge upstream/release/dev17.11
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.11-to-release/dev17.12 --force
```
2024-08-21 02:01:04 -07:00
David Wengier 2723187736
Cohost Document Symbols (#10728)
Fixes https://github.com/dotnet/razor/issues/10689
Roslyn side: https://github.com/dotnet/roslyn/pull/74730

Looks good, despite the Roslyn side having VS deps for images:

![image](https://github.com/user-attachments/assets/44d2ac8d-f7c1-46ec-9572-15bfd91bed28)
2024-08-21 13:34:46 +10:00
David Wengier 687a473d0d Fix after merge 2024-08-21 11:58:33 +10:00
David Wengier 55c3058eb7 Merge remote-tracking branch 'upstream/main' into CohostDocumentSymbol
# Conflicts:
#	eng/targets/Services.props
#	src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorLanguageServer.cs
#	src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/RazorServices.cs
2024-08-21 11:55:14 +10:00
David Wengier ca93e0ea0e PR feedback 2024-08-21 11:54:07 +10:00
David Wengier 0bb4e6e55e Bump Roslyn version 2024-08-21 11:53:28 +10:00
Alex Gavrilov d38698fa24
Moving formatting service to common layer (#10761)
* Moving RazorFormattingService to common layer

* Cleanup

* Switch Razor LSP server code to use RazorFormattingService from common layer

* Removing HTML formatting from common layer (for now)

It requires services not easily available and will require extra work. For now leaving it in LSP server layer. Current need for the formatting service in cohosting is for OnAutoInsert which doesn't need HTML formatting.

* Move AdhocServices, AdhoWorkspaceServices to common layer

* Cleanup moved resources

* Basic implementations for remote formatting classes

* Removing hardcoded option value

* Cleanup per CR suggestions

* Cleanup doc-comments
2024-08-21 01:49:14 +00:00
David Wengier acc84f69cf
Allow LSP and cohosting to provide specialized methods to get a syntax tree (#10765)
This PR is a classic self-nerd-snipe, and resolves this comment:
https://github.com/dotnet/razor/pull/10750#discussion_r1719087058

Also inadvertently found a slight "bug" with the existing go to def code
in cohosting. Bug is in quotes because the actual user behaviour
probably was identical in 99% of cases.
2024-08-21 11:08:49 +10:00
David Wengier a3edec0c8a Move GetSyntaxTree to document snapshot 2024-08-21 10:17:06 +10:00
David Wengier 53fec86c28 Inject file path service into the document snapshot 2024-08-21 09:49:42 +10:00
David Wengier 7d5b2060c6 Remove code document parameter and just use document snapshot 2024-08-21 09:06:50 +10:00
Phil Allen 1d3c82c092
Update NOTICE.txt (#10768) 2024-08-20 13:19:01 -07:00
Fred Silberberg 68650a7d94
Allow @@ as a fallback (#10752)
* Added new tests for the specific regressed scenario.

* Allow `@@` sequences. Fixes https://github.com/dotnet/sdk/issues/42730 for now. When we move to the new lexer, these will once again be disallowed; attempting to use runtime compilation will necessitate using the native lexer.

* Fixup legacy test baselines
2024-08-20 10:50:58 -07:00
Dustin Campbell 934fea83a7 Add comments explaining the aggressive inlining behavior of EnumExtensions 2024-08-20 10:38:02 -07:00
Dustin Campbell b58f180910 Fix goofy whitespace 2024-08-20 10:24:06 -07:00
David Wengier 7470352912 Rework how we get generated documents
In light of "should we get rid of document context" convo this morning, figured this made sense to do (and I needed _something_ on IDocumentSnapshot in order to actually make this whole idea work)
2024-08-20 17:11:29 +10:00
David Wengier a8b425907f Directly test the component definition service in cohosting
See comment in the file, but essentially this is the only way for the code that returns the generated documents syntax tree to be hit in cohosting.
2024-08-20 17:10:49 +10:00
David Wengier ad16b168df Add missing test case 2024-08-20 17:09:56 +10:00
David Wengier 5ef490fbf3 Defer to C# for component attribute GTD in cohosting
This was a subtle future bug, that we would have hit when we removed the C# syntax tree bits in future. By checking for Razor GTD first we weren't deferring to Roslyn for plain attributes (ie, the case without `@bind-` in the tests) which means at best we do some extra unnecessary work, and at worst we could lose features for things Roslyn supports but we don't.

I did not intend to find this bug when I started. Sorry for missing it in the PR Dustin. The key is that `ignoreAttributes` should have been `true` when porting over the code, and changing that would have made the test fail in your branch.
2024-08-20 17:09:47 +10:00
David Wengier efceb90f2d Allow LSP and cohosting to provide specialized methods to get a syntax tree for a C# document 2024-08-20 17:06:26 +10:00
David Wengier e16582150b
Support component rename from an end tag (#10762)
Fixes https://github.com/dotnet/razor/issues/10717
2024-08-20 10:29:53 +10:00
Dustin Campbell 6593264ac6 Clean up and enable nullability for CodeRenderingContext and DefaultDocumentWriter 2024-08-19 17:16:07 -07:00
Dustin Campbell 7a9f32ea37 Pass RazorSourceDocument into CodeRenderingContext rather than RazorCodeDocument 2024-08-19 16:58:54 -07:00
Dustin Campbell 1eb601c417 Push NewLine setting into RazorCodeGenerationOptions
This change stops pushing the NewLine value into RazorCodeDocument.Items.
2024-08-19 16:58:54 -07:00
Dustin Campbell 28bfd61d38 Use SuppressUniqueIds exclusively from RazorCodeGenerationOptions
This change stops pushing the SuppressUniqueIds value into RazorCodeDocument.Items.
2024-08-19 16:58:54 -07:00