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

12762 Коммитов

Автор SHA1 Сообщение Дата
David Wengier 045986af34
[main] Update dependencies from dotnet/arcade (#9540) 2023-11-05 08:00:08 +11:00
David Wengier 8e8f2beb9a
Delete old vs code extension bits (#9539) 2023-11-05 07:02:20 +11:00
dotnet-maestro[bot] 9f676e36b2 Update dependencies from https://github.com/dotnet/arcade build 20231103.1
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XliffTasks
 From Version 9.0.0-beta.23552.4 -> To Version 9.0.0-beta.23553.1
2023-11-04 12:21:57 +00:00
David Wengier 386c9f68da
Update FilePathNormalizerTest.cs
Co-authored-by: ady109 <149323961+ady109@users.noreply.github.com>
2023-11-04 21:58:53 +11:00
David Wengier d5b5012725
Update FilePathNormalizerTest.cs
Co-authored-by: ady109 <149323961+ady109@users.noreply.github.com>
2023-11-04 21:58:48 +11:00
Jan Jones b2c85315a0
Warn for unrecognized components with attribute tag helpers (#9512)
* Add a test

* Warn for unrecognized components with attribute tag helpers
2023-11-04 08:43:14 +01:00
David Wengier e7b97e0dc3 Delete old vs code extension bits 2023-11-04 18:03:48 +11:00
David Wengier 7ea9ba4821 Deduplicate slashes during path normalization 2023-11-04 15:56:31 +11:00
Andrew Hall c1d85c7b28 Be resiliant to failing to load the telemetry extension 2023-11-03 17:43:15 -07:00
Fred Silberberg 5454f06c4a
Remove LocateOwner from Razor Tooling Tests (#9532)
* Move completion provider tests to FindInnermostNode

This required adjusting some implementation logic that would have been broken by https://github.com/dotnet/razor/pull/9455, but weren't caught by the tests directly on the main completion provider. We should consider moving these tests to more functional-style implementation, where we test the whole provider pipeline, to avoid potential future bugs here.

* Move TagHelperFactsService tests to FindInnermostNode

* Apply rename suggestion from code review
2023-11-03 23:48:22 +00:00
dotnet-maestro[bot] ba7c242c2e
Update dependencies from https://github.com/dotnet/arcade build 20231102.4 (#9530)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XliffTasks
 From Version 9.0.0-beta.23551.1 -> To Version 9.0.0-beta.23552.4

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2023-11-03 23:46:09 +00:00
dotnet bot 3aac8ca760
Merge release/dev17.9 to main (#9531)
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-03 23:46:06 +01:00
David Wengier f956e668b5
Port cold start fixes to 17.9 P1 (#9529)
* Whitespace

Just a couple of error list issues

* Null enable project snapshot manager

* Prevent a missing project from bringing down the language server

* Don't use the fallback manager if we know about real info now

* Allow documents to be found in the misc files project

This is a regression from pre-multi-targeting. I incorrectly assumed that if we got project context info, it must mean the project was known, but that isn't true at start up necessarily.

* Use a null namespace, don't hardcode the default

This felt wrong, but I doubt it meaningfully changes things.

* Rename action class to match the rest

(and fix typo)

* Thank you Visual Studio for not telling me about these possible null references, I was not mentally prepared to handle them.
2023-11-03 05:35:57 -07:00
Fred Silberberg 79ded166e4
Verify that BraceSmartIndenter is only used in the legacy editor. (#9520)
* Verify that BraceSmartIndenter is only used in the legacy editor.

* Reorder when ContentType is set to avoid test failures.
2023-11-03 00:16:47 +00:00
David Wengier d3b0470211
Merge release/dev17.9 to main (#9524)
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-03 08:30:49 +11:00
Maryam Ariyan a70cd54364 Merge remote-tracking branch 'origin/release/dev17.9' into merges/release/dev17.9-to-main
Conflicts:
	src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/FallbackProjectManager.cs
2023-11-02 13:49:22 -07:00
dotnet-maestro[bot] e38c54d281
Update dependencies from https://github.com/dotnet/arcade build 20231101.1 (#9523)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XliffTasks
 From Version 9.0.0-beta.23531.4 -> To Version 9.0.0-beta.23551.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2023-11-02 13:00:41 +00:00
David Wengier 89dc228719 Fix nullability 2023-11-02 22:38:04 +11:00
David Wengier 91dd478130 Random cleanup 2023-11-02 22:36:15 +11:00
David Wengier 5821c95e2c Classify parentheses in implicit expressions the same as explicit expressions 2023-11-02 22:34:06 +11:00
David Wengier af62029350 Add incorrect test baselines 2023-11-02 22:32:12 +11:00
David Wengier e9ec52f350 Add failing test 2023-11-02 22:28:31 +11:00
David Wengier 427c9bfdb2 Use unused code 2023-11-02 15:55:08 +11:00
David Wengier 02e4dcc05c Formatting 2023-11-02 15:54:02 +11:00
David Wengier 4a86193def Remove unused code 2023-11-02 15:53:55 +11:00
Fred Silberberg 6a5ccd9841
Remove LocateOwner from completion scenarios (#9455)
* Remove LocateOwner from completion scenarios

Move all completion scenarios over to FindToken.

* More LocateOwner replacements

* Add missing usings, move FindInnermostNode to PreviousToken.

* Handle markers, differences in legacy tree vs modern tree.

* Add additional comment to switch.

* Loosen restrictions on walkMarkersBack and turn it on by default.
2023-11-02 00:44:25 +00:00
Andrew Hall 6e758f2e8b
Run dotnet format on tooling files (#9516) 2023-11-01 17:26:55 -07:00
Andrew Hall 78bfa80a84 Fix lock formatting 2023-11-01 15:46:06 -07:00
Andrew Hall 51759f448d Run dotnet format on tooling files 2023-11-01 14:42:29 -07:00
David Wengier b04efa76dd
Various cold start fixes (#9509) 2023-11-02 06:29:13 +11:00
dotnet-maestro[bot] e09c20197d
Update dependencies from https://github.com/dotnet/arcade build 20231031.4 (#9511)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XliffTasks
 From Version 9.0.0-beta.23531.1 -> To Version 9.0.0-beta.23531.4

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2023-11-01 13:09:07 +00:00
Jan Jones d98785e4b1
Merge `release/dev17.8` to `release/dev17.9` (#9510) 2023-11-01 11:14:22 +01:00
Jan Jones 64b0c3feb0
Merge branch 'release/dev17.8' into release/dev17.9 2023-11-01 09:52:30 +01:00
David Wengier 537d41122e Thank you Visual Studio for not telling me about these possible null references, I was not mentally prepared to handle them. 2023-11-01 16:47:11 +11:00
David Wengier ee2fb25e58 Rename action class to match the rest
(and fix typo)
2023-11-01 15:38:11 +11:00
David Wengier 8dfc080d82 Use a null namespace, don't hardcode the default
This felt wrong, but I doubt it meaningfully changes things.
2023-11-01 15:38:11 +11:00
David Wengier 37061b7d1a Allow documents to be found in the misc files project
This is a regression from pre-multi-targeting. I incorrectly assumed that if we got project context info, it must mean the project was known, but that isn't true at start up necessarily.
2023-11-01 15:38:11 +11:00
David Wengier 16251767c0 Don't use the fallback manager if we know about real info now 2023-11-01 15:38:11 +11:00
David Wengier 026ededbcc Prevent a missing project from bringing down the language server 2023-11-01 15:38:11 +11:00
David Wengier 88a4f79c87 Null enable project snapshot manager 2023-11-01 15:38:11 +11:00
David Wengier 14b2f2245b Whitespace
Just a couple of error list issues
2023-11-01 15:38:10 +11:00
dotnet bot c1d59ff18a
Merge release/dev17.8 to main (#9508)
This is an automatically generated pull request from release/dev17.8
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.8
- 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.8-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.8
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.8-to-main --force
```
2023-11-01 02:08:27 +01:00
David Wengier f0a326f3e1
Don't generate code for closed files that are part of fallback projects (#9503)
Fixes a regression from https://github.com/dotnet/razor/pull/9486
2023-11-01 10:28:14 +11:00
dotnet bot 373096fb23
Merge release/dev17.8 to main (#9500)
This is an automatically generated pull request from release/dev17.8
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.8
- 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.8-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.8
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.8-to-main --force
```
2023-11-01 00:01:58 +01:00
David Wengier 6cd863d85b
Update src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/ProjectSystem/DefaultRazorDynamicFileInfoProviderTest.cs 2023-11-01 09:19:33 +11:00
David Wengier ec28923302
Merge branch 'main' into merges/release/dev17.8-to-main 2023-11-01 09:05:46 +11:00
dotnet-maestro[bot] 75468962ca
Update dependencies from https://github.com/dotnet/arcade build 20231031.1 (#9506)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XliffTasks
 From Version 9.0.0-beta.23528.2 -> To Version 9.0.0-beta.23531.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2023-10-31 21:10:36 +00:00
Dustin Campbell b12184be95
Fix type check in IsComplexValue (#9507)
While looking at #9502, I noticed that I introduced a significant
telemetry bug in #9465. Fixing that issue.
2023-10-31 13:30:24 -07:00
Fred Silberberg 425a6c0c83
Port SyntaxNavigator from Roslyn (#9468)
* Port SyntaxNavigator from Roslyn

Port over SyntaxNavigator from Roslyn. Future PRs will expose `GetNextToken()` and `GetPreviousToken()` as methods on `SyntaxToken`, similar to Roslyn, for use in the IDE layer. I've also rewritten FindToken to utilize this, instead of the hand-built system I did previously. More dedicated tests for SyntaxNavigator are still needed in this PR.

* Add GetFirstToken/GetLastToken/GetNextToken/GetPreviousToken apis, and add comprehensive testing for the APIs.

* Move FindToken to the SyntaxToken APIs, rather than directly calling SyntaxNavigator

* Remove unused local function
2023-10-31 17:19:21 +00:00
Jan Jones b959707baa
Snap 17.9P1 (#9505) 2023-10-31 17:34:16 +01:00