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

12762 Коммитов

Автор SHA1 Сообщение Дата
Phil Allen e3966f005d Update VS Extensitibility Testing Xunit package 2023-12-07 09:42:29 -08:00
Phil Allen 976b87c8c8
Update BreakpointSpanTests.cs 2023-12-06 16:04:52 -08:00
Phil Allen f51e49f2f6
Update OnAutoInsertTests.cs 2023-12-06 15:25:17 -08:00
David Wengier fdfd63a1a6 Remove console writelines, and try setting up loggers earlier 2023-12-06 14:45:34 +11:00
David Wengier 149d8ff8ff Fix bug 2023-12-06 11:58:41 +11:00
David Wengier dc57f0c1fe Try adding Console.WriteLine calls 2023-12-06 11:07:38 +11:00
David Wengier c1ced1d34b Try updating VS Extension Testing 2023-12-06 11:07:31 +11:00
Phil Allen e0e4a49670 Next change 2023-12-05 13:01:01 -08:00
Phil Allen e14a8ffad8 Move up to the scouting queue 2023-12-05 12:07:44 -08:00
Phil Allen 5c41aa387f Back to 17.8 2023-12-05 10:57:55 -08:00
Phil Allen 492e11a9ad Updating signing.props 2023-12-05 09:41:17 -08:00
Phil Allen 56191617c4 Update to 17.9P1 2023-12-05 09:12:07 -08:00
Phil Allen bb1d740029 Update SDK tools to 17.8 2023-12-05 08:23:52 -08:00
dotnet bot 96a1ad3afc
Merge release/dev17.9 to main (#9662)
This is an automatically generated pull request from release/dev17.9
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.9
- 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.9-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.9
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.9-to-main --force
```
2023-12-05 02:13:47 -08:00
dotnet bot f40f3e53f4
Merge release/dev17.9 to main (#9651)
This is an automatically generated pull request from release/dev17.9
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.9
- 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.9-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.9
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.9-to-main --force
```
2023-12-04 14:38:06 -08:00
David Barbet 4887e15522
Update publishdata for 17.9 P2 (#9656)
### Summary of the changes

-

Fixes:
2023-12-04 13:25:43 -08:00
David Barbet 3b89e8c161
Update publishdata for 17.9 2023-12-04 10:58:21 -08:00
dotnet-maestro[bot] 2d191ab8c8
Update dependencies from https://github.com/dotnet/arcade build 20231128.2 (#9639)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XliffTasks
 From Version 9.0.0-beta.23577.2 -> To Version 9.0.0-beta.23578.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2023-12-02 23:07:23 +00:00
dotnet bot a024c40b25
Merge release/dev17.8 to release/dev17.9 (#9650)
This is an automatically generated pull request from release/dev17.8
into release/dev17.9.


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.8
- https://github.com/dotnet/razor/find/release/dev17.9

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.8-to-release/dev17.9
git reset --hard upstream/release/dev17.9
git merge upstream/release/dev17.8
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.8-to-release/dev17.9 --force
```
2023-12-01 10:47:26 -08:00
dotnet bot 2d9ae6e2f8
Merge release/dev17.8 to release/dev17.9 (#9641)
This is an automatically generated pull request from release/dev17.8
into release/dev17.9.


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.8
- https://github.com/dotnet/razor/find/release/dev17.9

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.8-to-release/dev17.9
git reset --hard upstream/release/dev17.9
git merge upstream/release/dev17.8
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.8-to-release/dev17.9 --force
```
2023-12-01 02:42:08 -08:00
Jan Jones 88e2fe1b69
Merge branch 'release/dev17.9' into merges/release/dev17.8-to-release/dev17.9 2023-12-01 11:06:53 +01:00
dotnet bot 9ba6281c64
Merge release/dev17.9 to main (#9640)
This is an automatically generated pull request from release/dev17.9
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.9
- 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.9-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.9
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.9-to-main --force
```
2023-12-01 02:05:31 -08:00
Phil Allen bad69ab143
Change pipelines to 'non-scouting' (#9642) (#9643) 2023-11-30 12:13:57 -08:00
Phil Allen 8c7fb27bf8
Change pipelines to 'non-scouting' (#9642) 2023-11-30 07:06:54 -08:00
David Wengier b72bb2a83c Merge remote-tracking branch 'upstream/release/dev17.8' into merges/release/dev17.8-to-release/dev17.9 2023-11-30 22:00:03 +11:00
David Wengier cba9a0bf81
Fix fallback project manager in the presence of linked files or shared projects (#9582)
* Add telemetry reporter dependency to the fallback project manager

* Make sure we never bring down project loading if there is a problem with the fallback bits

* Only support fallback documents that are in the project cone

* Make things more efficient, and cross platform

* Validate target paths

* Fix tests linux and mac (even though the fallback project manager never runs on linux or mac)
2023-11-29 23:49:32 -08:00
Andrew Hall dfac5e3cec
Publish on document change if the config file doesn't exist (#9634) 2023-11-29 12:05:42 -08:00
David Wengier 6d65ce8643 Fix post cherry-pick 2023-11-29 08:07:59 +11:00
David Wengier a873a1d592 Publish on document change if the config file doesn't exist
THIS IS THE BUG FIX
2023-11-29 07:51:30 +11:00
Rikki Gibson f1a00bbad9
Ship release/dev17.9 to VS main until VS snap (#9633) 2023-11-28 20:47:52 +00:00
Andrew Hall 5398f3af04
Fix RemoteInvocationException reporting (#9596)
The initial IFaultExceptionHandler MEF construction was no longer working due to refactoring. This changes it to no longer use MEF and just report directly.

Also update the ExceptionStrategy to ISerializable, since that will set the InnerException property if the other end of the connection is the same. This will make error reporting for us contain remote stacks instead of our own. If that's not the case, we still report as much as we can.

Anyone looking for more information on jsonrpc errors can look at microsoft/vs-streamjsonrpc@main/doc/exceptions.md
2023-11-28 20:35:18 +00:00
Jan Jones 82dae729be
Emit type arguments in correct order (#9621)
* Emit type arguments in correct order

* Add baselines
2023-11-28 20:48:11 +01:00
Jan Jones 642c050e94
Add `global::` prefix to `System.Action` (#9626)
* Add `global::` prefix to `System.Action`

* Update baselines
2023-11-28 20:47:22 +01:00
dotnet-maestro[bot] 7b4b0121a9
Update dependencies from https://github.com/dotnet/arcade build 20231127.2 (#9627)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XliffTasks
 From Version 9.0.0-beta.23572.2 -> To Version 9.0.0-beta.23577.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2023-11-28 14:09:00 +00:00
dotnet bot e07af27360
Merge release/dev17.9 to main (#9624)
This is an automatically generated pull request from release/dev17.9
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.9
- 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.9-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.9
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.9-to-main --force
```
2023-11-28 04:12:04 -08:00
Rikki Gibson 6951c49bf4
Update PublishData.json (#9623) 2023-11-27 21:47:40 -08:00
Rikki Gibson ea64e3cd3c
Snap 17.9.P2 (#9622) 2023-11-27 21:47:02 -08:00
David Wengier 0d5c41c89b
Log when formatting operations are being abandoned (#9617) 2023-11-28 09:12:41 +11:00
Dustin Campbell 77042ab5c2
Reduce allocations related to SyntaxListBuilder (#9612)
A couple days ago, @ToddGrun pointed me to some [Prism
data](https://prism.vsdata.io/failure/?query=ch%3Drelease%20r%3D17.8&eventType=allocation&failureType=dualdirection&failureHash=30151e5e-e8aa-2e4c-a22f-106e4d7f8e6c)
indicating that there's a lot of allocation due to
`SyntaxListBuilder.Grow(...)`. I dug in and made several changes that
should improve things.

1. `SyntaxListBuilder` is now pooled everywhere it's used. The builders
contain single arrays that can grow to a maximum of 512 entries. That
should eliminate the allocations that we're seeing in
`SyntaxListBuilder.Grow(...)`.
2. I introduced a `ChildNodesHelper` struct to avoid boxing
`ChildSyntaxList` to an `IReadOnlyList<SyntaxNode>` just to call
`Skip(1).ToList()` in a special case.
3. Updated code to avoid boxing `ImmutableArray<SyntaxTree>` to
`IReadOnlyList<SyntaxTree>` for imports.
4. Added helpers to avoid calling params arrays.

There are some unrelated clean up changes, so it might be useful to
review a commit at a time if those changes get in the way:

1. I've annotated `SyntaxNode`, `SyntaxList`, `SyntaxList<T>`,
`SyntaxListBuilder` and `SyntaxListBuilder<T>` for nullability.
2. I renamed the misspelled API, `RazorEnginePhaseBase.OnIntialized()`
to `RazorEnginePhaseBase.OnInitialized()`.
5. I refactored similar code in `FormattingVisitor` and
`ClassifiedSpanVisitor` to be shared. These algorithms were pretty much
identical, and I decided to refactor rather than update the code in both
places.
2023-11-27 13:59:54 -08:00
Dustin Campbell af45a17435 Prefer AssumeNotNull over the null forgiveness operator 2023-11-27 10:18:50 -08:00
Dustin Campbell e664422abe Return non-nullable ImmutableArray<T> from GetImportSyntaxTrees() 2023-11-27 09:35:00 -08:00
Dustin Campbell e2839bfb16 Remove extra word from comment 2023-11-27 09:01:27 -08:00
Dustin Campbell d366b87fbf Don't allow ChildNodesHelper.Count to be less than zero 2023-11-27 08:47:23 -08:00
David Wengier f1db4dfa5f Log when formatting operations are being abandoned 2023-11-24 14:13:24 +11:00
dotnet-maestro[bot] f3d9a0b07c
Update dependencies from https://github.com/dotnet/arcade build 20231122.2 (#9615)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XliffTasks
 From Version 9.0.0-beta.23570.1 -> To Version 9.0.0-beta.23572.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2023-11-23 15:12:37 +01:00
Dustin Campbell dd0740e67a Use pooled collections in a couple of places 2023-11-22 12:10:39 -08:00
Dustin Campbell 1250e3817e Add SyntaxListBuilderPool to reduce loads of SyntaxListBuilder allocations 2023-11-22 12:05:45 -08:00
Dustin Campbell 2ed51064e4 Add specialized SyntaxList<T>.Create methods to avoid using builders 2023-11-22 08:39:14 -08:00
Dustin Campbell ef323270ef Annotate SyntaxNode, SyntaxList and friends for nullability 2023-11-21 15:47:42 -08:00
Dustin Campbell 70b398572b Avoid boxing ImmutableArray<RazorSyntaxTree> for imports 2023-11-21 13:16:43 -08:00