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

112629 Коммитов

Автор SHA1 Сообщение Дата
Tomáš Matoušek 7b7951aa13
Do not attempt to report EnC diagnostics for non-host workspaces (#75138) 2024-09-16 23:29:26 +00:00
David Wengier 876ea36bec
Merge pull request #75102 from davidwengier/RazorDiagnostics 2024-09-17 06:08:55 +10:00
Matt Mitchell ecf750e330
Remove some obsolete build properties (#75096)
* Remove some obsolete build properties
The artifacts category properties are no longer functional since maybe .NET 3.0, and the symbol server publishing switch is non-functional given that DotNetPublishUsingPipelines=true is used. Symbol publishing happens in promotion.
* Add comment for symbol publishing task
2024-09-16 10:21:53 -07:00
Jan Jones d3b0bf2d52
Avoid duplicate synthesized interface members (#73730)
* Handle nullability differences in duplicate interfaces

* Remove parts extracted into a separate PR

* Validate symbol shape instead of IL snapshot

* Revert `ComputeInterfaceImplementations` change

* Move the fix to emit layer

* Fix forwarding

* Test instance forwarding methods
2024-09-16 09:37:46 +00:00
Julien Couvreur df4ae6b810
Keep `try` syntax in async exception rewriting (#75070) 2024-09-13 15:12:21 -07:00
AlekseyTs f2ac8eee32
Use the latest version of ILasm and enable a test not supported by the old version (#75108)
Closes #73553.
2024-09-13 14:46:40 -07:00
Todd Grunke 199c241cef
Fix typo in RequestTelemetryLogger.UpdateTelemetryData (#75050)
* This should be using TimeSpan.TotalMilliseconds, not TimeSpan.Milliseconds.
2024-09-13 13:10:31 -07:00
AlekseyTs 483c6ad8b5
Adjust an assert in EmitArgument (#75067)
Fixes #75035.
2024-09-13 15:47:50 +00:00
Matt Mitchell 214d43a8c5
Switch to new VMR control set (#75056)
* Switch to new VMR control set
Now that roslyn is on 9.0, we can switch to the new control set. Generally:
- DotNetBuildFromSource -> DotNetBuildSourceOnly - Building a source-only build.
- DotnetBuildFromSourceFlavor == Product -> DotNetBuildOrchestrator == true - Building in the VMR, could be source-only or MS's build.
- ArcadeBuildFromSource -> DotNetBuildRepo == true -> Indicates an outer repo build.
* Remove /p: alias for source build - This really just enabled static graph. Instead this is moved to the inner source build arg creation.
2024-09-13 08:19:20 -07:00
Jan Jones 5a39d0ad69
Disallow ref assignment to ternary or another ref assignment (#75076) 2024-09-13 11:06:42 +02:00
Tomáš Matoušek 814c61c110
Move some emit tests from Emit2 to Emit3 to avoid hitting UserString heap limit (#75091) 2024-09-13 09:01:25 +00:00
David Barbet c737a04f3e
Merge pull request #75092 from dibarbet/order_modifiers_vscode
Include initial filter node when searching for nodes to order modifiers
2024-09-12 16:15:52 -07:00
AlekseyTs 32dd4ccc34
BindAttributeCore - use proper binder to avoid an attribute binding cycle (#75060)
Fixes #74677.
2024-09-12 16:12:27 -07:00
Alexander Köplinger 64ba0343c5
Remove buggy IsPublic method from TypeAttributesExtensions (#75081)
* Fix TypeAttributes visibility checking

When checking visibility we need to use the VisibilityMask because TypeAttributes is a funky flags enum that has multiple entries with the same value (unlike normal flags enums).
See https://learn.microsoft.com/en-us/dotnet/api/system.reflection.typeattributes?view=net-8.0#examples

We got lucky because the IsPublic extension method isn't actually used anywhere so this was never hit.

The same applies to checking for interface, but TypeAttributes.ClassSemanticsMask is the same value as TypeAttributes.Interface so it happens to work, but it's still better to use the canonical code for clarity.

* Fix other Reflection attributes checks

* Remove IsPublic

* Revert other changes
2024-09-12 22:35:58 +00:00
Joey Robichaud 20376a891f
Merge pull request #75084 from dotnet/dev/jorobich/more-test-logging
Log messages for Test Results
2024-09-12 13:44:12 -07:00
David Barbet 82776b59d3 Include initial filter node when searching for nodes to order modifiers 2024-09-12 13:13:34 -07:00
Fred Silberberg 21499087d8
Remove additional Gitter link (#75086)
We still had a reference to gitter, so I removed it.
2024-09-12 11:06:01 -07:00
Joey Robichaud 1803abf50c Remove newlines between test run information sections 2024-09-12 10:53:38 -07:00
Joey Robichaud eaa213f757
Merge pull request #75065 from dotnet/dev/jorobich/lock-translation
Lock translation of strings used to demonstrate identifier naming styles
2024-09-12 10:35:14 -07:00
Joey Robichaud 4889ef7ee1 Log messages for Test Results 2024-09-12 10:14:15 -07:00
Jan Jones 0654505725
Fix stack adjustment when emitting stackalloc (#75042) 2024-09-12 11:26:25 +02:00
Joey Robichaud ece0b4870c Lock translation of strings used to demonstrate identifier naming styles 2024-09-11 17:12:48 -07:00
Deepak Singh Rathore 09ef0c03d0
docs: Correct SDK version in documentation to match global.json (#75038)
Co-authored-by: deepakrathore33 <v-deerathore@microsfot.com>
2024-09-11 14:17:33 -07:00
AlekseyTs 58da55d38e
Add a test observing lack of an issue. (#75057)
Closes #74785.
2024-09-11 14:06:10 -07:00
David Barbet dbe758343b
Merge pull request #75059 from dotnet/dibarbet-patch-1
Configure release/vscode branch for nuget publishing
2024-09-11 13:05:28 -07:00
David Barbet fcafea5c60
Merge pull request #75053 from dibarbet/fix_preview_checkbox
Fix preview refresh on selection for enum flags checkboxes
2024-09-11 12:48:49 -07:00
David Barbet d25d215f10 Fix preview refresh on selection for enum flags checkboxes 2024-09-11 11:19:24 -07:00
DoctorKrolic 7b75058bf6
Semantic snippets: handle case with inline statement snippets before member access expression (#74966)
* Rework how inline statement snippets determine if they are valid on a position to handle member access expression case

* Reference assemblies
2024-09-11 10:40:11 -07:00
David Barbet 21efe0ef16
Configure release/vscode branch for nuget publishing 2024-09-11 10:14:37 -07:00
Jared Parsons 6de8947a35
Remove MS.CA.Test.Resources.Proprietary PackageReference (#75037)
* Remove MS.CA.Test.Resources.Proprietary

This package is the last remnants of the roslyn-internal repository. It
was still holding onto a few test assets that never got ported into the
open but were available through the NuPkg reference.

This package is becoming a problem with component governance as it
is a `netstandard1.3` package and hence brings in a lot of vulnerable
components.

Considered upgrading this package to `netstandard2.0` but that would
mean un-archiving the roslyn-internal repo, finding a place to put the
source code and setting up a new official pipeline for the package. That
is a pretty high price. Instead I decided to finish the work that
I should've completed a number of years ago.

Yes this does add a few more .dll into our git tree. These are files
that haven't changed in 10+ years so versioning won't be an issue. They
were all brought down already for restore hence it's not new files.
2024-09-11 07:38:16 -07:00
Jan Jones 9941c1fb15
Allow suppressing nullability warnings in more ref scenarios (#74498)
* Allow suppressing ref ternary operands

* Allow suppressing the whole ref ternary

* Allow suppressing ref foreach

* Use type inference for ref ternary nullability

* Meet annotation and state

* Move local function to the end

* Keep the states joined

* Test ref assignment

* Skip failing test
2024-09-11 09:52:59 +02:00
David Wengier 3f63a01354 Allow access to Roslyn diagnostics from Razor 2024-09-11 16:35:54 +10:00
David Wengier dc87898adc Update comment
These two methods have diverged so I don't honestly know if this is valuable, but updating a comment seems easy enough.
2024-09-11 16:33:02 +10:00
dotnet-maestro[bot] aaa2668b6f
Update dependencies from https://github.com/dotnet/arcade build 20240909.6 (#75040)
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk
 From Version 9.0.0-beta.24453.1 -> To Version 9.0.0-beta.24459.6

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-09-10 20:33:53 -07:00
David Barbet 3aa6e3bf96
Merge pull request #75046 from dibarbet/fix_sourcelink_not_opened
Fix issue where closing sourcelink document threw if not opened
2024-09-10 15:34:03 -07:00
David Barbet 7274c18c85
Merge pull request #75044 from dibarbet/expose_source_link_option
Expose sourcelink option to VSCode
2024-09-10 14:03:15 -07:00
David Barbet 59b5770612 Fix error opening the same sourcelink file 2024-09-10 12:19:10 -07:00
David Barbet e7310819f5 Fix issue where closing sourcelink document threw if not opened 2024-09-10 11:37:03 -07:00
David Barbet d975a01b9d Expose sourcelink option to VSCode 2024-09-10 10:14:19 -07:00
Tomáš Matoušek 85ec699532
Report source generator failures in Hot Reload diagnostics (#75029) 2024-09-10 15:59:16 +00:00
Jan Jones a69841b8ca
Handle infinite cycles through params collection initializers (#74899)
* Handle infinite cycles through params collection initializers

* Remove an incorrect assert

* Compare whole syntax nodes

* Add more tests

* Add a test

* Verify IOperation and flow graph

* Re-add a limited assert

* Test constructor+Add cycles

* Move a test class from Emit2 to Emit3

To avoid error CS8103: Combined length of user strings
used by the program exceeds allowed limit.
2024-09-10 11:11:08 +02:00
David Wengier 8ff1ae3d57 Promote the single bool out of capabilities, and doc 2024-09-10 16:22:59 +10:00
David Wengier 61469cc4b4 Move helper methods to ProtocolConversions
Purely mechanical, except for making one method public
2024-09-10 16:09:37 +10:00
David Wengier 059bf86013 Make LSP conversion methods static
Doing this as a separate commit to prove I didn't break anything :P
2024-09-10 16:05:50 +10:00
David Barbet fd1cc2de85
Merge pull request #75030 from dibarbet/fix_comparison
Use ordinal ignore case for opening pdb source documents
2024-09-09 15:48:47 -07:00
David Barbet dca25b15e3 Use ordinal ignore case for opening pdb source documents 2024-09-09 13:26:35 -07:00
DoctorKrolic 2985e58b62
Use numbered lists in `IOperation` documentation (#75016) 2024-09-09 11:42:44 -07:00
Cyrus Najmabadi bbcec6545f
Merge pull request #75027 from Orachor/missing-eol
Preserve trailing trivia when replacing method with property
2024-09-09 11:42:29 -07:00
Orachor b449a7c58f Preserve trailing trivia when replacing method with property 2024-09-09 17:18:39 +02:00
Orachor 80c329bb53 Preserve trailing trivia when replacing method with property 2024-09-09 17:14:27 +02:00