Daniel Imms
5316cb0812
Remove some easy any usages
2026-02-01 07:48:40 -08:00
Daniel Imms
34e68b1ad4
Speed up all remaining unit tests below threshold (40ms?)
2026-01-31 15:50:51 -08:00
Daniel Imms
ccbf612ddb
Fix lint
2026-01-31 15:33:49 -08:00
Daniel Imms
0ca1bd48be
Inline payload limit
2026-01-31 15:21:48 -08:00
Daniel Imms
7ceb15bb83
Reduce payload size to speed up unit tests
...
Reduces 11s -> 8s for full run
2026-01-31 15:17:10 -08:00
Daniel Imms
5ecdc7da44
Make payload limit configurable by tests
2026-01-31 15:08:05 -08:00
Daniel Imms
bad7e329df
Add @typescript-eslint/prefer-nullish-coalescing eslint rule
2026-01-31 08:43:05 -08:00
Daniel Imms
01450f044a
Merge pull request #5632 from Tyriar/5631
...
Remove vs dependency in common
2026-01-30 06:39:28 -08:00
Daniel Imms
e8d99d50a6
Remove vs dependency in common
...
Fixes #5631
2026-01-30 06:03:16 -08:00
Anthony Kim
1ace108422
better comments
2026-01-22 10:54:41 -08:00
Anthony Kim
2c1441a52d
Add STATE_LENGTH to equal last state + 1
2026-01-22 10:49:21 -08:00
Anthony Kim
ee3b3626e8
Again, format
2026-01-21 16:27:19 -08:00
Anthony Kim
b286f21f64
Add APC_STRING since DCS_PASSTHROUGH isnt the last in ParserState anymore
2026-01-21 15:50:51 -08:00
Anthony Kim
3d92a7e2ed
Dont be silly with original formatting
2026-01-21 15:13:03 -08:00
Anthony Kim
1c73006e39
Switch TransitionTable to Uint16Array
2026-01-21 13:41:29 -08:00
Anthony Kim
42d408a9a7
Change ordering in escapeSequnceParser.ts
2026-01-21 11:29:04 -08:00
Anthony Kim
5ecd980a83
Comment
2026-01-21 11:01:09 -08:00
Anthony Kim
63ebe2df5b
Stop messing with existing formatting
2026-01-21 11:00:10 -08:00
Anthony Kim
1b2d361b59
Remove comment on Constant.ts for ApcState
2026-01-21 10:59:33 -08:00
Anthony Kim
48df6117ed
Add ApcParser
2026-01-21 08:31:07 -08:00
Daniel Imms
144bdb5dd0
Move over to vs disposables
2024-07-14 16:19:20 -07:00
Daniel Imms
7b2e8a6ce1
Remove src dts files and correct exports
...
Esbuild doesn't appear to play nice with dts files and when they are regular ts
files they require the exports
2024-07-05 06:51:00 -07:00
Per Bothner
630d213bd0
Fix 2 comment typos.
2023-09-06 16:42:58 -07:00
Per Bothner
dc6dd6d2a8
Remove precedingCodepoint - use precedingJoinState instead
...
repeatPrecedingCharacter (for REP sequence) changed to look at
the grapheme cluser to the "left" in the BufferLine, and repeat that.
This is an extension of the xterm behavior, and changes the
semantics of REP, so is not fully compatible.
However, the new behavior is cleaner and saner.
Moved precedingJoinState property to EscapeSequenceParser.
2023-08-24 07:58:06 -07:00
Daniel Imms
905707284d
Up parser unti test timeout 10s -> 30s
2023-08-19 15:18:44 -07:00
Daniel Imms
530f758905
Restrict comments to 100 characters
...
This is a rule I try enforce in PR but it's a bit of a hassle, this will
give a lint warning when it happens resulting in:
- Yellow underline in supported editors when eslint is installed
- Compilation will succeed since it's a warning not an error
- CI will fail as it does not allow lint warnings
Special case comments are ignored which includes @vt comments, table
comments and commented out code.
2023-08-12 09:04:41 -07:00
Daniel Imms
d219da480c
Remove fill polyfill
...
Fixes #4241
2022-10-31 12:24:59 -07:00
Daniel Imms
49e0480f78
Add rule jsdoc/check-alignment
2022-10-15 08:39:32 -07:00
Daniel Imms
ac659cb412
Prevent overriding of Disposable.dispose
...
A common mistake made was overriding dispose and not calling super.dispose,
so a TS trick is now used to move it to a readonly property instead of a
member method which prevents it being overridden.
2022-10-08 08:27:10 -07:00
coderaiser
01b35ae4eb
Update src/common/parser/Params.ts
2021-11-05 21:37:50 +02:00
coderaiser
82f8e06ff6
chore: lint using putout
2021-11-05 21:34:37 +02:00
Jörg Breitbart
869c11f1d8
interface for subparser stack saves
2021-03-17 22:39:09 +01:00
Jörg Breitbart
cc005a274d
multiple changes:
...
- reorder exception throwing to be sync to band position
- document WriteBuffer._innerWrite
- remove any declarations
- remove conditional assigments
- use faster return value branching in all parsers
- remove dead code in benchmark
2021-02-27 20:18:41 +01:00
Jörg Breitbart
b4635eddf3
make reset async aware
2021-02-25 19:04:37 +01:00
Jörg Breitbart
9985ae2c38
fix linter warning
2021-02-25 15:44:39 +01:00
Jörg Breitbart
bce3269e44
async OSC/DCS registering/dispose tests on parser instance
2021-02-25 15:41:10 +01:00
Jörg Breitbart
26502114d4
minor tweaks, API docs update
2021-02-15 16:24:29 +01:00
Jörg Breitbart
041e259c11
OSC impl, OscParser tests
2021-02-08 03:03:28 +01:00
Jörg Breitbart
d59f4d2f6f
async impl for DCS, DcsParser tests
2021-02-08 01:53:59 +01:00
Jörg Breitbart
68b7f88523
async parser tests for CSI and ESC
2021-01-24 17:09:16 +01:00
Jörg Breitbart
a9eb1de4b4
Merge branch 'master' into async_handlers
2021-01-24 09:11:51 +01:00
Jörg Breitbart
d3c9f70bec
replace expect testing with assert
2021-01-23 17:09:43 +01:00
Jörg Breitbart
2f07ed9976
simplify stack save in parser
2021-01-23 13:05:57 +01:00
Jörg Breitbart
0ad9f70645
Merge branch 'master' into async_handlers
2021-01-22 17:49:31 +01:00
Jörg Breitbart
3f659a15da
minor fixes:
...
- better perf for short DCS without params (8 times faster)
- test perf for class and string based interfaces of OSC and DCS
separately
- undo wrong commit on parser
2021-01-21 15:58:03 +01:00
Jörg Breitbart
dd5b295219
release active handler list on dispose in DcsHandler
2021-01-21 13:08:01 +01:00
Jörg Breitbart
9d0200252b
fix possible OSC handler bug skipping the fallback handler
2021-01-21 13:05:57 +01:00
Jörg Breitbart
d67faff92a
simplify return eval
2021-01-21 11:38:47 +01:00
Jörg Breitbart
c50c134e25
simplify parser handler interface:
...
- remove setHandler
- apply boolean return to ESC|CSI|OSC|DCS handlers
(rewrite empty return defaulting to true)
- rename addHandler to registerHandler
2021-01-20 23:03:55 +01:00
Jörg Breitbart
bc1048062d
early version of async support for CSI and ESC handlers
2021-01-20 20:05:14 +01:00