Daniel Imms
f3622dfedc
Merge pull request #4069 from mihaip/master
...
Make terminal rendering work in popout windows
2022-09-09 10:18:11 -07:00
Mihai Parparita
a39a468f19
Make terminal rendering work in popout windows
...
Add support for the parent element (what is passed to Terminal.open)
being in a different (same origin) window. Accesses to DOM APIs such
as requestAnimationFrame and devicePixelRatio thus need to be scoped
to the corrent window, instead of assuming that it's the same as the
window/global scope where the code is running.
This is done by inferring a parent window at the creation time, and
then storing it in CoreBrowserService, which is already passed to most
places that need it.
To catch future regressions, an ESLint rule that checks for global
accesses is added (it uses AST selectors via the no-restricted-syntax
rule).
This should also be applicable when the parent element is an iframe.
Fixes #3758
2022-09-08 16:59:31 -07:00
Mihai Parparita
2935d9feb7
Add demo of opening the terminal in a popout window
...
The poput window is just a rendering surface, the termminal code still
executes in the original/parent window.
2022-09-08 15:13:17 -07:00
Daniel Imms
c57a52b900
Merge pull request #4105 from jeanp413/jp/fix-vs-160070
...
Fixes https://github.com/microsoft/vscode/issues/160070
2022-09-07 10:00:43 -07:00
Jean Pierre
3953db0d68
Fixes https://github.com/microsoft/vscode/issues/160070
2022-09-07 11:56:52 -05:00
Daniel Imms
1923473a73
Merge pull request #4007 from ink404/handle-delete-composition-helper
...
Handle Delete in `CompositionHelper`
2022-09-07 09:43:49 -07:00
Daniel Imms
d739191adb
Merge branch 'master' into handle-delete-composition-helper
2022-09-07 09:39:54 -07:00
Daniel Imms
9ef2397918
Merge pull request #4101 from JasonXJ/render-bug
...
WebglRenderer always clears _glyphRenderer if _model is cleared
2022-09-07 09:01:41 -07:00
Daniel Imms
e9d276a827
Merge pull request #4095 from jerch/request_mode
...
DECRQM support
2022-09-07 08:58:33 -07:00
Daniel Imms
327ece07e8
Merge pull request #4102 from JasonXJ/clip-cursor-cell
...
Webgl cursor renderer makes sure a char is not drawn outside of the cell
2022-09-07 07:49:24 -07:00
Jason Lin
4752f99e03
Webgl cursor renderer makes sure a char is not drawn outside of the cell
2022-09-06 14:12:15 +10:00
Jason Lin
e5ad3ce9b9
Polish
2022-09-05 17:32:02 +10:00
Jason Lin
faf5f72c1f
Clear glyph render when the webgl model is cleared
2022-09-05 13:32:04 +10:00
jerch
74fc7e2686
Merge branch 'master' into request_mode
2022-09-03 13:32:27 +02:00
Jörg Breitbart
f08ad87e7a
unit tests
2022-09-03 13:25:20 +02:00
Jörg Breitbart
65f0f9a1d4
restructure code, enable DECSET 12 and SM 20
2022-09-03 12:14:53 +02:00
Daniel Imms
93bc9bf152
Merge pull request #4004 from silamon/requiredoptions3
...
ITerminalOptions: Make fields required
2022-09-02 13:20:49 -07:00
Daniel Imms
e8e2f16cff
Merge remote-tracking branch 'upstream/master' into pr/silamon/4004
2022-09-02 13:05:52 -07:00
Daniel Imms
1b38a004a3
Merge pull request #3992 from SvanT/master
...
Bump minimum target to es2015
2022-09-02 12:43:40 -07:00
Jörg Breitbart
df1d72aee5
make linter happy
2022-09-02 01:51:27 +02:00
Jörg Breitbart
bb4fbf2659
DECRQM impl
2022-09-02 01:43:31 +02:00
jerch
f9db65c52e
Merge pull request #4093 from jerch/sgr_pixels
...
SGR-pixels mouse report
2022-09-01 18:04:50 +02:00
Daniel Imms
f816ed0f71
Merge pull request #4094 from sorenisanerd/gotty-maintainer-change
...
Reference sorenisanerd fork of gotty
2022-09-01 08:26:21 -07:00
Søren L. Hansen
64c8c16730
Reference sorenisanerd fork of gotty
...
I took over maintainership of gotty a while ago. The original project
is dormant or dead.
2022-09-01 08:22:07 -07:00
Jörg Breitbart
70d30f5a09
fix mouse api tests
2022-09-01 13:31:51 +02:00
Jörg Breitbart
edc4fb4a29
document pixels mouse mode
2022-09-01 12:46:10 +02:00
Jörg Breitbart
ef1b773fd7
fix pixel to cell offsets
2022-09-01 12:35:44 +02:00
Jörg Breitbart
06d6e08347
sgr_pixels mouse report
2022-09-01 00:50:11 +02:00
Daniel Imms
3acf08bc0c
Merge pull request #4090 from xtermjs/Tyriar-patch-1
...
Create codeql-analysis.yml
2022-08-31 07:39:29 -07:00
Daniel Imms
ab8ce61e56
Remove python scanning
2022-08-31 07:26:23 -07:00
Daniel Imms
c5a6b997d1
Remove lgtm comments in favor of codeql dismissable alerts
2022-08-31 07:25:03 -07:00
Daniel Imms
6d2d4555e7
Create codeql-analysis.yml
2022-08-31 06:28:58 -07:00
Daniel Imms
d673e02afe
Merge pull request #4089 from Tyriar/lgtm
...
Fix lgtm recommendations
2022-08-31 06:26:56 -07:00
Daniel Imms
151a5d88ce
Merge pull request #4075 from kenrussell/context-restoration
...
Handle WebGL context loss/restore events in WebGL renderer.
2022-08-31 05:56:30 -07:00
Daniel Imms
f309affff2
Tweak handling of _contextRestorationTimeout
2022-08-31 05:44:48 -07:00
Kenneth Russell
9459553665
Handle WebGL context loss/restore events in WebGL renderer.
...
If the context is restored within a brief period of time (3 seconds),
recreate members dependent on WebGL state, and fire onRequestRedraw to
the renderer's listeners.
Handle changes to the char atlas better in the demo client.
Tested in Chrome Canary on macOS by running the demo in one window,
and visiting the internal URL about:gpucrash in another window. The
terminal now recovers and redraws properly.
2022-08-30 19:42:22 -07:00
Daniel Imms
4a6e7bee21
Fix lgtm recommendations
2022-08-30 14:09:39 -07:00
Daniel Imms
ef759a6d7b
Merge pull request #4086 from Tyriar/padding_powerline
...
Only remove padding from restricted powerline chars
2022-08-30 08:53:03 -07:00
Daniel Imms
9dca3c48c7
Merge pull request #4088 from Tyriar/hyperlink_ternary_fix
...
Fix ternary in activate call
2022-08-30 07:57:21 -07:00
Daniel Imms
284d9f9893
Fix ternary in activate call
...
Part of #1134
2022-08-30 07:51:32 -07:00
Daniel Imms
99c47eb3c3
Merge pull request #4087 from Tyriar/hyperlink_range
...
Expose range on link handler
2022-08-30 07:08:06 -07:00
Daniel Imms
c5861d512c
Import from Types
2022-08-30 07:01:23 -07:00
Daniel Imms
22cca3495a
Expose range on link handler
...
This is needed for proper tooltip positioning
Part of #1134
2022-08-30 07:00:33 -07:00
Daniel Imms
0c864cddba
Merge pull request #4005 from Tyriar/1134_3
...
OSC hyperlink support
2022-08-30 06:03:36 -07:00
Daniel Imms
3f3fc183f4
Merge branch 'master' into 1134_3
2022-08-30 05:53:36 -07:00
Ian K
cad6b49e39
Merge branch 'master' into handle-delete-composition-helper
2022-08-29 21:27:17 -05:00
Daniel Imms
7dae4bc8bc
Merge pull request #4085 from Tyriar/fix_gap
...
Fix rounding error gap in webgl renderer
2022-08-28 13:36:13 -07:00
Daniel Imms
5c6d16ef0a
Only remove padding from restricted powerline chars
2022-08-28 13:33:09 -07:00
Daniel Imms
f7e0f69598
Fix rounding error gap in webgl renderer
...
Fixes #4054
Fixes #4076
2022-08-28 13:22:29 -07:00
Daniel Imms
591f178d31
Merge pull request #4084 from Tyriar/more_gc_2
...
Optimize gc in WebglRenderer and RectangleRenderer render loops
2022-08-28 09:30:55 -07:00