Daniel Imms
90ff6f3d06
Migrate most EventEmitter to base/ Emitter
2024-07-14 07:41:56 -07:00
Daniel Imms
0f373512d2
Fix ICoreMouseService injecting
2024-07-11 08:37:48 -07:00
Daniel Imms
2b8ccb5e51
Deprecate fast scroll modifier as it's no longer possible
...
Not possible via the component we import. We could add this but I
doubt it was being used anyway.
2024-07-10 08:30:32 -07:00
Daniel Imms
884141cd8f
Support theming of scroll bar slider
2024-07-10 07:54:39 -07:00
Daniel Imms
9b26bb4436
Support theming of overview ruler border
2024-07-10 07:30:38 -07:00
Daniel Imms
416f12fcc3
Remove ScrollSource
...
This isn't used anymore, it was used earlier to workaround recursion between
the viewport and the terminal objects
2024-07-10 07:01:44 -07:00
Daniel Imms
dc541d5495
Optimize SortedList.delete by batching to idle task
2024-04-20 10:32:30 -07:00
Daniel Imms
33a7a9b6a2
Implement rescaleOverlappingGlyphs in webgl
...
Part of #4969
2024-03-14 07:14:13 -07:00
Daniel Imms
1943636f02
Help embedders avoid memory leaks by clearing options
...
Related microsoft/vscode#192838
2023-12-08 12:14:22 -08:00
Daniel Imms
bb9728ccd1
from xterm -> from scoped
2023-11-01 06:50:08 -07:00
Daniel Imms
41c62288f0
Expose a documentOverride setting
...
This lets the embedder choose which Document object to use for creating
elements, adding event listeners, etc. The reason this exists is because
when working with multiple windows it can be convenient to create all
elements under the primary window to make instanceof usage consistent.
See microsoft/vscode#195595
2023-10-13 13:41:53 -07:00
Daniel Imms
5ccf4d3311
Merge remote-tracking branch 'upstream/master' into pr/PerBothner/4519-1
2023-08-23 05:09:42 -07:00
Daniel Imms
921da1a2ea
Ignore no-unused-vars in .api, organize all remaining imports
2023-08-23 04:47:53 -07:00
Daniel Imms
e21e52569c
Merge branch 'master' into clusters
2023-08-18 15:20:02 -07:00
Daniel Imms
0b54c9a5d6
Add trace log level, traceCall decorator and use in webgl
...
- New 'trace' log level in the API, you should expect very spammy logs when
trace is on and filter them down. As opposed to 'debug' which should be more
readable.
- traceCall decorator logs the args and return value of the decorated method.
Wecan use this on key functions in various parts of the code to assist
debugging issues that are hard to reproduce such as #4665 .
- Decorated a few webgl render methods for #4665 .
- There's an early exit in traceCall when not on the trace log level so the
runtime impact when not in trace is negligable.
Part of #4665
2023-08-18 11:04:23 -07:00
Per Bothner
cf243adfe3
Merge branch 'master' into clusters
2023-08-14 12:22:55 -07:00
Daniel Imms
70f6fa2bc9
Fix SortedList.values iteration and general dec lifecycle fixes
...
Fixes #4652
2023-08-13 10:42:45 -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
tisilent
482dad3036
Add cursorInactiveStyle option
2023-08-10 16:11:04 +08:00
Per Bothner
4fbc623706
Expand doc comments for UnicodeCharProperties and UnicodeCharWidth.
2023-08-07 11:55:52 -07:00
Per Bothner
88bfc6bb2b
Tweak charProperties doc comment.
2023-08-06 08:28:08 -07:00
Daniel Imms
7baff4e249
Merge branch 'master' into clusters
2023-08-02 11:41:22 -07:00
Daniel Imms
44ced27bee
Add ignoreBracketedPasteMode option
...
Fixes #4588
2023-08-01 13:58:52 -07:00
Daniel Imms
e8a925b6af
Merge pull request #4583 from jerch/fix_mouse_tracking
...
fix mouse tracking behavior
2023-08-01 05:50:20 -07:00
Daniel Imms
1067ec19a8
Implement smooth scroll for pages/top/bottom, add viewport request event
2023-08-01 05:31:30 -07:00
Jörg Breitbart
65568f502e
fix #4582
2023-07-05 13:56:41 +02:00
Per Bothner
693f6b2d14
Merge branch 'master' into clusters
2023-06-27 13:31:23 -07:00
Daniel Imms
4d501b38b8
Improve safety of log service
2023-06-16 10:30:54 -07:00
Daniel Imms
64a62fb0c1
Bind logger calls
2023-06-16 09:19:23 -07:00
Daniel Imms
2c45989fea
Merge pull request #4563 from Tyriar/logger
...
Add logger delegate option
2023-06-16 08:34:13 -07:00
Daniel Imms
f779e4ddc0
Add logger delegate option
...
This allows embedders to route the logs whereever they want, when this
is set the xterm.js prefix is excluded.
2023-06-16 08:23:22 -07:00
Daniel Imms
ffadc0b31d
Fix NPEs on buffer line and windowsPty option
2023-06-09 08:47:17 -07:00
Daniel Imms
22140b5e94
Add more granular windowsPty option
...
See microsoft/vscode#134448
2023-05-29 09:40:00 -07:00
Per Bothner
67e968926c
Cleanup - fix various tests.
2023-05-17 18:37:27 -07:00
Per Bothner
2f7fe1189c
New unicode-graphemes addon.
...
Handle grapheme cluster lookup as well as wcwidth.
This is based on Unicode 15, and could replace the unicode11 addon.
2023-05-16 18:31:31 -07:00
Daniel Imms
c546f7cc8a
Ensure Decoration.isDisposed can be true
...
Fixes #4410
2023-03-31 12:11:50 -07:00
Daniel Imms
046d4b8314
Improve createInstance types
2023-02-01 08:42:51 -08:00
Daniel Imms
4ee4a0f988
Merge branch 'master' into cleanup_coreservice
2022-12-11 07:36:01 -08:00
Daniel Imms
d6b8a21219
Avoid passing circular callback into CoreService ctor
2022-12-11 07:35:11 -08:00
Jason Lin
9e84895141
polish
2022-12-07 10:12:43 +11:00
Jason Lin
73d20c1d3b
Add option scrollOnKeypress
...
Note that we also change the existing behavior a bit:
CoreService.triggerDataEvent() will not scroll to the bottom unless
`wasUserInput` is also true. This actually seems to be the intended
behavior according to the doc just above
ICoreService.triggerDataEvent().
2022-12-06 14:29:18 +11:00
Megan Rogge
0b84d17b18
revert decoration dispose changes ( #4215 )
2022-10-18 21:32:22 +00:00
Daniel Imms
114924f3fa
Add eslint-plugin-jsdoc and enable check-param-names
2022-10-15 08:38:14 -07:00
Daniel Imms
7eead44048
Add onMultipleOptionChange
2022-10-09 08:14:56 -07:00
Daniel Imms
49a0904857
Move onSpecificOptionChange adoption
2022-10-09 08:07:43 -07:00
Daniel Imms
415100e8b8
Adopt onSpecificOptionChange
2022-10-09 07:46:10 -07:00
Daniel Imms
cad9c4164c
onOptionChange/onSpecificOptionChange tests
2022-10-09 07:16:56 -07:00
Daniel Imms
a87b6c3f2e
Implement IOptionsService.onSpecificOptionChange
...
Part of #4190
2022-10-09 07:09:35 -07:00
Daniel Imms
94c3d11239
Fix compile
2022-10-08 09:11:28 -07:00
Daniel Imms
00f6d3a88c
Register all event emitters, make some services disposable
2022-10-08 09:00:14 -07:00