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
Sergio Pedri
3d7b45c97a
Merge pull request #121 from CommunityToolkit/dev/fix-build-warnings
...
Fix analyzer build warnings/errors
2022-02-22 19:58:07 +01:00
Sergio Pedri
bc6f26f118
Improve ILLinker analyzer suppression
2022-02-22 19:37:36 +01:00
Sergio Pedri
ee30d3129c
Add temporary workaround for AD0001 warning
2022-02-22 19:17:02 +01:00
Sergio Pedri
71ad82d274
Workaround for RS2002 warnings
...
See https://github.com/dotnet/roslyn-analyzers/issues/5828
2022-02-22 13:13:37 +01:00
Sergio Pedri
0813779556
Merge pull request #112 from CommunityToolkit/dev/fix-nbgv-install
...
Switch NBGV from install to update
2022-02-14 21:43:18 +01:00
Sergio Pedri
8fc359d50d
Switch NBGV from install to update
...
This avoids issues if the tool is already installed
2022-02-14 21:15:03 +01:00
Sergio Pedri
0936b58854
Merge pull request #106 from CommunityToolkit/dev/icommand-attribute-generated-can-execute
...
Allow using [ICommand(CanExecute)] on generated observable properties
2022-01-31 22:24:55 +01:00
Sergio Pedri
b861efc8e8
Add unit tests for CanExecute on generated properties
2022-01-31 19:45:19 +01:00
Sergio Pedri
7e0bf75f8a
Add support for [ICommand(CanExecute)] on generated properties
2022-01-31 19:40:35 +01:00
Nirmal Guru
ea1010575d
Remove Cake Build ( #94 )
...
We no longer require Cake build nor we use it extensively!
Update Azure Pipelines (CI YAML) Script to be more modern and runnable across platforms.
Replaced the headers check with a PowerShell script mimicking the Cake script's `UpdateHeaders` task functionality.
2022-01-25 13:23:53 +01:00
Nirmal Guru
c5ab771da4
Fix linter issues with ReadMe ( #84 )
...
* Use an emoji for Contributors title
Emoji Used: Champion Cup
Aligns with the rest of the titles
Why Champion Cup you ask? Well, Contributors are champions too! 😎
* Don't use inline HTML in markdown
Always use markdown format if possible.
This format to represent image with a link is supported by most markdown parsers.
* Fix grammatical errors in markdown
These were reported by Spell Checker extension (by EWSoftware) in VS IDE.
* Use canonical language-agnostic URLs
Microsoft Docs provide language-specific content for docs published
to the website but in-order for devs in specific region to get locally
translated content, we need to put language-agnostic canonical URLs.
This is usually done by removing any language and region specific info from URLs.
Reported by Docs markdown linter in VSCode.
2022-01-17 17:26:29 +01:00
Sergio Pedri
f2cfa3ad71
Merge pull request #92 from CommunityToolkit/dev/remove-leftover-head-files
...
Disable generation of header files if no targets are present
2022-01-14 14:34:29 +01:00
Sergio Pedri
c38a4a2118
Disable generation of header files if no targets are present
2022-01-14 14:19:48 +01:00
Sergio Pedri
eff71685c7
Merge pull request #91 from CommunityToolkit/dev/targets-update
...
Update .targets for MVVM Toolkit to fix .wapproj issues
2022-01-14 14:02:29 +01:00
Sergio Pedri
9b1596d453
Refactor conditional logic into separate target
...
This works around <Choose> not supporting <Target> parents
2022-01-14 13:34:22 +01:00
Sergio Pedri
0d894ea7c9
Minor tweaks to MSBuild checks
2022-01-14 13:01:33 +01:00
Sergio Pedri
408c44b4a5
Simplify Roslyn assembly resolution logic
2022-01-14 00:34:53 +01:00
Sergio Pedri
861beea017
Update .targets for MVVM Toolkit to fix .wapproj issues
2022-01-14 00:24:41 +01:00