Commit Graph
1752 Commits
Author SHA1 Message Date
Sergio Pedri 3daad892c1 Fix unit tests 2022-03-09 22:14:51 +01:00
Sergio Pedri 7a4eccbc10 Remove CanExecute checks from Execute logic 2022-03-09 22:14:51 +01:00
Sergio Pedri e1ec425f97 Merge pull request #135 from CommunityToolkit/dev/dynamically-accessed-members-attribute
Add [DynamicallyAccessedMembers] annotations
2022-03-09 22:14:14 +01:00
Sergio Pedri 5fb9f7039c Add unit tests for trimming annotations 2022-03-09 00:13:36 +01:00
Sergio Pedri 7daf7bf7ce Merge pull request #132 from CommunityToolkit/dev/remove-debugger-non-user-code
Remove [DebuggerNonUserCode] from visible members
2022-03-09 00:05:45 +01:00
Sergio Pedri 1e033f47bb Improve detection of [DynamicallyAccessedMembers] 2022-03-06 19:34:30 +01:00
Sergio Pedri baada1ac70 Update RegisterConditionalImplementationSourceOutput extension 2022-03-06 19:33:30 +01:00
Sergio Pedri 40b492ddf8 Generate [DynamicallyAccessedMembers] for __ObservableValidatorExtensions 2022-03-06 19:29:30 +01:00
Sergio Pedri e78e9c8250 Generate [DynamicallyAccessedMembers] for __IMessengerExtensions 2022-03-06 19:26:02 +01:00
Sergio Pedri c9839ef073 Remove [DebuggerNonUserCode] from visible members 2022-03-06 17:36:35 +01:00
Sergio Pedri fa9114b3ed Merge pull request #134 from CommunityToolkit/dev/net-native-fix
Remove ArrayPoolBufferWriter<T> explicit constructor
2022-03-06 17:36:07 +01:00
Sergio Pedri 0aa38c5e8a Remove ArrayPoolBufferWriter<T> explicit constructor
This fixes a build error with .NET Native
2022-03-05 20:29:07 +01:00
Sergio Pedri 5cea66b4f8 Fix invalid unit tests 2022-03-02 23:20:57 +01:00
Sergio Pedri 81e99a9199 Merge pull request #128 from CommunityToolkit/dev/cancel-commands
Add cancel command support
2022-03-02 20:49:35 +01:00
Sergio Pedri 89fdd0aab5 Merge pull request #130 from Avid29/main
Fixed typos in Span2D implicit operators
2022-03-02 19:25:32 +01:00
Adam Dernis 94bf93aac8 Fixed typos in Span2D implicit operators 2022-03-02 12:59:01 -05:00
Sergio Pedri 1371da130a Add unit tests for cancel commands 2022-03-02 12:45:38 +01:00
Sergio Pedri 5afbbdf6f8 Improve XML docs for ICommandAttribute.IncludeCancelCommand 2022-03-01 21:35:42 +01:00
Sergio Pedri 86d689c2f9 Update ICommandGenerator to generate cancel commands 2022-03-01 18:59:15 +01:00
Sergio Pedri 63a6676790 Add IncludeCancelCommand option to generator model 2022-03-01 17:22:37 +01:00
Sergio Pedri 8ae1006b4d Add IAsyncRelayCommandExtensions.CreateCancelCommand 2022-03-01 17:08:02 +01:00
Sergio Pedri 3fc61fe03d Merge pull request #119 from CommunityToolkit/dev/partial-observable-property-methods
[ObservableProperty] generates partial OnPropertyChanging/Changed methods
2022-03-01 13:40:42 +01:00
Sergio Pedri 2689986c98 Merge pull request #120 from CommunityToolkit/dev/fix-messenger-generator-duplicates
Fix IRecipient generator for partial recipient declarations
2022-03-01 13:40:18 +01:00
Sergio Pedri f40eb62717 Add more tests for generated partial methods 2022-03-01 00:17:30 +01:00
Sergio Pedri d4a58e88fb Fix wrong generator type names in [GeneratedCode] 2022-03-01 00:17:30 +01:00
Sergio Pedri 4fb135719f Add unit test for new partial generated methods 2022-03-01 00:17:30 +01:00
Sergio Pedri 07fdeed558 Add invocation of partial generated methods 2022-03-01 00:17:30 +01:00
Sergio Pedri f487d92f87 Add partial generation for OnPropertyChanging/Changed 2022-03-01 00:17:29 +01:00
Sergio Pedri 1a24e0d415 Optimize duplicates removal in IMessengerRegisterAllGenerator 2022-03-01 00:17:15 +01:00
Sergio Pedri 854499580a Improve syntax node filtering in IMessengerRegisterAllGenerator 2022-03-01 00:17:15 +01:00
Sergio Pedri 849a0f14e5 Fix IRecipient generator for partial recipient declarations 2022-03-01 00:17:15 +01:00
Sergio Pedri df3b529a85 Merge pull request #122 from CommunityToolkit/dev/async-command-events-fixup
Fix async command event notifications
2022-03-01 00:16:37 +01:00
Sergio Pedri 9c0a1b36cb Minor bug fixes, add more unit tests 2022-03-01 00:00:52 +01:00
Sergio Pedri c9f5b9fe42 Fix async command event notifications 2022-02-28 23:35:26 +01:00
Sergio Pedri 4d9816e171 Merge pull request #111 from CommunityToolkit/dev/async-command-concurrency-notify
Fix AsyncRelayCommand with allowConcurrentExecutions == false not raising CanExecuteChanged
2022-02-28 23:33:13 +01:00
Sergio Pedri 105e31ac87 Fix some typos 2022-02-28 23:12:26 +01:00
Sergio Pedri d776a1ecda Add unit tests for Execute raising CanExecuteChanged if needed 2022-02-28 22:58:55 +01:00
Sergio Pedri 3c71d4b401 Notify CanExecute when invoking an async command 2022-02-28 22:57:49 +01:00
Sergio Pedri 5dcc52bc4b Merge pull request #113 from CommunityToolkit/dev/task-await-propagate-unobserved
Propagate task exceptions to TaskScheduler.UnobservedTaskException
2022-02-28 22:56:29 +01:00
Sergio Pedri 2ca1ac7055 Add notes on TaskSchedulerTestHelper logic 2022-02-28 22:39:23 +01:00
Sergio Pedri 55b600b5f4 Add unit tests for UnobservedTaskExceptions propagation 2022-02-28 22:37:26 +01:00
Sergio Pedri 33c58e3eda Remove try/catch when awaiting tasks, ignore exceptions
This allows exceptions to remain unobserved and propagate to TaskScheduler.UnobservedTaskException. It will also be more efficient, as there is no longer an exception being thrown and handled if there's one.
2022-02-28 22:37:26 +01:00
Sergio Pedri 98fc90732a Add __TaskExtensions.GetAwaitableWithoutEndValidation 2022-02-28 22:37:26 +01:00
Sergio Pedri 90cf3443e3 Merge pull request #127 from CommunityToolkit/dev/default-async-command-concurrency-false
Switch async commands to default to no concurrent execution
2022-02-28 21:25:43 +01:00
Sergio Pedri c71eb3592e Merge pull request #124 from CommunityToolkit/dev/observable-property-inheritdoc
Add <inheritdoc/> to generated observable properties
2022-02-28 21:24:21 +01:00
Sergio Pedri d9c315c3fe Merge pull request #110 from CommunityToolkit/dev/fix-observable-recipient-attribute-inheritance
Fix [ObservableRecipient] with inherited base attributes
2022-02-28 21:23:38 +01:00
Sergio Pedri 0e26a29a57 Update async commands XML docs 2022-02-27 18:55:12 +01:00
Sergio Pedri f6ca1f0bc4 Switch default async command concurrency to false 2022-02-27 18:53:07 +01:00
Sergio Pedri 4a004a4fab Add <inheritdoc/> to generated observable properties 2022-02-24 23:59:29 +01:00
Sergio Pedri c1cb029bc2 Fix [ObservableRecipient] with inherited base attributes 2022-02-22 20:00:26 +01:00