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

16169 Коммитов

Автор SHA1 Сообщение Дата
Dustin Campbell e05c372568 Remove unused methods from RazorToolingIntegrationTestBase
These methods were the only thing using types from Microsoft.AspNetCore.Razor.Test.ComponentShim, and they weren't even being used!
2024-10-24 15:12:58 -07:00
Andrew Hall e9199b661a
Add flush method and make it implementation detail on how that happens (#11087)
rzls imports telemetry by creating an ExportProvider with the path to
devkit telemetry if it's installed and enabled. Unfortunately that means
that dispose is being prematurely called when that provider is torn
down. To help with this two things are done:

1. Make a flush method on ITelemetryReporter
2. Make when flush happens an implementation detail on the specific
providers.

In this case, rzls will flush after the language server host exits. In
other cases IDisposable will be used to flush telemetry (VS and OOP)
2024-10-24 14:39:35 -07:00
Andrew Hall f24259cbab Add flush method and make it implementation detail on how that happens 2024-10-24 12:03:33 -07:00
Fred Silberberg 927d6a959b
Merge main to tokenizer branch (#11085)
Trivial conflict resolutions only.
2024-10-24 11:56:54 -07:00
Fredric Silberberg 6169824b2c
Merge remote-tracking branch 'upstream/main' into merge-main
* upstream/main:
  Fix resource string (#11079)
  Update Roslyn.Diagnostics.Analyzers package to latest version
  Update MS.CA.Analyzers package to 3.11.0
  Don't reference MS.CA.BannedApiAnalyzers package directly
  Version Roslyn.Diagnostics.Analzyers package separately
  Update dependencies from https://github.com/dotnet/arcade build 20241016.1
  Update dependencies from https://github.com/dotnet/arcade build 20241016.1
  Update dependencies from https://github.com/dotnet/arcade build 20241016.1
2024-10-24 11:28:41 -07:00
Fred Silberberg c20c1cd6f3
Final lexer changes (#11078)
* Switch the new lexer off-by-default.

* Add a new document for the lexer breaking changes around pragmas.

* Update comment.

* Feedback

Co-authored-by: Jan Jones <jan.jones.cz@gmail.com>

---------

Co-authored-by: Jan Jones <jan.jones.cz@gmail.com>
2024-10-24 10:30:56 -07:00
Dustin Campbell e5aa079f55
Update analyzer package versions (#11076)
I noticed some painful NuGet analyzer package upgrades in PR #11048 and
decided to take a look at the issue. I've made the following changes:

- `Roslyn.Diagnostics.Analyzers` is now versioned separately from
`Microsoft.CodeAnalysis.Analyzers`, as they are in
[`dotnet/roslyn`](08243d3826/eng/Directory.Packages.props (L4)).
- I've removed direct references to `MS.CA.BannedApiAnalyzers` since
that reference should flow from `Roslyn.Diagnostics.Analyzers`.
- I've updated the versions of `Microsoft.CodeAnalysis.Analyzers` and
`Roslyn.Diagnostics.Analyzers`
2024-10-24 10:15:49 -07:00
Chris Sienkiewicz 4f4effb106
Fix resource string (#11079)
* Update resource string
* Update baselines
2024-10-24 10:03:24 -07:00
David Wengier 1476b71fe7 Extract code action resolve to a service 2024-10-24 18:19:45 +11:00
David Wengier cabeb82225 Extract code actions functionality to a service 2024-10-24 18:07:17 +11:00
Alex Gavrilov (DEV PROD) 32bb9f5e49 Cleanup per PR feedback 2024-10-23 23:22:03 -07:00
Alex Gavrilov (DEV PROD) 13ba9256a4 Moving TagHelperServiceTestBase back to LanguageServer.Test project
This should probably move to the common test project eventually, but not in this PR. Moving this to the workspaces layer caused many changes in unrelated test files and changed test project references. Per PR feedback leaving this in the LanguageServer.Test project for now. We can refactor later as appropriate.
2024-10-23 23:11:03 -07:00
David Wengier ab201926a8 Fix all namespace and using directives
Should be no changes in this commit other than those two syntax constructs
2024-10-24 16:36:56 +11:00
Alex Gavrilov (DEV PROD) f05e730568 Switching to hardcoded directive list in tests per PR feedback 2024-10-23 22:17:26 -07:00
David Wengier ab55c388e2 Move string resources 2024-10-24 15:12:32 +11:00
David Wengier 6d7d0ab113 Move files around 2024-10-24 14:52:41 +11:00
David Wengier 5e1609848a Remove unused usings 2024-10-24 14:45:31 +11:00
David Wengier 0f8af98913 Move helper method 2024-10-24 14:45:30 +11:00
David Wengier 3eacfbd845 Pass options around rather than using the monitor 2024-10-24 14:45:29 +11:00
dotnet bot c810e82b24
Merge release/dev17.12 to main (#11081)
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-10-23 20:42:10 -07:00
David Wengier b0926dfddd Introduce service for using our custom Roslyn endpoints 2024-10-24 13:44:55 +11:00
David Wengier 001ebcfa7e Introduce service for getting code actions from delegated servers 2024-10-24 13:31:05 +11:00
dotnet bot 13a3083313
Merge release/dev17.12 to main (#11074)
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-10-23 18:02:33 -07:00
David Wengier 03e900f144 Convert base resolver type to a service 2024-10-24 11:59:18 +11:00
David Wengier 1e1a0fcbf4 Remove unnecessary parameter 2024-10-24 11:45:20 +11:00
dotnet bot 8bf9ad1ce4
Merge release/dev17.11 to release/dev17.12 (#11077)
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-10-23 15:22:24 -07:00
David Wengier 5b5539f60c Simplify code action context 2024-10-24 08:29:37 +11:00
Dustin Campbell 84c7c1d5fc Update Roslyn.Diagnostics.Analyzers package to latest version 2024-10-23 12:43:50 -07:00
Dustin Campbell 19d9d1a0d5 Update MS.CA.Analyzers package to 3.11.0 2024-10-23 12:36:47 -07:00
dotnet bot d259d206cc
Merge release/dev17.11 to release/dev17.12 (#11073)
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-10-23 12:36:33 -07:00
Fred Silberberg c724539e1c
Merge main (#11075)
Merge main into the feature branch. Only trivial merge conflicts and
baseline updates were needed.
2024-10-23 12:03:31 -07:00
Fredric Silberberg 7b81af52ae
One more baseline update 2024-10-23 11:34:31 -07:00
Dustin Campbell f1b794cc78 Don't reference MS.CA.BannedApiAnalyzers package directly
The BannedApiAnalyzers package is a dependency of Roslyn.DiagnosticAnalyzers, so we get a reference to it transitively.
2024-10-23 11:25:30 -07:00
Dustin Campbell 394a22ee5a Version Roslyn.Diagnostics.Analzyers package separately 2024-10-23 11:21:54 -07:00
Fredric Silberberg 2aac41c33a
Merge remote-tracking branch 'upstream/main' into merge-main
* upstream/main: (290 commits)
  Add breaking changes document (#11064)
  Do not extract component into code block (#11069)
  Fix invalid setttings json (#11062)
  update MicrosoftSourceBuildIntermediatearcadePackageVersion
  Localized file check-in by OneLocBuild Task: Build definition ID 262: Build ID 2566512
  Localized file check-in by OneLocBuild Task: Build definition ID 262: Build ID 2566512
  Update source-build team references (#11032)
  Handle EditorRequired *Changed/*Expression parameters (#11043)
  Localized file check-in by OneLocBuild Task: Build definition ID 262: Build ID 2566213
  Localized file check-in by OneLocBuild Task: Build definition ID 262: Build ID 2566213
  Avoid ambiguous `object` reference in generic component recovery (#11053)
  Move culture info check (#11057)
  Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20241015.1
  Fix code actions integration tests
  Add option for format on paste (#11039)
  Update src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDocumentClassifierPass.cs
  Fix merge to 17.12 version
  Update src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDocumentClassifierPass.cs
  Ensure model directives are mapped at runtime (#11007)
  Fix @inherits mapping for fuse (#10985)
  ...
2024-10-23 11:15:29 -07:00
dotnet bot aed0fbca2f
Merge release/dev17.10 to release/dev17.11 (#11072)
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-10-23 11:08:43 -07:00
Fred Silberberg 45acf5afb9
Add breaking changes document (#11064)
Adds a new breaking changes document in the style of roslyn to document breaking changes in the razor compiler.
2024-10-23 10:22:19 -07:00
Ankita Khera 06fe959557
[main] Update dependencies from dotnet/arcade (#11037)
Coherency update: Failed to perform coherency update for one or more
dependencies. Please review the GitHub checks or run `darc
update-dependencies --coherency-only` locally against
darc-main-030810b0-57bd-4317-ad5a-ca9ebbcc6e47 for more information.
2024-10-23 09:22:34 -07:00
dotnet bot a76a89385c
Merge release/dev17.12 to main (#11068)
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-10-23 03:54:56 -07:00
dotnet bot 2dd315459f
Merge release/dev17.10 to release/dev17.11 (#11066)
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-10-23 03:46:37 -07:00
dotnet bot 5161ec13b0
Merge release/dev17.8 to release/dev17.10 (#11065)
This is an automatically generated pull request from release/dev17.8
into release/dev17.10.


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.10

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.10
git reset --hard upstream/release/dev17.10
git merge upstream/release/dev17.8
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.8-to-release/dev17.10 --force
```
2024-10-23 03:30:21 -07:00
dotnet bot ad2bd3e7a4
Merge release/dev17.11 to release/dev17.12 (#11067)
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-10-23 03:17:29 -07:00
David Wengier 552c361d77 Merge remote-tracking branch 'upstream/release/dev17.12' into merges/release/dev17.12-to-main 2024-10-23 20:52:45 +11:00
David Wengier 80aba4378c Merge remote-tracking branch 'upstream/release/dev17.11' into merges/release/dev17.11-to-release/dev17.12 2024-10-23 20:48:35 +11:00
David Wengier 87860b351f Merge remote-tracking branch 'upstream/release/dev17.10' into merges/release/dev17.10-to-release/dev17.11 2024-10-23 20:47:01 +11:00
David Wengier 8bcab6d3be Merge remote-tracking branch 'upstream/release/dev17.8' into merges/release/dev17.8-to-release/dev17.10 2024-10-23 20:45:09 +11:00
David Wengier af22ba0e1f Strongly type the language property of the params object 2024-10-23 20:25:40 +11:00
David Wengier a20ca3e6d2 Fix build 2024-10-23 20:06:49 +11:00
David Wengier d56e20dd77 Use a test accessor 2024-10-23 18:11:43 +11:00
David Wengier e895580b46 Remove largely unused type 2024-10-23 17:49:22 +11:00