Daniel Imms
c27d6bb462
Merge branch 'master' into fix/addon-ligatures-prepublish-only
2026-05-26 12:26:23 -07:00
Daniel Imms
9c4f0f96ca
Merge pull request #5831 from juspay/fix/intersection-observer-nullify
...
Clear IntersectionObserver reference on dispose
2026-05-26 12:23:13 -07:00
Daniel Imms
18c370a154
Merge pull request #5813 from CodinGame/fix-wrong-window-regression
...
Use element window instead of global object
2026-05-26 12:18:29 -07:00
Daniel Imms
850f4ad738
Merge pull request #5872 from xtermjs/dependabot/npm_and_yarn/fast-uri-3.1.2
...
Bump fast-uri from 3.1.0 to 3.1.2
2026-05-26 12:15:57 -07:00
Daniel Imms
b665f6259a
Merge pull request #5871 from xtermjs/dependabot/npm_and_yarn/axios-1.15.2
...
Bump axios from 1.15.0 to 1.15.2
2026-05-26 12:15:54 -07:00
Daniel Imms
4e5994d8a2
Merge pull request #5902 from Tyriar/tyriar/cell_opt
...
Optimize forEachDecorationAtCell by maintaining cache against buffer line index
2026-05-26 10:52:17 -07:00
Daniel Imms and Cursor
4a0cb5ae6b
Add MicrotaskTimer and use it for decoration line index sync
...
Introduce MicrotaskTimer as a TimeoutTimer-style helper that schedules a
single runner via queueMicrotask, with set and cancel but no cancelAndSet.
Use it in DecorationLineCache to batch insert/delete line-index updates after
marker line adjustments, replacing ad-hoc queueMicrotask scheduling.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-26 09:52:53 -07:00
Daniel Imms and Cursor
9e72a4b6d3
Refactor decoration line index into DecorationLineCache
...
Extract the per-line lookup index from DecorationService into an exported
DecorationLineCache class in the same module, with DecorationService listed
first for readability.
Optimize buffer insert/delete maintenance to shift map keys in O(unique
indexed lines) instead of full re-indexing every affected decoration. Only
multi-line decorations that span the mutation point get a full re-index.
Add a direct DecorationLineCache unit test in DecorationService.test.ts.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-26 09:47:11 -07:00
Daniel Imms and Cursor
f484584b70
Speed up decoration cell lookup with a per-line index
...
Refs #5176 .
forEachDecorationAtCell and getDecorationsAtCell previously scanned every
registered decoration on each call. With thousands of search highlights this
becomes O(total decorations) per cell and blocks rendering during viewport
refreshes.
Maintain a Map of buffer line -> decorations that cover that line. Multi-line
decorations are indexed on every line in their span, so mixed single-line and
multi-line workloads stay fast without falling back to a full scan.
Keep the index aligned with buffer mutations:
- Register and unregister decorations in the line buckets on add/dispose.
- On trim, shift line keys synchronously (before marker handlers run).
- On insert/delete, re-index affected decorations in a microtask after marker
line updates are applied.
Inject IBufferService so line listeners follow the active buffer. Add unit
tests for trim, dispose-on-trim, insert, and dense single-line plus multi-line
lookup. Add DecorationService.benchmark.ts to measure sparse hits and
viewport-sized grid scans with 20k decorations.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-26 09:30:25 -07:00
Daniel Imms
e749cb6125
Merge pull request #5891 from Tyriar/cross-env
...
Remove cross-env dep
2026-05-21 03:17:50 -07:00
Daniel Imms
8df996f9e7
Merge pull request #5892 from Tyriar/tyriar/deps
...
Remove @types/debug and trusted-types
2026-05-21 03:17:24 -07:00
Daniel Imms
51f6186352
Remove @types/debug and trusted-types
2026-05-21 03:09:41 -07:00
Daniel Imms
ae5c41c518
Merge pull request #5890 from Tyriar/utf8
...
Remove utf8 dep
2026-05-21 03:09:04 -07:00
Daniel Imms
df9fb7e473
Remove cross-env dep
2026-05-21 03:06:53 -07:00
Daniel Imms
f100e93ba5
Remove utf8 dep
2026-05-21 03:04:16 -07:00
Daniel Imms
1d3825d341
Merge pull request #5889 from Tyriar/deepEqual
...
Remove deep-equal/types packages
2026-05-21 03:03:37 -07:00
Daniel Imms
57315e6cc9
Remove deep-equal/types packages
2026-05-21 02:58:43 -07:00
Daniel Imms
2be4fc68e5
Merge pull request #5884 from sotasan/addon-image-kitty-q2-suppresses-ok
...
addon-image: Kitty graphics q=2 should suppress OK responses too
2026-05-21 02:37:53 -07:00
Daniel Imms
66fabfc232
Merge pull request #5878 from PerBothner/demo-size-style
...
demo - indicate screen area size when non-auto
2026-05-21 02:36:24 -07:00
Daniel Imms
3e2a42eb29
Merge pull request #5883 from vsych/fix-webgl-atlas-merge-stale-vertices
...
Fix webgl rendering corruption from atlas page merges
2026-05-21 02:26:03 -07:00
Daniel Imms
6a47d09b4c
Merge pull request #5888 from Tyriar/tyriar/nal-trace
...
Git ignore cursor nal-traces
2026-05-21 02:18:06 -07:00
Daniel Imms
b36001ee7b
Git ignore cursor nal-traces
2026-05-21 02:17:43 -07:00
Daniel Imms
e64f25a0dd
Merge pull request #5880 from ciembor/master
...
Add 4bit to the Real-world uses section.
2026-05-21 02:13:34 -07:00
Daniel Imms
c8c8b3a7fe
Merge pull request #5875 from zeertzjq/kitty
...
Fix keys getting swallowed when enabling only "Report event types"
2026-05-12 04:23:01 -07:00
Daniel Imms
7059a07c09
Merge pull request #5874 from xtermjs/clipboard_base64
...
clipboard addon: various fixes
2026-05-11 06:43:58 -07:00
Daniel Imms
c5c6fc2a64
Merge pull request #5791 from zeertzjq/kitty
...
Fix kitty keyboard "Report event types" behavior not matching spec
2026-05-11 06:42:32 -07:00
Daniel Imms
6ba731d73b
Merge pull request #5867 from Tyriar/inst_const_enuym
...
Add disposable/const enum agent instructions, convert a lot of top level consts to const enums
2026-05-02 06:59:12 -07:00
Daniel Imms
2d3909be2c
Fix lint
2026-05-02 06:54:41 -07:00
Daniel Imms
1e189625fa
Merge remote-tracking branch 'upstream/master' into inst_const_enuym
2026-05-02 06:49:10 -07:00
Daniel Imms
80debafa11
Convert a lot of top level consts to const enums
2026-05-02 06:44:25 -07:00
Daniel Imms
1023e40428
Merge pull request #5864 from Tyriar/tyriar/bufferline_cache
...
Cache translateToString calls inside BufferLine
2026-05-02 06:30:49 -07:00
Daniel Imms
5c47e6dd9a
Add instructions around MutableDisposables and const enums
2026-05-02 06:30:18 -07:00
Daniel Imms
4ebb3fffe9
Ignore cache keys in serialize addon
...
Bit hacky, but this is due to the way we're serializing the line in the test
2026-05-02 06:21:42 -07:00
Daniel Imms
093e81b9a7
Fix build, lint
2026-05-02 06:07:41 -07:00
Daniel Imms
e04dd2501f
Avoid thrashing timeouts
2026-05-02 05:58:56 -07:00
Daniel Imms
d911b40a47
Avoid any in test
2026-05-02 05:52:33 -07:00
Daniel Imms
3dbfa7ce3e
Convert cache to Disposable
2026-05-02 05:48:08 -07:00
Daniel Imms
6287c6ddfe
Cache/buffer lifecycle
2026-05-02 05:44:13 -07:00
Daniel Imms
52d4b2719c
Move cache into Buffer owned object, use WeakRefs
...
This allows O(1) clearing of the cache, a single TTL timer and we
can avoid making BufferLine's Disposable
2026-05-02 05:32:43 -07:00
Daniel Imms
7615cd210a
Store a boolean on whether the cache is trimmed
2026-05-02 04:35:18 -07:00
Daniel Imms
4d4b994c35
Support caching of trimRight
2026-05-02 04:35:18 -07:00
Daniel Imms
7fa8b7a069
Merge branch 'master' into tyriar/bufferline_cache
2026-05-02 03:56:22 -07:00
Daniel Imms
a2e51e8d36
Merge pull request #5865 from Tyriar/tyriar/image
...
Fix integration test defaults
2026-05-01 16:22:01 -07:00
Daniel Imms
f89253d24b
Fix integration test defaults
...
Broke due to 2 recent conflicting PRs
2026-05-01 16:17:16 -07:00
Daniel Imms
7aeee95346
Merge remote-tracking branch 'upstream/master' into tyriar/bufferline_cache
2026-05-01 16:10:45 -07:00
Daniel Imms
66fcdb2583
Fix test/startCol handling
2026-05-01 14:11:14 -07:00
Daniel Imms
2a18600d18
Cache translateToString calls inside BufferLine
...
Fixes #5863
2026-05-01 14:06:39 -07:00
Daniel Imms
5ef4f86543
Merge pull request #5846 from xtermjs/qoi_decoder
...
QOI support for IIP
2026-05-01 10:28:25 -07:00
Daniel Imms
874e767b40
Merge pull request #5840 from xtermjs/fix_apc
...
changes in APC handling
2026-05-01 10:22:52 -07:00
Daniel Imms
605a7c6e30
Merge pull request #5844 from xtermjs/adjust_image_addon_defaults
...
adjust image addon defaults
2026-05-01 10:21:58 -07:00
Daniel Imms
802decb046
Merge pull request #5856 from xtermjs/fix_colorbits
...
fix RG colorbits in AttributeData
2026-05-01 10:21:21 -07:00
Daniel Imms
79a95dbfd8
Merge pull request #5857 from nwparker/add-orca-real-world-use
...
Add Orca to real-world uses
2026-05-01 10:20:18 -07:00
Daniel Imms
75ba88c51b
Merge pull request #5862 from Tyriar/05-01-make_agent_instructions_harness_agnostic
...
Make agent instructions harness agnostic
2026-05-01 10:13:01 -07:00
Daniel Imms
f9cea732f2
Make agent instructions harness agnostic
2026-05-01 10:08:04 -07:00
Daniel Imms
3a84bcb7ae
Merge pull request #5766 from SergioChan/fix-image-renderer-desync-5691
...
fix(addon-image): disable desynchronized resize canvas
2026-04-26 16:17:03 -07:00
Daniel Imms
0911688295
Merge pull request #5817 from juspay/fix/dispose-leaks
...
Fix dispose leaks: register CursorBlinkStateManager + _pausedResizeTask
2026-04-21 12:57:24 -07:00
Daniel Imms
62ce318a07
Merge pull request #5827 from Tyriar/or_lifecycle
...
Improve overview ruler lifecycle
2026-04-21 11:22:09 -07:00
Daniel Imms
08ae141ef7
Improve overview ruler lifecycle
...
Fixes #5826
2026-04-21 11:13:59 -07:00
Daniel Imms
ad730f2d54
Merge pull request #5777 from Tyler-V/fix/fit-addon-same-dimension-guard
...
fix(addon-fit): remove redundant same-dimension guard in fit()
2026-03-26 08:09:53 -07:00
Daniel Imms
9c7c163dd4
Merge pull request #5776 from Gaubee/fix/headless-bun-deno-compat
...
Fix @xterm/headless compatibility with Bun and Deno runtimes
2026-03-26 08:05:03 -07:00
Daniel Imms
8674bc5e82
Merge pull request #5780 from PerBothner/extendedAttrs-test
...
Move extendedAttributes function to TestUtils
2026-03-26 07:58:38 -07:00
Daniel Imms
d552be8c45
Merge pull request #5783 from xtermjs/dependabot/npm_and_yarn/multi-bf05dc1ecf
...
Bump picomatch
2026-03-26 07:49:45 -07:00
Daniel Imms
082a51127f
Merge pull request #5779 from xtermjs/dependabot/npm_and_yarn/flatted-3.4.2
...
Bump flatted from 3.3.3 to 3.4.2
2026-03-26 07:49:32 -07:00
Daniel Imms
1432e20082
Merge pull request #5773 from xtermjs/dependabot/npm_and_yarn/yauzl-3.2.1
...
Bump yauzl from 2.10.0 to 3.2.1
2026-03-15 04:36:59 +09:00
Daniel Imms
f1b0a96094
Merge pull request #5770 from mgabor3141/fix/viewport-sync-output-flicker
...
fix: defer viewport DOM sync during synchronized output (DEC 2026)
2026-03-15 04:35:17 +09:00
Daniel Imms
49096a21fd
Delete src/browser/Viewport.test.ts
...
Trying to remove jsdom eventually, this test is also overly fragile, we'll just do without.
2026-03-15 04:27:01 +09:00
Daniel Imms
503abee8ae
Merge pull request #5772 from Tyriar/5771
...
Prefer repeat over Array().join
2026-03-13 11:19:46 +09:00
Daniel Imms
4350536685
Prefer repeat over Array().join
...
Fixes #5771
2026-03-13 11:11:27 +09:00
Daniel Imms
fe0952bb83
Merge pull request #5769 from Tyriar/4633
...
Only update necessary DOM range on selection change
2026-03-12 11:44:45 +09:00
Daniel Imms
5c2b19f2c8
Only update necessary DOM range on selection change
...
Fixes #4633
2026-03-12 11:36:33 +09:00
Daniel Imms
5e9b2cbc14
Update ImageRenderer.ts
2026-03-12 09:47:51 +09:00
Daniel Imms
fb25eb8f79
Merge pull request #5764 from Tyriar/5675
...
Apply font styles directly to spans
2026-03-11 16:09:13 +09:00
Daniel Imms
e7a4578933
Don't apply color to the spans
2026-03-11 16:01:41 +09:00
Daniel Imms
a05a3321d5
Apply font styles directly to spans
...
The universal selector was overriding this since the font styles
only applied to the div, not the span.
Fixes #5675
2026-03-11 13:44:22 +09:00
Daniel Imms
26ce9bd4d3
Merge pull request #5698 from ntomoya/fix/ime-middle-composition-suffix
...
Fix IME input when composing in the middle of the textarea
2026-03-11 13:20:16 +09:00
Daniel Imms
1c1aac0da8
Update src/browser/input/CompositionHelper.ts
2026-03-11 13:12:36 +09:00
Daniel Imms
beeebca1a4
Merge branch 'master' into fix/ime-middle-composition-suffix
2026-03-11 13:06:35 +09:00
Daniel Imms
fd1e53c63f
Merge pull request #5762 from Tyriar/5760
...
Fix RTL breaking IME composition rendering
2026-03-11 12:49:50 +09:00
Daniel Imms
18262c87d9
Merge pull request #5761 from SergioChan/fix/textarea-sync-on-resize-3390
...
fix: sync helper textarea position after resize
2026-03-11 12:48:14 +09:00
Daniel Imms
2285ac6ab8
Fix RTL breaking IME composition rendering
...
Fixes #5760
2026-03-11 12:41:48 +09:00
Daniel Imms
af6731b533
Merge pull request #5685 from Tyriar/5377_scroll
...
Fix scrolling with touch
2026-03-11 12:27:34 +09:00
Daniel Imms
5b9b531012
Merge branch 'master' into 5377_scroll
2026-03-11 12:19:42 +09:00
Daniel Imms
b0118dfd3a
Merge pull request #5759 from SergioChan/fix/ime-sync-on-compositionstart-5734
...
fix(ime): resync textarea position when composition starts
2026-03-11 12:17:26 +09:00
Daniel Imms
6813fc175e
Merge remote-tracking branch 'upstream/master' into 5377_scroll
2026-03-11 12:15:59 +09:00
Daniel Imms
409f049f39
Update src/browser/CoreBrowserTerminal.ts
2026-03-11 12:02:02 +09:00
Daniel Imms
89980fc565
Merge pull request #5758 from Tyriar/5754__5756
...
CoreMouseService -> MouseStateService, make mouse services more focused
2026-03-11 11:10:52 +09:00
Daniel Imms
16b5da5c4c
Fix assertion, bring back triggerMouseEvent tests
2026-03-11 11:03:17 +09:00
Daniel Imms
4812abb24f
Merge branch 'master' into 5754__5756
2026-03-11 10:52:13 +09:00
Daniel Imms
5f3a4646be
Move non-state methods into MouseService
...
Fixes #5756
2026-03-11 10:49:55 +09:00
Daniel Imms
d63445be94
Move custom mouse event handler into MouseStateService
...
Don't need to keep it in CoreBrowserTerminal
2026-03-11 10:36:35 +09:00
Daniel Imms
1400398abb
Merge pull request #5757 from Tyriar/5754
...
Move bindMouse into MouseService
2026-03-11 10:32:42 +09:00
Daniel Imms
2331abe6bd
Rename CoreMouseService to MouseStateService
...
Part of #5756
2026-03-11 10:31:57 +09:00
Daniel Imms
b66128b239
Avoid unnecessary
2026-03-11 10:24:46 +09:00
Daniel Imms
c727240f16
Fix cyclic dependency
...
Linkifier -> MouseService -> SelectionService -> Linkifier
2026-03-11 10:23:38 +09:00
Daniel Imms
649ce22081
Move bindMouse into MouseService
...
Fixes #5754
2026-03-11 10:10:13 +09:00
Daniel Imms
73adfdfd56
Merge pull request #5753 from Tyriar/scrollbar_warn
...
Suppress scrollbar warning in demo
2026-03-11 09:44:38 +09:00
Daniel Imms
1fc8a4687d
Suppress scrollbar warning in demo
2026-03-11 09:36:05 +09:00
Daniel Imms
c29e48c917
Merge pull request #5751 from Tyriar/5750
...
Fix error in loadTestLongLines
2026-03-11 09:05:23 +09:00
Daniel Imms
70fe22993b
Merge pull request #5752 from anthonykim1/anthonykim1/fixKittyDisambiguateSpaceEncoding
...
Fix kitty keyboard disambiguate mode for space, enter, tab, backspace
2026-03-11 08:59:12 +09:00
Daniel Imms
4f3a7331bd
Fix error in loadTestLongLines
...
Fixes #5750
2026-03-11 08:57:51 +09:00