Commit Graph

2393 Commits

Author SHA1 Message Date
Thomas Nind
64b216b1e8 Fixes #3953 Add async support to v2 drivers (#3952)
* Add async support stuff

* Set main thread id

* Add v2 test to ensure `TaskScheduler.FromCurrentSynchronizationContext` works

* Remove uneeded async

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2025-03-02 10:57:28 -07:00
BDisp
72aaf27f91 Fixes #3930. Tests are crashing again... (#3948)
* Fixes #3930. Tests are crashing again...

* Clear the source settings on test.

* Just call CM.Reset.

* Fix one more test 'not run' because of the use of enums in parameters

* Replace void to Task
2025-03-02 10:39:27 -07:00
Tig
98f70b2632 Adds ViewportSettings.Transparent (#3886) 2025-03-01 15:22:23 -07:00
Tig
79cd4e92b7 Adds Logging level control to UICatalog (#3938)
* Tons of API doc updates

* Added logging control to UICatalog

* Added logging control to UICatalog - more

* fixed minor issues

* removed logs from .gitignore

* Fixed log file path

* Fixed app desc
2025-02-28 15:06:01 -07:00
Thomas Nind
c88c772462 Fixes #3692++ - Rearchitects drivers (#3837) 2025-02-28 12:09:29 -07:00
BDisp
3a240ecbe5 Fixes #3934. Test Explorer is showing some unit tests as 'not run' (#3935) 2025-02-28 12:09:04 -07:00
BDisp
80306c64c3 Fixes #3885. ableView's CollectionNavigator sometimes doesn't work right. (#3933) 2025-02-27 20:55:38 -07:00
Tig
df9549e0a2 Tons of V2 API doc fixes (#3932)
* Tons of API doc updates

* tweaked scenario

* try to fix unit test crash in ubuntu action

* try to fix unit test crash in ubuntu action2
2025-02-27 17:00:47 -07:00
Tig
c00de4a092 Makes Window default Arrangement not be movable/resizable (#3931)
* Window -> not sizeable/movable by default.
Window: Code cleanup.
Frameview: Code cleanup.

* View API docs updates

* View API docs updates
2025-02-27 12:24:31 -07:00
Tig
f3697a99f4 Fixes #3839, #3922 - CM Glyphs not working (#3923)
* fixed

* Moved Glyphs to ThemeScope

* Removed test code
2025-02-26 15:24:58 -07:00
Tig
7ba6d638bc Fixes #3918 and #3913 - Accepting behavior (#3921)
* Fixed #3905, #3918

* Tweaked Generic

* Label code cleanup

* Clean up.

* Clean up.

* Clean up2.
2025-02-26 12:40:45 -07:00
Tonttu
e24bd67658 Rune extensions micro-optimizations (#3910)
* Add benchmarks for potentially optimizable RuneExtensions

* Add new RuneExtensions.DecodeSurrogatePair benchmark implementation

Avoids intermediate heap array allocations which is especially nice when the rune is not surrogate pair because then array heap allocations are completely avoided.

* Enable nullable reference types in RuneExtensions

* Make RuneExtensions.MaxUnicodeCodePoint readonly

Makes sure no one can accidentally change the value. Ideally would be const value.

* Optimize RuneExtensions.DecodeSurrogatePair

* Remove duplicate Rune.GetUnicodeCategory call

* Add new RuneExtensions.IsSurrogatePair benchmark implementation

Avoids intermediate heap allocations by using stack allocated buffer.

* Optimize RuneExtensions.IsSurrogatePair

* Add RuneExtensions.GetEncodingLength tests

* Optimize RuneExtensions.GetEncodingLength

* Optimize RuneExtensions.Encode

* Print encoding name in benchmark results

* Rename variable to better match return description

* Add RuneExtensions.EncodeSurrogatePair benchmark

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2025-02-25 09:42:32 -07:00
Thomas Nind
81ad695ef7 Fix foreach runes bug with unicode surrogate pairs (#3894) 2025-01-12 10:05:52 -07:00
Tig
63b3ebf2f4 Fixed RadioGroup unit test that was previosly bogus 2024-12-10 06:51:53 -08:00
Tig
2b8884a881 Finished integrated tznind's work. 2024-12-09 22:03:40 -08:00
Tig
23344baca7 Incorporated tznind's stuff 2024-12-09 16:53:58 -08:00
Tig
9f4d30db2b Unit test tweak 2024-12-08 18:34:39 -08:00
Tig
e502a13402 MouseBindings tests 2024-12-08 13:40:32 -08:00
Tig
7e289f02e9 KeyBindings cleanup 2024-12-08 07:19:48 -08:00
Tig
0f137579c8 Combined KeyBinding classes 2024-12-07 23:42:38 -08:00
Tig
5a0b3507a0 Merged v2_develop.
Code cleanup
2024-12-07 14:37:17 -08:00
Tig
3e6e758302 Merge branch 'v2_develop' into v2_3778-Command-Decoupling 2024-12-07 15:21:44 -07:00
Tig
3edcf643dc Fixed unit tests 2024-12-07 10:58:34 -08:00
Thomas Nind
903a886c38 Merge branch 'v2_develop' into ansi-parser 2024-12-07 10:06:29 +00:00
Tig
725df05f7b Prepping to combine keybinding classes 2 2024-12-06 16:14:51 -07:00
Tig
7360683152 Prepping to combine keybinding classes 2024-12-06 15:25:23 -07:00
Tig
0c7d1aee8f More refactoring. Broke CM 2024-12-06 14:16:22 -07:00
Tig
b443d52917 More refactoring. Application scope is gone. 2024-12-06 12:22:29 -07:00
Tig
7d4f4e4735 Tweaks 2024-12-06 10:31:49 -07:00
Tig
334cb6839d Merge branch 'v2_develop' into v2_3778-Command-Decoupling 2024-12-05 15:39:28 -07:00
Tig
65cf641685 Fixed CheckBox issue 2024-12-05 15:04:23 -07:00
Tig
53d7449c85 Unit tests pass. Most things actually work, but not all 2024-12-05 13:15:41 -07:00
BDisp
be07f5a276 Rename to SubscribeDriverEvents and add UnsubscribeDriverEvents method. 2024-12-05 16:13:17 +00:00
Tig
0832babf51 Merge branch 'v2_develop' into v2_3836_setupfakefriver-after-fix 2024-12-05 09:09:54 -07:00
BDisp
dbfe521db3 Fixes #3873. TextFormatter isn't properly handling combining marks on alignments. (#3874)
Co-authored-by: Tig <tig@users.noreply.github.com>
2024-12-05 09:08:11 -07:00
BDisp
99866c80b5 Add internal static InitState method to subscribe events. 2024-12-04 14:08:22 +00:00
BDisp
ce17fddd9c Fixes #3836. SetupFakeDriver sometimes causes failure in the unit test. 2024-12-03 22:35:25 +00:00
Thomas Nind
de64116079 Merge branch 'v2_develop' into ansi-parser 2024-11-30 11:19:21 +00:00
BDisp
d4d0675194 Fixes #3864. Border isn't cleared after margin thickness change. (#3868) 2024-11-29 11:00:42 -07:00
Tig
97558c2dbf Code review comments and cleanup 2024-11-27 08:58:16 -07:00
tznind
49f45bb7a4 WIP merge v2_develop 2024-11-27 09:35:09 +00:00
Tig
37bb43abc2 Merge branch 'v2_develop' into v2_3847_tabview-focus-fix 2024-11-26 12:33:45 -07:00
Tig
e8e8c5916a Merge branch 'v2_develop' into v2_3767_restoring-drivers-and-fixes 2024-11-26 12:26:30 -07:00
Tig
774e603438 Tweaked unit tests more 2024-11-26 10:18:14 -07:00
Tig
fab08af932 Tweaked unit tests 2024-11-26 09:59:14 -07:00
Tig
0362587799 Added unit tests 2024-11-26 09:42:43 -07:00
BDisp
d471061670 Merge branch 'v2_develop' into v2_3767_restoring-drivers-and-fixes 2024-11-26 11:43:33 +00:00
BDisp
8104ef3266 Merge branch 'v2_develop' into v2_3847_tabview-focus-fix 2024-11-26 11:41:48 +00:00
Tig
68daff5dd9 Merge pull request #3856 from MaciekWin3/text-inputs-keybindings-update
Fixes #3855 - Text inputs keybindings update
2024-11-25 19:48:00 -07:00
Maciej Winnik
8a4962ca30 Add cursor position test assert 2024-11-25 21:50:07 +01:00