1
0
mirror of https://github.com/chylex/.NET-Community-Toolkit.git synced 2024-11-23 22:42:47 +01:00
Commit Graph

51 Commits

Author SHA1 Message Date
Sergio Pedri
6920dabf9f Fix [RelayCommand] CanExecute matching with nullability 2022-06-13 17:54:01 +02:00
Sergio Pedri
0d7ec7a24e Add FlowExceptionsToTaskScheduler generator support 2022-06-04 16:37:32 +02:00
Sergio Pedri
79204ab489 Switch async command types to use AsyncRelayCommandOptions 2022-06-04 15:20:30 +02:00
Sergio Pedri
25a213bcd0 Rename [ICommand] to [RelayCommand] 2022-06-02 01:40:58 +02:00
Sergio Pedri
138f67d3a4 Fix ICommand generator with inherited CanExecute members 2022-06-01 22:26:45 +02:00
Sergio Pedri
f1f253e760
Merge pull request #285 from CommunityToolkit/dev/icommand-nullability-annotations
Properly forward nullability annotations for [ICommand]
2022-06-01 22:25:48 +02:00
Sergio Pedri
8742886a0d
Merge pull request #277 from CommunityToolkit/dev/duplicate-base-icommand-diagnostics
Add diagnostic for duplicate ICommand-s in base types
2022-06-01 22:11:27 +02:00
Sergio Pedri
9560e3fef2 Properly forward nullability annotations for [ICommand] 2022-06-01 22:10:43 +02:00
Sergio Pedri
2c5bf9c14a
Merge pull request #279 from CommunityToolkit/dev/command-on-prefix
Add support for "On" prefix for command methods
2022-06-01 22:06:35 +02:00
Sergio Pedri
8157b745bc Use ".g.cs" extension for all generated files 2022-05-30 18:25:04 +02:00
Sergio Pedri
4b825ad126 Replace ToFullStrin() with GetText(Encoding) 2022-05-28 13:28:11 +02:00
Sergio Pedri
8a9fc91b5b Add support for "On" prefix for command methods 2022-05-27 16:05:30 +02:00
Sergio Pedri
49201619c8 Add diagnostic for duplicate ICommand-s in base types 2022-05-27 14:17:29 +02:00
Sergio Pedri
d4a8971ff6
Merge pull request #237 from danielbanda/Typos
Typos
2022-05-25 20:12:29 +02:00
Sergio Pedri
6af97af3ee Fix [ICommand] CanExecute with inherited generated property 2022-05-20 14:22:28 +02:00
Sergio Pedri
9f951c2cf0 Make source generators culture invariant 2022-05-09 21:44:12 +02:00
Daniel Banda
f2dce06b4d Fixing some typos. 2022-05-03 21:21:10 -07:00
Sergio Pedri
61539a26b8 Remove unnecessary using directives 2022-05-03 16:19:41 +02:00
Sergio Pedri
f2ac314fd0 Improve [ICommand] overload diagnostics 2022-03-26 13:58:23 +01:00
Sergio Pedri
3ff3d8e8cd Add diagnostics for [ICommand] on multiple overloads 2022-03-26 13:52:28 +01:00
Sergio Pedri
a045b551d8
Merge pull request #161 from CommunityToolkit/dev/icommand-attribute-task-t
Allow Task<T>-returns on methods with [ICommand]
2022-03-25 23:21:20 +01:00
Sergio Pedri
8fba78db76 Simplify AddSource(...) calls 2022-03-25 22:28:53 +01:00
Sergio Pedri
5a8fd0bf1e Update [ICommand] generator for Task<T> returns 2022-03-25 22:28:38 +01:00
Sergio Pedri
929bef6b6f Fix diagnostics for generated commands 2022-03-13 15:15:20 +01:00
Sergio Pedri
c9839ef073 Remove [DebuggerNonUserCode] from visible members 2022-03-06 17:36:35 +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
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
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
7e0bf75f8a Add support for [ICommand(CanExecute)] on generated properties 2022-01-31 19:40:35 +01:00
Sergio Pedri
aae1cbde84 Add base Comparer<T, TSelf> type 2021-12-29 18:31:11 +01:00
Sergio Pedri
9cc7d41c1e Add FilterWithLanguageVersion extension to gate on language version 2021-12-29 18:31:11 +01:00
Sergio Pedri
13a9149eee Lower C# version requirement to 8 for all generators 2021-12-29 18:31:11 +01:00
Sergio Pedri
64649493b5 Add PropertyInfo type 2021-12-29 18:30:36 +01:00
Sergio Pedri
5fd70ed0be Add incremental IMessengerRegisterAllGenerator 2021-12-29 18:29:57 +01:00
Sergio Pedri
9e493348e8 Minor code refactoring 2021-12-29 18:29:57 +01:00
Sergio Pedri
4667ba2ecd Restore C# version check in ICommandGenerator 2021-12-29 18:29:57 +01:00
Sergio Pedri
703514d0fa Minor code tweaks 2021-12-29 18:29:56 +01:00
Sergio Pedri
4a6edb1474 Remove non incremental ICommandGenerator 2021-12-29 18:29:56 +01:00
Sergio Pedri
28af36a269 Add incremental ICommandGenerator 2021-12-29 18:28:34 +01:00
Sergio Pedri
3e61aeb3c1 Remove [Pure] attribute usages 2021-12-29 18:06:54 +01:00
Sergio Pedri
0ca0170da9 Resolve rebase build errors 2021-12-10 00:58:55 +01:00
Sergio Pedri
75c51164b3 Add concurrency control setting to [ICommand] attribute 2021-12-10 00:08:12 +01:00
Sergio Pedri
042ff3f4c6 Add diagnostics tests for CanExecute feature, bug fixes 2021-12-09 10:49:58 +01:00
Sergio Pedri
1b66760d67 Add initial support for [ICommand] CanExecute property 2021-12-09 10:49:58 +01:00
Sergio Pedri
12750907cb Switch generated headers to "// <auto-generated/>" 2021-11-15 11:22:42 +01:00
Sergio Pedri
c176080d37 Switch whole solution to file-scoped namespaces 2021-11-01 20:46:46 +01:00
Sergio Pedri
7a2295b03c Update some code style rules
In particular:
- Use explicit types everywhere to improve clarity
- Use target-typed new() expression when target is explicit
- Use explicit discard for value-returning statements
2021-11-01 20:34:00 +01:00
Sergio Pedri
8b7c87284b Update namespaces from Microsoft.Toolkit to CommunityToolkit 2021-11-01 17:22:05 +01:00