Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 'dotnet/main' into PrimaryConstructors #66364

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
414 commits
Select commit Hold shift + click to select a range
cc6c113
Simplify code
CyrusNajmabadi Dec 16, 2022
3592b0f
Simplify code
CyrusNajmabadi Dec 16, 2022
df8568e
Simplify code
CyrusNajmabadi Dec 16, 2022
8f04e1a
Simplify code
CyrusNajmabadi Dec 16, 2022
6881b51
Simplify code
CyrusNajmabadi Dec 16, 2022
94c2b7f
Simplify code
CyrusNajmabadi Dec 16, 2022
817af57
Simplify code
CyrusNajmabadi Dec 16, 2022
905d8ae
Add comment
CyrusNajmabadi Dec 16, 2022
9985f9c
Simplify code
CyrusNajmabadi Dec 16, 2022
f11341d
Keep the block of else-if statement in "Use null propogation" codefix
DoctorKrolic Dec 17, 2022
2ced569
Reuse existing block
DoctorKrolic Dec 17, 2022
324651e
Add VB test
DoctorKrolic Dec 17, 2022
12a3a35
Trivial work (pun intended)
DoctorKrolic Dec 17, 2022
573b341
SingletonList
DoctorKrolic Dec 17, 2022
c54d6bf
Keep braces
DoctorKrolic Dec 17, 2022
b65c005
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 19, 2022
e1557ad
Typo
DoctorKrolic Dec 19, 2022
0829279
Dedent
DoctorKrolic Dec 19, 2022
1185525
Unreachable
DoctorKrolic Dec 19, 2022
5553f9d
Add tests for CheckInvocationArgMixing (#65916)
cston Dec 19, 2022
34180c3
Avoid reporting ref safety errors for discard assignments (#65693)
cston Dec 20, 2022
aac742b
Update comment
mavasani Dec 20, 2022
e17d6ad
Update dependencies from https://github.com/dotnet/roslyn-analyzers b…
dotnet-maestro[bot] Dec 20, 2022
0f14b16
Add unique color scheme for high contrast mode
jmarolf Dec 20, 2022
76cd2f1
Adjust calculation of invocation escape when return type is ref to re…
RikkiGibson Dec 21, 2022
0ae1a72
Address feedback and rename
mavasani Dec 21, 2022
9931fba
Add regression test for #66085. Confirmed it fails with `treeBasedOpt…
mavasani Dec 21, 2022
8c09638
Fixes #66085
mavasani Dec 21, 2022
228d04a
BoundIsPatternExpression.GetDecisionDagForLowering - when recreating …
alrz Dec 21, 2022
45046d0
Split out ref safety analysis into a separate pass after binding (#64…
cston Dec 21, 2022
5391dc1
Update dependencies from https://github.com/dotnet/roslyn-analyzers b…
dotnet-maestro[bot] Dec 21, 2022
9535591
Fix typo in error message
nosami Dec 21, 2022
91d797e
Merge branch 'release/dev17.6' into merges/main-to-release/dev17.6
dibarbet Dec 21, 2022
ac92012
Merge pull request #66094 from nosami/patch-1
CyrusNajmabadi Dec 21, 2022
c5ba61c
Merge pull request #66032 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 21, 2022
803244d
Merge pull request #66095 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 21, 2022
f86f36b
Simplifies implementation of GlobalOptionService.SetOptions and SetGl…
tmat Dec 22, 2022
0b03ac3
Update dependencies from https://github.com/dotnet/roslyn-analyzers b…
dotnet-maestro[bot] Dec 22, 2022
1da7eba
[main] Update dependencies from dotnet/arcade (#66092)
dotnet-maestro[bot] Dec 22, 2022
f45c948
Merge pull request #66098 from dotnet/darc-main-ae9c5101-443e-4d63-a9…
dibarbet Dec 22, 2022
8e359f9
Merge pull request #66099 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 22, 2022
dbf22d9
Merge pull request #66108 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 23, 2022
1e363b3
Produce error when static local function captures a local with extens…
Youssef1313 Dec 23, 2022
975dcc5
Merge pull request #66082 from jmarolf/bugfix/editorconfig-ui-aquatic…
jmarolf Dec 23, 2022
e0d46a4
Merge pull request #66111 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 23, 2022
87bd9f9
Quilify type of Task.FromResult when necessary
DoctorKrolic Dec 23, 2022
eacd448
Nullable enable in test
DoctorKrolic Dec 23, 2022
201e6be
Rename
DoctorKrolic Dec 23, 2022
df06d22
Add more VB tests
DoctorKrolic Dec 24, 2022
1bb0b1f
Do not treat enum base list as type context for completions
DoctorKrolic Dec 24, 2022
d0f4c72
Merge pull request #66119 from DoctorKrolic/no-symbol-completions-enum
CyrusNajmabadi Dec 24, 2022
3948581
Merge pull request #66048 from DoctorKrolic/keep-the-block
CyrusNajmabadi Dec 24, 2022
6263a50
Merge pull request #66121 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 24, 2022
ca4ff38
WIP
invalid-email-address Dec 25, 2022
887d11b
[main] Update dependencies from dotnet/arcade (#66117)
dotnet-maestro[bot] Dec 27, 2022
6cc2e4c
Merge pull request #66132 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 27, 2022
e55ab7b
Add an integration test
invalid-email-address Dec 28, 2022
eefa92a
Remove unnecessary `ToList` calls
Youssef1313 Dec 28, 2022
dcfbf6b
Merge pull request #66142 from Youssef1313/patch-37
CyrusNajmabadi Dec 28, 2022
62147fa
Merge pull request #66125 from MartyIX/feature/2022-12-25-xmas-issue
CyrusNajmabadi Dec 28, 2022
be479b2
Cleanup dead MSBuild conditions (#66052)
Youssef1313 Dec 28, 2022
23ccd2f
Merge pull request #66144 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 28, 2022
56dc560
Update StreamJsonRpc
genlu Dec 28, 2022
d44a4af
Merge pull request #66146 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 28, 2022
a7f1088
Enable disabled test (#66140)
ryzngard Dec 28, 2022
7a6d8d2
Fix Inline Rename Flyout Positioning (#66139)
ryzngard Dec 28, 2022
0df35a3
Merge pull request #66148 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Dec 29, 2022
b00e2d2
Merge pull request #66043 from CyrusNajmabadi/refOnce
CyrusNajmabadi Dec 29, 2022
5b29160
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 29, 2022
89cd3cc
Correctly parse local function with several async modifiers (#66030)
DoctorKrolic Dec 29, 2022
3f9a6e7
Reduce amount of stack used by CodeGenerator.EmitInstanceCallExpressi…
AlekseyTs Dec 29, 2022
2367270
Select default item over starred item if exists
genlu Dec 30, 2022
7829de6
Remove unused option and fix typos
genlu Dec 30, 2022
2a383c1
Merge pull request #65925 from kinkeadian25/null-generic
ryzngard Dec 30, 2022
9ff064c
Merge pull request #66145 from genlu/UpdateVersion
genlu Dec 30, 2022
5730ffc
Fix Extract Base When Class Has Base (#66149)
ryzngard Dec 30, 2022
dab9011
init commit
Dec 31, 2022
0c14269
fix, type gone issue
Dec 31, 2022
1b656b0
handling readonly methods
Dec 31, 2022
e173348
handling readonly methods
Dec 31, 2022
bc0716a
Correct initial state for nested method nullability analysis (#66147)
jcouv Dec 31, 2022
d71b443
Update dependencies from https://github.com/dotnet/arcade build 20221…
dotnet-maestro[bot] Dec 31, 2022
49da5a3
[main] Update dependencies from dotnet/roslyn-analyzers (#66112)
dotnet-maestro[bot] Jan 1, 2023
d71f3bc
Merge pull request #66010 from mavasani/FixRunCodeAnalysis
mavasani Jan 2, 2023
e59309f
Emit and report missing `Decimal-` and `DateTimeConstantAttribute` (#…
jjonescz Jan 2, 2023
06b0943
Update dependencies from https://github.com/dotnet/arcade build 20230…
dotnet-maestro[bot] Jan 3, 2023
42737de
Update dependencies from https://github.com/dotnet/roslyn-analyzers b…
dotnet-maestro[bot] Jan 3, 2023
96d8a59
init commit
Jan 3, 2023
bfe5490
Fix crash in find-refs with method with multiple declarations in diff…
CyrusNajmabadi Jan 3, 2023
a76f208
Stop referencing packages that became inbox on modern .NET. (#65810)
teo-tsirpanis Jan 3, 2023
007c01a
Merge pull request #66114 from DoctorKrolic/qualify-task-from-result
CyrusNajmabadi Jan 3, 2023
1312ea4
Fix Enums not appearing in AIOSP
CyrusNajmabadi Jan 3, 2023
4f1767c
fixing test back to generator
Jan 3, 2023
2d48b19
adding in workitems for tests
Jan 3, 2023
c083b24
fixing added work items
Jan 3, 2023
0e454da
Update src/Workspaces/CSharpTest/CodeGeneration/SyntaxGeneratorTests.cs
kinkeadian25 Jan 3, 2023
58fa251
Update src/Workspaces/CSharpTest/CodeGeneration/SyntaxGeneratorTests.cs
kinkeadian25 Jan 3, 2023
f4b8317
changing implementation of modifier catch
Jan 3, 2023
84550b1
Simplify unnecessary parentheses when converting to LINQ
DoctorKrolic Jan 3, 2023
9d74c81
Remove unnecessary variable
DoctorKrolic Jan 3, 2023
d109446
Merge pull request #66197 from CyrusNajmabadi/findRefsCrash
CyrusNajmabadi Jan 3, 2023
1023c73
A bit of nullable
DoctorKrolic Jan 3, 2023
2cac368
Merge pull request #66154 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Jan 3, 2023
46935d0
Merge pull request #66198 from CyrusNajmabadi/navToEnums
CyrusNajmabadi Jan 3, 2023
a03d52b
cleaning up code
Jan 3, 2023
9375fe8
Rename
DoctorKrolic Jan 3, 2023
e9d8a25
Prevent stackoverflow in Json parsing
CyrusNajmabadi Jan 3, 2023
75c43b5
Move getting list type to compilation extensions
DoctorKrolic Jan 3, 2023
dbe11fc
Merge pull request #66169 from kinkeadian25/kinkeadian25-declmodifiers
genlu Jan 3, 2023
8cfd750
Update src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandH…
genlu Jan 3, 2023
7f15812
Merge pull request #66204 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Jan 3, 2023
f2d9d4f
Merge pull request #66201 from kinkeadian25/kinkeadian25-asyncdrop
CyrusNajmabadi Jan 3, 2023
39817d3
Add tests for extract on keyword (#66163)
ryzngard Jan 3, 2023
c9cde58
Use Parenthesize helper
DoctorKrolic Jan 3, 2023
d8e8979
Merge pull request #66205 from CyrusNajmabadi/jsonRecursion
CyrusNajmabadi Jan 3, 2023
b51326a
Keep using statement in extract method (#66168)
ryzngard Jan 3, 2023
024b284
Remove usage of Workspace.Options from AutomationObject
tmat Dec 22, 2022
ff90563
Allow missing document in method debug info (#66183)
cston Jan 3, 2023
4f68d7c
Merge pull request #66159 from genlu/PreferDefaultOverStarreditem
genlu Jan 3, 2023
c107bcd
Remove DeclarationScope in favor of ScopedKind (#66180)
jcouv Jan 4, 2023
00f9115
Update config file
Cosifne Jan 4, 2023
0a396d0
Change the target vs branch to main for 17.5
Cosifne Jan 4, 2023
82e0546
Merge pull request #66203 from DoctorKrolic/if-you-see-parentheses-si…
CyrusNajmabadi Jan 4, 2023
1075c9f
Add tests that verify options with language specific storage location…
dibarbet Jan 4, 2023
03dcf0d
Merge pull request #66213 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Jan 4, 2023
3d4a21c
Merge pull request #66223 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Jan 4, 2023
4505733
Merge pull request #66217 from Cosifne/dev/shech/Snap17.5P3
Cosifne Jan 4, 2023
5cc7669
Merge pull request #66214 from dotnet/merges/snap17.5P3
Cosifne Jan 4, 2023
7672f4a
Merge pull request #66225 from dotnet/merges/main-to-release/dev17.6
dotnet-bot Jan 4, 2023
19ae363
use non-obsolete property
dibarbet Jan 4, 2023
bfd06c8
Merge pull request #66226 from dotnet/merges/release/dev17.5-to-relea…
dotnet-bot Jan 4, 2023
43db0ff
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 4, 2023
e5ccc2e
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 4, 2023
d40f88c
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 4, 2023
c77650a
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 4, 2023
645b2cb
Allow rename on items also defined in SG (#66209)
ryzngard Jan 4, 2023
6aa22da
fix warnings
dibarbet Jan 4, 2023
08e08e7
Merge pull request #66228 from dotnet/merges/release/dev17.5-vs-deps-…
dotnet-bot Jan 4, 2023
7238a7a
Fix race condition in PerformanceQueue.AnalyzerNumberAssigner
mavasani Jan 4, 2023
a3b8544
Address review feedback
mavasani Jan 4, 2023
76101ef
Merge pull request #66222 from dibarbet/features_options_tests
dibarbet Jan 4, 2023
1ae4f87
Merge pull request #66087 from mavasani/Issue66085
mavasani Jan 4, 2023
cde3f5c
Merge pull request #64083 from mavasani/DeprecateContextCtors
mavasani Jan 4, 2023
0625e99
Ensure solution is fully loaded before gathering semantic errors
CyrusNajmabadi Jan 4, 2023
5a663e7
Merge pull request #66230 from mavasani/FixRaceConditionPerformanceQueue
arunchndr Jan 4, 2023
1acd5fa
Merge pull request #63500 from 3schwartz/incremental_generators_docs
chsienki Jan 4, 2023
90144d2
Merge pull request #66234 from CyrusNajmabadi/semanticErrors2
CyrusNajmabadi Jan 4, 2023
7d954a3
Skip implicit build optimization for false value of `OptimizeImplicit…
Youssef1313 Jan 4, 2023
a4decac
Merge pull request #66218 from dotnet/merge/17.6BackToMain
Cosifne Jan 4, 2023
f92876c
Fix a couple of cases where feature options were not being hooked up.
CyrusNajmabadi Jan 4, 2023
d43ec6d
Merge remote-tracking branch 'upstream/main' into fixOptions
CyrusNajmabadi Jan 4, 2023
a30c892
Merge pull request #66236 from dotnet/merges/release/dev17.5-to-relea…
dotnet-bot Jan 4, 2023
ed5c544
Mitigate crash in platform
CyrusNajmabadi Jan 4, 2023
975a372
Mitigate crash in platform
CyrusNajmabadi Jan 4, 2023
4d9a89a
Merge pull request #66227 from dotnet/locfiles/6d46b34b-c04b-4efc-a9b…
Cosifne Jan 4, 2023
eee9eb8
Add test
CyrusNajmabadi Jan 4, 2023
a2e7bab
Fix potential invalid TextSpan when reporting FAR results
CyrusNajmabadi Jan 4, 2023
839ffce
Merge pull request #66243 from dotnet/merges/release/dev17.5-vs-deps-…
dotnet-bot Jan 4, 2023
e5a4f39
workaround tabular data control focus issue
jmarolf Jan 4, 2023
e6e59b5
Add test
CyrusNajmabadi Jan 4, 2023
e079d9a
Merge pull request #66211 from tmat/AutomationWorkspace
Cosifne Jan 5, 2023
8eb4eb5
Merge pull request #66247 from jmarolf/bugfix/tab-order
jmarolf Jan 5, 2023
a7f88fc
Move VS specific option storage locations to VS layer (#66042)
tmat Jan 5, 2023
9afe681
Merge pull request #66242 from CyrusNajmabadi/navToCrash
CyrusNajmabadi Jan 5, 2023
dba0af9
Merge pull request #66241 from CyrusNajmabadi/fixOptions
CyrusNajmabadi Jan 5, 2023
dc3e4e6
Merge pull request #66256 from dotnet/release/dev17.5
jmarolf Jan 5, 2023
bad557e
[main] Update dependencies from dotnet/arcade (#66231)
dotnet-maestro[bot] Jan 5, 2023
a3be37b
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 5, 2023
2358b57
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 5, 2023
83f296d
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 5, 2023
8d37fc2
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 5, 2023
04b4e39
Merge pull request #66245 from CyrusNajmabadi/farOOB
CyrusNajmabadi Jan 5, 2023
f8f6372
Port #66241 to Dev17.5
CyrusNajmabadi Jan 5, 2023
3195482
Merge pull request #66268 from dotnet/locfiles/a3068158-6c1e-4a33-b5a…
Cosifne Jan 5, 2023
6b546a1
Disable testing SequencePointsMultipleDocuments with DebugInformation…
cston Jan 5, 2023
cc7f396
Merge pull request #66269 from CyrusNajmabadi/port66241
arunchndr Jan 5, 2023
af67b52
Merge pull request #66252 from dotnet/merges/release/dev17.5-vs-deps-…
dotnet-bot Jan 5, 2023
fa545c5
Unify `ConstantValueOpt` and `ConstantValue` properties (#66248)
alrz Jan 5, 2023
3b31715
Merge pull request #66273 from dotnet/merges/release/dev17.5-to-relea…
dotnet-bot Jan 5, 2023
8e0c2b0
[LSP] Temporarily report NFWs in `RangeToTextSpan` (#66259)
allisonchou Jan 6, 2023
90de707
Report error implementing interface with `[UnscopedRef]` member (#66024)
cston Jan 6, 2023
c573d85
If we hit an exception while indexing, say which document it was with
jasonmalinowski Jan 5, 2023
eeacc62
Include LSP loghub logs when collecting watson dumps for NFW
dibarbet Jan 6, 2023
123bbfc
remove unneeded try/catch
dibarbet Jan 6, 2023
de14690
delete accidental test code
dibarbet Jan 6, 2023
b16c0f7
add back todo
dibarbet Jan 6, 2023
4653215
use named argument
dibarbet Jan 6, 2023
273955e
Merge pull request #66281 from dibarbet/include_lsp_logs_faults
dibarbet Jan 6, 2023
7f58562
Merge pull request #66282 from dotnet/merges/release/dev17.5-to-relea…
dotnet-bot Jan 6, 2023
8e59eb7
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 6, 2023
3d6ce2e
Localized file check-in by OneLocBuild Task: Build definition ID 327:…
dotnet-bot Jan 6, 2023
9b5e355
Include [UnscopedRef] parameter attributes in synthesized delegate ty…
cston Jan 6, 2023
9788134
Merge pull request #66283 from dotnet/locfiles/23df1b01-ece1-4ba7-802…
Cosifne Jan 6, 2023
e5390ea
Merge pull request #66286 from dotnet/merges/release/dev17.5-to-relea…
dotnet-bot Jan 6, 2023
9a347d1
[main] Update dependencies from dotnet/roslyn-analyzers (#66232)
dotnet-maestro[bot] Jan 6, 2023
8a94937
Fix priorities being incorrect in the task list.
CyrusNajmabadi Jan 6, 2023
31c0392
Update tests
CyrusNajmabadi Jan 6, 2023
07a6b5e
Merge branch 'main' into merges/release/dev17.5-vs-deps-to-main
CyrusNajmabadi Jan 6, 2023
5f4445f
Support task list priorities in LSP
CyrusNajmabadi Jan 6, 2023
8ad265f
Merge pull request #66276 from dotnet/merges/release/dev17.5-vs-deps-…
dotnet-bot Jan 6, 2023
ca860f1
Apply XAML template on AbstractCheckBoxViewModel instead of one speci…
tmat Jan 6, 2023
7f7c437
Fix 'protected internal' accessibility modifier keyword order
DoctorKrolic Jan 6, 2023
ec3fc85
Add comment
CyrusNajmabadi Jan 6, 2023
2407a6c
Merge branch 'taskListPriorities' into lspTaskListPriority
CyrusNajmabadi Jan 6, 2023
d99e001
Update publishData.json
Cosifne Jan 6, 2023
0dcf096
Rename
CyrusNajmabadi Jan 6, 2023
4d7232d
Simplify the handling of diagnostic item sources with missing references
jasonmalinowski Jan 6, 2023
44a1131
Remove workarounds for fixed issues (#66267)
Youssef1313 Jan 6, 2023
023e7a8
Avoid contract failures in PreviewSolutionCrawlerRegistrationService …
tmat Jan 6, 2023
b11e181
Merge pull request #66293 from CyrusNajmabadi/taskListPriorities
CyrusNajmabadi Jan 6, 2023
0aa603d
Merge remote-tracking branch 'upstream/main' into lspTaskListPriority
CyrusNajmabadi Jan 6, 2023
cbe19fe
Move constants
CyrusNajmabadi Jan 6, 2023
50b9587
Ensure we also unsubscribe if the node is disposed
jasonmalinowski Jan 6, 2023
8211f8e
remove width from stackpanel (#66301)
akhera99 Jan 6, 2023
b3dfcd6
(17.5) Copy all diagnostic info from derived classes when changing se…
RikkiGibson Jan 6, 2023
5927755
Merge pull request #66277 from jasonmalinowski/additional-logging-for…
jasonmalinowski Jan 6, 2023
de7e834
Merge pull request #66297 from Cosifne/dev/shech/changeBranch
Cosifne Jan 7, 2023
ee9a2da
Log source differences to files even when apply changes are blocked (…
tmat Jan 7, 2023
319291d
Option store (#66069)
tmat Jan 7, 2023
1583ffa
Merge remote-tracking branch 'dotnet/release/dev17.5-vs-deps' into HEAD
jcouv Jan 7, 2023
b6c90bf
Ensure that side effects of conditional access on an instance of a nu…
AlekseyTs Jan 7, 2023
00f49cc
Merge pull request #66306 from dotnet/merges/release/dev17.5-vs-deps-…
jcouv Jan 8, 2023
3639cb4
Support netmodules in `MetadataReference` factory methods (#66076)
jjonescz Jan 9, 2023
25024fa
[main] Update dependencies from dotnet/roslyn-analyzers (#66310)
dotnet-maestro[bot] Jan 9, 2023
1f9d169
Merge pull request #66296 from DoctorKrolic/protected-internal-is-not…
CyrusNajmabadi Jan 9, 2023
8ad2e62
Merge pull request #66304 from dotnet/merges/release/dev17.5-to-relea…
dotnet-bot Jan 9, 2023
6aa3a9f
Remove incorrect guids (#66333)
tmat Jan 9, 2023
df9534f
Ensure we didn't miss a workspace change event
jasonmalinowski Jan 9, 2023
1fef5bb
Merge pull request #66338 from dotnet/merges/release/dev17.5-vs-deps-…
dotnet-bot Jan 10, 2023
a905e73
Emit stackalloc block initializer for byte-sized enums (#66251)
alrz Jan 10, 2023
e8dbcd2
Improve VS settings integration test, fix deserialization of enum opt…
tmat Jan 10, 2023
578c447
Improve logign of rude edits and write analysis log to disk (#66318)
tmat Jan 10, 2023
8bdab1a
Do not copy nullable value type receiver of a constrained call. (#66311)
AlekseyTs Jan 10, 2023
a82e2bc
Fix cancellation in test
genlu Jan 10, 2023
705daac
Merge pull request #66344 from genlu/FixTest
genlu Jan 10, 2023
13fc136
Adjust assert to account for error scenarios (#66202)
RikkiGibson Jan 10, 2023
12cf767
Merge pull request #66294 from CyrusNajmabadi/lspTaskListPriority
CyrusNajmabadi Jan 10, 2023
1976262
Add a InternalsVisibleTo for Workspaces.MSBuild
jasonmalinowski Jan 11, 2023
e8acd47
Merge remote-tracking branch 'upstream/main' into EnCFollowUp
davidwengier Jan 11, 2023
cf2db8b
Fix correctness
davidwengier Jan 11, 2023
f8c90ee
Naming and comment
davidwengier Jan 11, 2023
8d3db36
Don't rely on unset values from BitVector in nullable state (#66174)
jcouv Jan 11, 2023
898b45d
Merge pull request #63055 from Youssef1313/move-tests
mavasani Jan 11, 2023
d3f3c64
Added table of content to source-generators.cookbook.md (#66317)
AnderssonPeter Jan 11, 2023
2a97289
Merge pull request #64034 from davidwengier/EnCFollowUp
davidwengier Jan 11, 2023
9b611c7
Merge pull request #66349 from jasonmalinowski/add-ivt
jasonmalinowski Jan 11, 2023
4298934
Merge pull request #66303 from jasonmalinowski/simplify-and-fix-handi…
jasonmalinowski Jan 11, 2023
3419bcd
Add `ExternalAccess.RazorCompiler` project with host outputs API (#65…
jjonescz Jan 11, 2023
19c08a8
Reduce When New Rename Is Dismissed (#66350)
ryzngard Jan 11, 2023
919b343
Merge 'dotnet/main' into PrimaryConstructors
AlekseyTs Jan 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ src/Features/**/PublicAPI.Unshipped.txt @dotnet/roslyn-api-owners
src/EditorFeatures/**/PublicAPI.Unshipped.txt @dotnet/roslyn-api-owners

src/Tools/ExternalAccess/OmniSharp*/ @333fred @joerobich
src/Tools/ExternalAccess/RazorCompiler @dotnet/roslyn-compiler
10 changes: 10 additions & 0 deletions Compilers.sln
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CSha
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestDiscoveryWorker", "src\Tools\TestDiscoveryWorker\TestDiscoveryWorker.csproj", "{FB617466-C4A1-4289-A512-A06182FC779F}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ExternalAccess", "ExternalAccess", "{67B6F694-CA27-4CDE-B1E5-E2B4105A2420}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler", "src\Tools\ExternalAccess\RazorCompiler\Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.csproj", "{8450EF6B-28BB-4F4D-B005-CD734B476800}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -423,6 +427,10 @@ Global
{FB617466-C4A1-4289-A512-A06182FC779F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FB617466-C4A1-4289-A512-A06182FC779F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FB617466-C4A1-4289-A512-A06182FC779F}.Release|Any CPU.Build.0 = Release|Any CPU
{8450EF6B-28BB-4F4D-B005-CD734B476800}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8450EF6B-28BB-4F4D-B005-CD734B476800}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8450EF6B-28BB-4F4D-B005-CD734B476800}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8450EF6B-28BB-4F4D-B005-CD734B476800}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -499,6 +507,8 @@ Global
{48C93F90-8776-4847-96D8-127B896D6C80} = {C65C6143-BED3-46E6-869E-9F0BE6E84C37}
{F3D9264A-7CAE-4265-AF48-0C863301F51E} = {32A48625-F0AD-419D-828B-A50BDABA38EA}
{FB617466-C4A1-4289-A512-A06182FC779F} = {FD0FAF5F-1DED-485C-99FA-84B97F3A8EEC}
{67B6F694-CA27-4CDE-B1E5-E2B4105A2420} = {FD0FAF5F-1DED-485C-99FA-84B97F3A8EEC}
{8450EF6B-28BB-4F4D-B005-CD734B476800} = {67B6F694-CA27-4CDE-B1E5-E2B4105A2420}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6F599E08-A9EA-4FAA-897F-5D824B0210E6}
Expand Down
1 change: 1 addition & 0 deletions Compilers.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"src\\Test\\PdbUtilities\\Roslyn.Test.PdbUtilities.csproj",
"src\\Compilers\\Test\\Core\\Microsoft.CodeAnalysis.Test.Utilities.csproj",
"src\\Tools\\AnalyzerRunner\\AnalyzerRunner.csproj",
"src\\Tools\\ExternalAccess\\RazorCompiler\\Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.csproj",
"src\\Tools\\Source\\CompilerGeneratorTools\\Source\\BoundTreeGenerator\\CompilersBoundTreeGenerator.csproj",
"src\\Tools\\Source\\CompilerGeneratorTools\\Source\\CSharpErrorFactsGenerator\\CSharpErrorFactsGenerator.csproj",
"src\\Tools\\Source\\CompilerGeneratorTools\\Source\\CSharpSyntaxGenerator\\CSharpSyntaxGenerator.csproj",
Expand Down
21 changes: 7 additions & 14 deletions Roslyn.sln
Original file line number Diff line number Diff line change
Expand Up @@ -519,12 +519,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CommonLanguageSer
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.TestAnalyzerReference", "src\Workspaces\TestAnalyzerReference\Microsoft.CodeAnalysis.TestAnalyzerReference.csproj", "{8A29449D-411E-49E4-B99E-E8428076BB21}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.CSharp.LanguageServer.Protocol", "src\Features\LanguageServer\Microsoft.CodeAnalysis.CSharp.LanguageServer.Protocol\Microsoft.CodeAnalysis.CSharp.LanguageServer.Protocol.csproj", "{4C1B26EE-465B-4B30-9E50-0285EF7AB035}"
EndProject
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "Microsoft.CodeAnalysis.VisualBasic.LanguageServer.Protocol", "src\Features\LanguageServer\Microsoft.CodeAnalysis.VisualBasic.LanguageServer.Protocol\Microsoft.CodeAnalysis.VisualBasic.LanguageServer.Protocol.vbproj", "{F836BDB1-4EC7-4F4C-B2E9-BCD721C9E650}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestDiscoveryWorker", "src\Tools\TestDiscoveryWorker\TestDiscoveryWorker.csproj", "{8BC50AFF-1EBF-4E9A-AEBB-04F387AA800F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler", "src\Tools\ExternalAccess\RazorCompiler\Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.csproj", "{E5E0BF73-95F7-4BC3-8443-2336C4FF4297}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -1271,18 +1269,14 @@ Global
{8A29449D-411E-49E4-B99E-E8428076BB21}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8A29449D-411E-49E4-B99E-E8428076BB21}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8A29449D-411E-49E4-B99E-E8428076BB21}.Release|Any CPU.Build.0 = Release|Any CPU
{4C1B26EE-465B-4B30-9E50-0285EF7AB035}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4C1B26EE-465B-4B30-9E50-0285EF7AB035}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4C1B26EE-465B-4B30-9E50-0285EF7AB035}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4C1B26EE-465B-4B30-9E50-0285EF7AB035}.Release|Any CPU.Build.0 = Release|Any CPU
{F836BDB1-4EC7-4F4C-B2E9-BCD721C9E650}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F836BDB1-4EC7-4F4C-B2E9-BCD721C9E650}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F836BDB1-4EC7-4F4C-B2E9-BCD721C9E650}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F836BDB1-4EC7-4F4C-B2E9-BCD721C9E650}.Release|Any CPU.Build.0 = Release|Any CPU
{8BC50AFF-1EBF-4E9A-AEBB-04F387AA800F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8BC50AFF-1EBF-4E9A-AEBB-04F387AA800F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8BC50AFF-1EBF-4E9A-AEBB-04F387AA800F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8BC50AFF-1EBF-4E9A-AEBB-04F387AA800F}.Release|Any CPU.Build.0 = Release|Any CPU
{E5E0BF73-95F7-4BC3-8443-2336C4FF4297}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E5E0BF73-95F7-4BC3-8443-2336C4FF4297}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E5E0BF73-95F7-4BC3-8443-2336C4FF4297}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E5E0BF73-95F7-4BC3-8443-2336C4FF4297}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1519,9 +1513,8 @@ Global
{BD9539EB-AA5E-4E67-AC7F-97D7CBC4D0C9} = {3E5FE3DB-45F7-4D83-9097-8F05D3B3AEC6}
{58AD1B2C-6FFC-47CB-838A-54D0CA2BF0C8} = {3E5FE3DB-45F7-4D83-9097-8F05D3B3AEC6}
{8A29449D-411E-49E4-B99E-E8428076BB21} = {55A62CFA-1155-46F1-ADF3-BEEE51B58AB5}
{4C1B26EE-465B-4B30-9E50-0285EF7AB035} = {3E5FE3DB-45F7-4D83-9097-8F05D3B3AEC6}
{F836BDB1-4EC7-4F4C-B2E9-BCD721C9E650} = {3E5FE3DB-45F7-4D83-9097-8F05D3B3AEC6}
{8BC50AFF-1EBF-4E9A-AEBB-04F387AA800F} = {FD0FAF5F-1DED-485C-99FA-84B97F3A8EEC}
{E5E0BF73-95F7-4BC3-8443-2336C4FF4297} = {8977A560-45C2-4EC2-A849-97335B382C74}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {604E6B91-7BC0-4126-AE07-D4D2FEFC3D29}
Expand Down
62 changes: 62 additions & 0 deletions docs/compilers/CSharp/Compiler Breaking Changes - DotNet 7.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# This document lists known breaking changes in Roslyn after .NET 6 all the way to .NET 7.

## Ref safety errors do not affect conversion from lambda expression to delegate

***Introduced in Visual Studio 2022 version 17.5***

Ref safety errors reported in a lambda body no longer affect whether the lambda expression is convertible to a delegate type. This change can affect overload resolution.

In the example below, the call to `M(x => ...)` is ambiguous with Visual Studio 17.5 because both `M(D1)` and `M(D2)` are now considered applicable, even though the call to `F(ref x, ref y)` within the lambda body will result in a ref safety with `M(D1)` (see the examples in `d1` and `d2` for comparison). Previously, the call bound unambiguously to `M(D2)` because the `M(D1)` overload was considered not applicable.
```csharp
using System;

ref struct R { }

delegate R D1(R r);
delegate object D2(object o);

class Program
{
static void M(D1 d1) { }
static void M(D2 d2) { }

static void F(ref R x, ref Span<int> y) { }
static void F(ref object x, ref Span<int> y) { }

static void Main()
{
// error CS0121: ambiguous between: 'M(D1)' and 'M(D2)'
M(x =>
{
Span<int> y = stackalloc int[1];
F(ref x, ref y);
return x;
});

D1 d1 = x1 =>
{
Span<int> y1 = stackalloc int[1];
F(ref x1, ref y1); // error CS8352: 'y2' may expose referenced variables
return x1;
};

D2 d2 = x2 =>
{
Span<int> y2 = stackalloc int[1];
F(ref x2, ref y2); // ok: F(ref object x, ref Span<int> y)
return x2;
};
}
}
```

To workaround the overload resolution changes, use explicit types for the lambda parameters or delegate.

```csharp
// ok: M(D2)
M((object x) =>
{
Span<int> y = stackalloc int[1];
F(ref x, ref y); // ok: F(ref object x, ref Span<int> y)
return x;
});
```

## Raw string interpolations at start of line.

***Introduced in Visual Studio 2022 version 17.5***
Expand Down
135 changes: 54 additions & 81 deletions docs/features/incremental-generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,18 +206,14 @@ transformations together:
Consider the following simple example:

```csharp
initContext.RegisterExecutionPipeline(static context =>
{
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = context.AdditionalTextsProvider;

// apply a 1-to-1 transform on each text, which represents extracting the path
IncrementalValuesProvider<string> transformed = additionalTexts.Select(static (text, _) => text.Path);
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = initContext.AdditionalTextsProvider;

// transform each extracted path into something else
IncrementalValuesProvider<string> prefixTransform = transformed.Select(static (path, _) => "prefix_" + path);
// apply a 1-to-1 transform on each text, which represents extracting the path
IncrementalValuesProvider<string> transformed = additionalTexts.Select(static (text, _) => text.Path);

});
// transform each extracted path into something else
IncrementalValuesProvider<string> prefixTransform = transformed.Select(static (path, _) => "prefix_" + path);
```

Note how `transformed` and `prefixTransform` are themselves an
Expand Down Expand Up @@ -369,17 +365,14 @@ distinct item for generation, effectively splitting a single additional file
into multiple sub-items.

``` csharp
initContext.RegisterExecutionPipeline(static context =>
{
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = context.AdditionalTextsProvider;
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = initContext.AdditionalTextsProvider;

// extract each element from each additional file
IncrementalValuesProvider<MyElementType> elements = additionalTexts.SelectMany(static (text, _) => /*transform text into an array of MyElementType*/);
// extract each element from each additional file
IncrementalValuesProvider<MyElementType> elements = additionalTexts.SelectMany(static (text, _) => /*transform text into an array of MyElementType*/);

// now the generator can consider the union of elements in all additional texts, without needing to consider multiple files
IncrementalValuesProvider<string> transformed = elements.Select(static (element, _) => /*transform the individual element*/);
}
// now the generator can consider the union of elements in all additional texts, without needing to consider multiple files
IncrementalValuesProvider<string> transformed = elements.Select(static (element, _) => /*transform the individual element*/);
```

### Where
Expand Down Expand Up @@ -422,14 +415,11 @@ interested in. For example, the generator will likely want to filter additional
texts on file extensions:

```csharp
initContext.RegisterExecutionPipeline(static context =>
{
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = context.AdditionalTextsProvider;
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = initContext.AdditionalTextsProvider;

// filter additional texts by extension
IncrementalValuesProvider<string> xmlFiles = additionalTexts.Where(static (text, _) => text.Path.EndsWith(".xml", StringComparison.OrdinalIgnoreCase));
}
// filter additional texts by extension
IncrementalValuesProvider<string> xmlFiles = additionalTexts.Where(static (text, _) => text.Path.EndsWith(".xml", StringComparison.OrdinalIgnoreCase));
```

### Collect
Expand Down Expand Up @@ -464,18 +454,14 @@ IncrementalValuesProvider<TSource> IncrementalValueProvider<Immut
```

```csharp
initContext.RegisterExecutionPipeline(static context =>
{
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = context.AdditionalTextsProvider;
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = initContext.AdditionalTextsProvider;

// collect the additional texts into a single item
IncrementalValueProvider<AdditionalText[]> collected = context.AdditionalTexts.Collect();

// perform a transformation where you can access all texts at once
var transform = collected.Select(static (texts, _) => /* ... */);
}
// collect the additional texts into a single item
IncrementalValueProvider<AdditionalText[]> collected = additionalTexts.Collect();

// perform a transformation where you can access all texts at once
var transform = collected.Select(static (texts, _) => /* ... */);
```

### Multi-path pipelines
Expand Down Expand Up @@ -520,18 +506,15 @@ Those transforms can then be used as the inputs to new single path transforms, i
For example:

```csharp
initContext.RegisterExecutionPipeline(static context =>
{
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = context.AdditionalTextsProvider;
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = context.AdditionalTextsProvider;

// apply a 1-to-1 transform on each text, extracting the path
IncrementalValuesProvider<string> transformed = additionalTexts.Select(static (text, _) => text.Path);
// apply a 1-to-1 transform on each text, extracting the path
IncrementalValuesProvider<string> transformed = additionalTexts.Select(static (text, _) => text.Path);

// split the processing into two paths of derived data
IncrementalValuesProvider<string> nameTransform = transformed.Select(static (path, _) => "prefix_" + path);
IncrementalValuesProvider<string> extensionTransform = transformed.Select(static (path, _) => Path.ChangeExtension(path, ".new"));
}
// split the processing into two paths of derived data
IncrementalValuesProvider<string> nameTransform = transformed.Select(static (path, _) => "prefix_" + path);
IncrementalValuesProvider<string> extensionTransform = transformed.Select(static (path, _) => Path.ChangeExtension(path, ".new"));
```

`nameTransform` and `extensionTransform` produce different values for the same
Expand Down Expand Up @@ -671,23 +654,19 @@ With the above transformations the generator author can now take one or more
inputs and combine them into a single source of data. For example:

```csharp
initContext.RegisterExecutionPipeline(static context =>
{
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = context.AdditionalTextsProvider;

// combine each additional text with the parse options
IncrementalValuesProvider<(AdditionalText, ParseOptions)> combined = context.AdditionalTextsProvider.Combine(context.ParseOptionsProvider);
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = initContext.AdditionalTextsProvider;

// perform a transform on each text, with access to the options
var transformed = combined.Select(static (pair, _) =>
{
AdditionalText text = pair.Left;
ParseOptions parseOptions = pair.Right;
// combine each additional text with the parse options
IncrementalValuesProvider<(AdditionalText, ParseOptions)> combined = initContext.AdditionalTextsProvider.Combine(initContext.ParseOptionsProvider);

// do the actual transform ...
});
}
// perform a transform on each text, with access to the options
var transformed = combined.Select(static (pair, _) =>
{
AdditionalText text = pair.Left;
ParseOptions parseOptions = pair.Right;
// do the actual transform ...
});
```

If either of the inputs to a combine change, then subsequent transformation will
Expand Down Expand Up @@ -751,12 +730,9 @@ public class Class3 {}
As an author I can make an input node that extracts the return type information

```csharp
initContext.RegisterExecutionPipeline(static context =>
{
// create a syntax provider that extracts the return type kind of method symbols
var returnKinds = context.SyntaxProvider.CreateSyntaxProvider(static (n, _) => n is MethodDeclarationSyntax,
// create a syntax provider that extracts the return type kind of method symbols
var returnKinds = initContext.SyntaxProvider.CreateSyntaxProvider(static (n, _) => n is MethodDeclarationSyntax,
static (n, _) => ((IMethodSymbol)n.SemanticModel.GetDeclaredSymbol(n.Node)).ReturnType.Kind);
}
```

Initially the `predicate` will run for all syntax nodes, and select the two
Expand Down Expand Up @@ -856,21 +832,19 @@ For example, a generator can extract out the set of paths for the additional
files and create a method that prints them out:

``` csharp
initContext.RegisterExecutionPipeline(static context =>
{
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = context.AdditionalTextsProvider;
// get the additional text provider
IncrementalValuesProvider<AdditionalText> additionalTexts = initContext.AdditionalTextsProvider;

// apply a 1-to-1 transform on each text, extracting the path
IncrementalValuesProvider<string> transformed = additionalTexts.Select(static (text, _) => text.Path);
// apply a 1-to-1 transform on each text, extracting the path
IncrementalValuesProvider<string> transformed = additionalTexts.Select(static (text, _) => text.Path);

// collect the paths into a batch
IncrementalValueProvider<ImmutableArray<string>> collected = transformed.Collect();
// take the file paths from the above batch and make some user visible syntax
initContext.RegisterSourceOutput(collected, static (sourceProductionContext, filePaths) =>
{
sourceProductionContext.AddSource("additionalFiles.cs", @"
// collect the paths into a batch
IncrementalValueProvider<ImmutableArray<string>> collected = transformed.Collect();

// take the file paths from the above batch and make some user visible syntax
initContext.RegisterSourceOutput(collected, static (sourceProductionContext, filePaths) =>
{
sourceProductionContext.AddSource("additionalFiles.cs", @"
namespace Generated
{
public class AdditionalTextList
Expand All @@ -881,8 +855,7 @@ namespace Generated
}
}
}");
});
}
});
```

**RegisterImplementationSourceOutput**:
Expand Down
Loading