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

14655 Коммитов

Автор SHA1 Сообщение Дата
Jan Jones fb0ed94b65
Revert "Update dependencies from https://github.com/dotnet/arcade build 20240624.1 (#10528)"
This reverts commit 2ad0a66ebd.
2024-06-25 09:52:41 +02:00
Jan Jones cb84e1f03d
Merge branch 'release/dev17.11' into main 2024-06-25 09:50:46 +02:00
David Wengier 18d72d520f
Add back roll forward to rzls (#10530)
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2088486

Seems this was inadvertently removed in
https://github.com/dotnet/razor/pull/10453

@ryzngard I'm pretty out of my depth here about what is required, but a
local build of rzls with this change does fix the problem. Are there any
other project properties that might be important, that I should bring
back?
2024-06-25 10:46:31 +10:00
David Wengier db922c7b56 Add back roll forward 2024-06-25 10:18:47 +10:00
dotnet-maestro[bot] 2ad0a66ebd
Update dependencies from https://github.com/dotnet/arcade build 20240624.1 (#10528)
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24321.3 -> To Version 8.0.0-beta.24324.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-24 16:14:18 +02:00
dotnet bot 786e50ff47
Merge release/dev17.10 to release/dev17.11 (#10519)
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-06-24 02:32:00 -07:00
Jan Jones 9aa439d8cc
Merge branch 'release/dev17.10' into release/dev17.11 2024-06-24 11:11:52 +02:00
dotnet-maestro[bot] 2cca9d6f95
[main] Update dependencies from dotnet/arcade (#10522)
* Update dependencies from https://github.com/dotnet/arcade build 20240621.3

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

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

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

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-24 10:15:52 +02:00
dotnet-maestro[bot] 6d70655fe3
[release/dev17.10] Update dependencies from dotnet/arcade (#10523)
* Update dependencies from https://github.com/dotnet/arcade build 20240621.3

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

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

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

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-24 10:15:29 +02:00
Andrew Hall 5790184ca1
Update insertion doc for vscode (#10482) 2024-06-22 02:16:08 +00:00
Matt Mitchell aadd3a0c99
Remove support for internal runtime downloads (#10516)
There is no flow from runtime to this repo, and the SAS variables are going away.
2024-06-21 11:08:53 +02:00
Matt Mitchell e9548dfcf0
Remove support for internal runtime downloads (#10515)
There is no flow from runtime to this repo, and the SAS variables are going away.
2024-06-21 11:08:27 +02:00
Matt Mitchell b4404959b5
Remove support for internal runtime downloads (#10513)
There is no flow from runtime to this repo, and the SAS variables are going away.
2024-06-21 11:07:16 +02:00
David Wengier a132922f0b
Decouple ContainedLanguage from Newtonsoft.Json (#10502)
In order to allow downstream consumers to have the freedom to move to
System.Text.Json, we have to update our public API to not rely on
JToken, and move to generics.
2024-06-21 08:50:34 +10:00
David Wengier f6e0d51e44
Don't use GetRequiredService in the OnAutoInsert endpoint (#10511)
I thought tackling https://github.com/dotnet/razor/issues/6955 might be
a good use of a Thursday night, and help paint a clearer picture for
cohosting, and then I found that OnAutoInsert was really the only
offender that would actually impact cohosting, so I just cleaned it up a
bit instead.
2024-06-21 08:46:51 +10:00
David Wengier e34270682d Fix argument check 2024-06-21 08:21:55 +10:00
David Wengier 6148bf8823 Missed a spot 2024-06-21 08:20:28 +10:00
Fred Silberberg cbe8f322ba
Remove ITextBuffer and ITextDocument (#10506)
As part of the move towards using the Roslyn lexer, we will need to stop operating on ITextDocument and ITextBuffer, as they abstract away source texts. The Roslyn lexer will need that source text; rather than update these abstractions to know about them, I've opted to remove them, as the abstraction doesn't actually serve any purpose for us.
2024-06-20 17:56:50 +00:00
David Wengier fed5c0e3a0 Don't use GetRequiredService in the OnAutoInsert endpoint 2024-06-20 17:30:11 +10:00
David Wengier 432375baf3
Preserve properties on the folding ranges we return (#10509)
Part of fixing https://github.com/dotnet/razor/issues/9492 along with
https://github.com/dotnet/roslyn/pull/74069

The change here is to just change the properties we want to change, and
let everything else flow through from Roslyn, rather than being so
opinionated.
2024-06-20 14:22:14 +10:00
David Wengier 38b69b8573 Preserve properties on the folding ranges we return 2024-06-20 12:34:51 +10:00
David Wengier 6b37ec2e61
Don't show misc files project in hover info (#10503) 2024-06-20 07:29:04 +10:00
Jan Jones ff239f404a
Fix APIScan authentication (#10504) 2024-06-19 19:52:25 +02:00
David Wengier b2eb81664b Don't show misc files project in hover info 2024-06-19 16:18:10 +10:00
David Wengier eb07c84987 Obsolete JToken APIs and add generic equivalents that consumers can move to 2024-06-19 11:02:10 +10:00
David Wengier fcbaa47b33
Fold C# statement keyword blocks (#10496)
Fixes https://github.com/dotnet/razor/issues/10443
2024-06-18 11:31:08 +10:00
David Wengier 530e926364 Add to the DI container 2024-06-18 11:05:25 +10:00
David Wengier a6cde6f206
Allow delegated servers to use either System.Text.Json or Newtonsoft.Json (#10494)
Due to our custom message target stuff, which lives in the LSP client,
there are a couple of places where we rely on knowing exactly what
serializer our delegated servers (ie, Roslyn and Web Tools) are using in
order to process their responses. This effectively blocks them from
moving to System.Text.Json, as they'd break us. This PR is an attempt
for us to be resilient to one of them moving to System.Text.Json, so
that hopefully we can all do it without dual or triple insertions.

Testing is sadly manual (chicken and egg, Roslyn hasn't moved to STJ so
can't test in CI, but Roslyn can't move until this is done) but basic
functionality works, and code actions and completion are the only two
things I can think of where we need to inspect json objects directly, so
I'm hoping that anything else that is weird at least round-trips
successfully.
2024-06-18 09:21:50 +10:00
Dustin Campbell 3a5f170832
Clean up LSPEditorFeatureDetector (#10490)
I took another run at #10445 and I think it's much better now.

Because this could affect hidden `JTF.Run(...)` calls I've started a
build to kick off a VS insertion:
https://dev.azure.com/dnceng/internal/_build/results?buildId=2474397&view=results
2024-06-17 12:12:29 -07:00
Chris Sienkiewicz 408765e234
[FUSE] Fix code folding (#10459)
* Split trailing whitespace and newlines from block-based directives into their own node
* Add extra tests and a doc
2024-06-17 09:35:03 -07:00
dotnet bot 056b3bede2
Merge release/dev17.11 to main (#10495)
This is an automatically generated pull request from release/dev17.11
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.11
- 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.11-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.11
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.11-to-main --force
```
2024-06-17 11:53:39 +02:00
David Wengier c5cba54870 Better collapsed text that we never use anyway 2024-06-17 19:36:47 +10:00
David Wengier a2f9570d2e More tests 2024-06-17 19:28:27 +10:00
David Wengier 4ea5457c4a Fold C# statements with keywords 2024-06-17 19:28:23 +10:00
dotnet bot 56df855790
Merge release/dev17.10 to release/dev17.11 (#10492)
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-06-17 09:45:25 +02:00
dotnet-maestro[bot] d021b3fe69
[main] Update dependencies from dotnet/arcade (#10488)
* Update dependencies from https://github.com/dotnet/arcade build 20240611.3

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

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

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

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

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

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-17 09:36:26 +02:00
Jan Jones 559fd55986
Merge branch 'release/dev17.10' into release/dev17.11 2024-06-17 09:24:55 +02:00
David Wengier 6eff62ae84 Add failing test 2024-06-17 17:04:40 +10:00
David Wengier 84a0a22953 Support JsonElement and JObject in completion and code actions 2024-06-17 11:46:03 +10:00
Andrew Hall 862af1937c
Fix DevKit nupkg to include all dlls needed (#10491)
The way we use the nupkg is to restore all required bits in a single package to unpack in the repo. This fixes our devkit package to include the telemetry dll so it will work when restored and unpacked.
2024-06-16 17:30:41 -07:00
David Wengier abddb8a2ad Add some more attributes 2024-06-17 07:51:51 +10:00
Dustin Campbell 4954ac59ad Rename IsLspEditorAvailable to IsLspEditorEnabled 2024-06-15 07:34:12 -07:00
Andrew Hall fc9b28705a
[release/dev17.10] Update dependencies from dotnet/arcade (#10489)
This pull request updates the following dependencies

[marker]: <> (Begin:0022737c-8efd-4919-ecf2-08dc3decc073)
## From https://github.com/dotnet/arcade
- **Subscription**: 0022737c-8efd-4919-ecf2-08dc3decc073
- **Build**: 20240611.3
- **Date Produced**: June 11, 2024 5:08:24 PM UTC
- **Commit**: c214b6ad17aedca4fa48294d80f6c52ef2463081
- **Branch**: refs/heads/release/8.0

[DependencyUpdate]: <> (Begin)

- **Updates**:
- **Microsoft.SourceBuild.Intermediate.arcade**: [from
8.0.0-beta.24310.5 to 8.0.0-beta.24311.3][1]
- **Microsoft.DotNet.Arcade.Sdk**: [from 8.0.0-beta.24310.5 to
8.0.0-beta.24311.3][1]

[1]: 9f6799fdc1...c214b6ad17

[DependencyUpdate]: <> (End)


[marker]: <> (End:0022737c-8efd-4919-ecf2-08dc3decc073)
2024-06-14 12:54:59 -07:00
Dustin Campbell 8a612b0fe1 Add mocking helpers for IVsService<,> 2024-06-14 12:46:51 -07:00
Dustin Campbell d15d9dda9b A couple of renames for consistency 2024-06-14 12:41:59 -07:00
Dustin Campbell ac630180f7 Add simple IUIContextService and update tests 2024-06-14 12:29:51 -07:00
Dustin Campbell 32650186a7 Compute "UseLegacyEditor" asynchronously 2024-06-14 11:11:38 -07:00
Dustin Campbell ed9eb37c85 Move LSPEditorFeatureDetector to VS layer and convert to interface 2024-06-14 09:40:47 -07:00
Dustin Campbell 68565c517f Move legacy editor setting name to WellKnownSettingNames 2024-06-14 09:36:21 -07:00
Dustin Campbell bc3c1a18d4 Move all feature flag names to WellKnownFeatureFlagNames 2024-06-14 09:26:11 -07:00