Commit graph

59 commits

Author SHA1 Message Date
Hongtao Zhang
f6e6cd5a42
Fix Error Message for empty response 2022-08-21 22:09:56 -04:00
Hongtao Zhang
793b432d61
Use Length instead of Position to keep thing clear 2022-08-21 22:02:46 -04:00
Hongtao Zhang
74d9290944
Redesign exception stream handling and dispose stream to recycle 2022-08-21 22:00:42 -04:00
Hongtao Zhang
2b60422a6c
Cleanup Using 2022-08-21 20:59:31 -04:00
Hongtao Zhang
ddb25a253a
Unregister Cancellation Event by disposing the delegate 2022-08-21 20:58:17 -04:00
Hongtao Zhang
c3dd3b1851
Suppress JsonRPC Empty Response Exception and refactor code 2022-08-18 09:37:41 -04:00
Hongtao Zhang
76d23aba9b
Suppress JsonRPC Empty Response Exception and refactor code 2022-08-18 09:34:53 -04:00
Oren Nachman
13c70a9bb7 Remove unused code 2022-08-09 17:41:02 -07:00
Oren Nachman
3648126854 Revert JSON Null change + fix more warnings
See comment inline re:JSON null
2022-08-08 17:35:38 -07:00
Oren Nachman
b85399137e Addressing more warnings 2022-08-08 14:55:04 -07:00
Jeremy Wu
9bd9b94264
Merge pull request #1123 from Flow-Launcher/AsyncResultCallback
Implement Async Result Execution
2022-07-21 20:34:56 +10:00
Hongtao Zhang
de1b0a23c6 Rename from ActionAsync to AsyncAction 2022-04-15 18:32:05 -05:00
Hongtao Zhang
4cee1b9740 Implement Async Result Execution to stop JsonRPCPlugin hang Flow when executing results 2022-04-12 04:30:04 -05:00
Hongtao Zhang
0ceefea2dd Use Cancellation Token to avoid potential race tracing issue 2022-02-01 15:32:32 -06:00
DB p
a05f2bb92b Adjust Control Aligment 2021-12-17 11:25:41 +09:00
DB p
31ce34bac6 Adjust TextBlock Margin 2021-12-17 11:06:31 +09:00
DB p
a8331af8a7 Adjust Vertical Aligment and margins 2021-12-17 04:05:17 +09:00
Hongtao Zhang
238d4df109 Add using for File.OpenRead 2021-12-08 21:17:51 -06:00
Kevin Zhang
5ea8675c02
Update Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs
Co-authored-by: Jeremy Wu <jeremy24wu@gmail.com>
2021-12-08 16:20:54 -06:00
Kevin Zhang
0a3b566e56 Implment textBlock and add tooltip 2021-11-15 20:35:05 -06:00
Kevin Zhang
c35ddbc2d9 add ability to add new line in textarea 2021-11-14 21:19:32 -06:00
Kevin Zhang
c677a63679 Manually Implement UI Binding 2021-11-14 11:46:09 -06:00
Kevin Zhang
420d8ea005 fix passwordBox issue 2021-11-14 11:12:47 -06:00
Kevin Zhang
36bb439647 Add passwordBox 2021-11-13 23:59:14 -06:00
Kevin Zhang
ddc6af52ed Allow modifying Setting via result 2021-11-13 23:48:53 -06:00
Kevin Zhang
05104a5ab0 Implement Setting back and forward transfer 2021-11-13 23:11:05 -06:00
Kevin Zhang
9cd3f90ec4 Change some configuration and refactor code 2021-10-30 16:17:33 -05:00
Kevin Zhang
054d1650e6 Use Yaml as configuration file 2021-10-30 13:46:57 -05:00
Kevin Zhang
67027eb74b Allow JsonRPCPlugin.cs to have setting control 2021-08-17 00:50:36 +08:00
Kevin Zhang
991b89ff44 Remove Legacy debug in sync request 2021-08-13 15:56:58 +08:00
Kevin Zhang
7ab86ca1f2 Refactor JsonRPC structure 2021-08-13 13:55:07 +08:00
Jeremy Wu
7778449239
remove extra comments 2021-08-07 13:26:38 +10:00
Jeremy Wu
235fe4aacb
remove extra comments 2021-08-07 13:26:11 +10:00
Kevin Zhang
760333520c Adjust JsonRPCPlugin.cs Exception Handling 2021-08-06 14:35:14 +08:00
Jeremy
466b825611 fix comment formatting 2021-07-27 19:01:27 +10:00
张弘韬
d7c037d156 fix dispose issue by manually dispose 2021-07-27 14:11:48 +08:00
张弘韬
220db44a6c Manually kill process when token is canceled 2021-07-27 13:54:13 +08:00
张弘韬
4e3746f77d Don't rethrow OperationCanceledException 2021-07-27 11:15:27 +08:00
张弘韬
8330dd356f Add a MemoryStream buffer to ReadStream first 2021-07-26 12:18:49 +08:00
Kevin Zhang
c7cfd25817 Ignore null value in deserialization to avoid unexpected nullreference issue 2021-07-05 11:47:56 +08:00
Kevin Zhang
908d1c4124 JsonRPC camelCase and Case Insensitive 2021-07-05 11:03:07 +08:00
pc223
e74d7ce102 Fix AmbiguousMatchException when plugins call Flow API (JsonRPC)
Why: `GetMethod(String)` raise AmbiguousMatchException when method have overloads (e.g. `ShowMsg`)

Solution: `Use GetMethod(String, Type[])`

https://stackoverflow.com/questions/1969411/avoiding-an-ambiguous-match-exception
2021-06-21 15:26:06 +07:00
Kevin Zhang
be8abafdda fix another hardcode issue, and the JsonSerialization problem 2021-06-10 13:06:35 +08:00
Kevin Zhang
aa3e7decd8 Fix Don'tHideAfterAction logic for JsonRPCPlugin.cs 2021-06-10 11:28:45 +08:00
Kevin Zhang
c399a87279 Add Customized Object Converter, fix Length issue 2021-06-08 08:04:04 +08:00
Kevin Zhang
18e21a8b19 Don't thown error when JsonRPCPlugin.cs don't return a JsonFeedBack when calling callback 2021-06-07 13:08:18 +08:00
Kevin Zhang
ffcaa02e31 Use JsonLibrary to Parse object, and replace direct argument with the new api to allow auto escape 2021-06-07 13:03:59 +08:00
Jeremy Wu
abd721a06c fix formatting 2021-02-16 06:14:13 +11:00
弘韬 张
9ebebfd0ef No need to cancel error reporting 2021-02-15 18:27:02 +08:00
弘韬 张
824ea07ab2 add Debug message field for debugging 2021-02-14 13:59:59 +08:00