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
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
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
3b4ecd0709
Optimize gc in rectangle renderer
2022-08-28 09:20:24 -07:00
Daniel Imms
4a50ca81c6
Optimize gc for WebglRenderer._updateModel and BufferLine.loadCell
...
RectangleRenderer not done yet
2022-08-28 09:06:42 -07:00
Daniel Imms
1d945fdffc
Create 2 and 4 key map objects, use in color and glyph caches
2022-08-28 08:34:51 -07:00
Daniel Imms
23ee719f6e
Remove more garbage collection issues from cell render loop
...
Part of #4079
2022-08-28 08:02:35 -07:00
Daniel Imms
1b64a09f50
Correct conditions after moving to work object
2022-08-27 21:35:56 -07:00
Daniel Imms
0727741ca1
Remove iterators from IDecorationService
...
They're too low performance for typical use cases
Fixes #4079
2022-08-27 20:50:16 -07:00
Daniel Imms
5e3f63e876
Avoid garbage collection in webgl decoration hot code
...
Part of #4079
2022-08-27 20:06:58 -07:00
Daniel Imms
4ecc098de4
Get width of emoji/combined chars
2022-08-27 06:38:15 -07:00
Daniel Imms
e76918eddc
Take char width into account when drawing underlines/strokethrough
...
Fixes #4063
2022-08-27 06:34:38 -07:00
Daniel Imms
2526409ca5
Merge pull request #4074 from Tyriar/4059
...
Only draw character outline if it has a descent
2022-08-26 14:38:40 -07:00
Daniel Imms
7ffd9e1f7f
Only draw character outline if it has a descent
...
Fixes #4059
2022-08-26 14:16:02 -07:00
Daniel Imms
8bbbc98ac8
Merge pull request #4073 from Tyriar/4072
...
Show entire glyph for extra powerline symbols
2022-08-26 08:33:53 -07:00
Daniel Imms
f6860442fb
Show entire glyph for extra powerline symbols
...
Fixes #4072
2022-08-26 08:12:00 -07:00
Daniel Imms
774ebe40e6
Improve glyph padding, especially in large font sizes
...
Fixes #4066
2022-08-26 07:26:36 -07:00
Daniel Imms
523de80162
Merge branch 'master' into vscode_158497
2022-08-24 15:36:44 -07:00
Daniel Imms
e40cf0684e
Properly clear underscore glyph's background
...
See microsoft/vscode#158497
2022-08-24 15:36:03 -07:00
Daniel Imms
0698afaf12
Only stroke glyph when font size >= 12
2022-08-19 13:24:39 -07:00
Daniel Imms
79d47893df
Move webgl underline rendering down
...
See microsoft/vscode#158326
2022-08-19 13:19:08 -07:00
Daniel Imms
9a119a7292
Whitespace change to trigger release
2022-08-10 06:27:32 -07:00
Daniel Imms
f0926e7821
Remove tests that rely on node
...
We can test this primarily with api tests instead
2022-08-04 10:11:11 -07:00
Daniel Imms
d495fdd9ab
Bring back webpack resolve config
2022-08-04 10:01:58 -07:00
Daniel Imms
f3f6a91f16
Remove node target from ligatures
...
This complicates bundling for sandboxed electron a lot, ideally we would only
rely on browser APIs for font access
2022-08-04 09:57:37 -07:00
Daniel Imms
d608912efd
Remove electron renderer target
...
This causes global to be required which is not available in sandboxed electron
renderers
See microsoft/vscode#157008
2022-08-04 06:20:45 -07:00
Daniel Imms
76d9d5a324
Bump all peer deps to v5
...
Fixes #3997
2022-08-03 09:45:23 -07:00
Daniel Imms
39959c2861
Don't dim default bg in webgl
...
Fixes #3970
2022-07-31 15:39:34 -07:00
Daniel Imms
1ede106ab4
Fix powerlines not clipped when bg changes
2022-07-31 12:05:20 -07:00
Daniel Imms
e7e71dbd3c
Merge remote-tracking branch 'upstream/master' into 3969
2022-07-31 11:35:47 -07:00
Daniel Imms
d6fe5c7384
Update size when letter spacing changes
2022-07-31 11:21:27 -07:00
Daniel Imms
75ca5006a2
Expose texture atlas change event and use in demo
2022-07-31 11:16:12 -07:00
Daniel Imms
266d795179
Fix line height and letter spacing for custom glyphs
2022-07-31 10:58:04 -07:00
Daniel Imms
889e3ad14b
Merge pull request #3980 from Tyriar/3971
...
Fix underline color and polish width and positioning
2022-07-30 23:50:20 -07:00
Daniel Imms
8d57c64d29
Include purpose of canvas addon in readme
...
Fixes #3978
2022-07-30 23:48:37 -07:00
Daniel Imms
bbd03fb5fe
Merge pull request #3976 from Tyriar/clip_underline
...
Clip outline drawing near underline
2022-07-30 23:43:42 -07:00
Daniel Imms
f4618b229f
Bring underlines closer to characters
2022-07-30 23:30:52 -07:00
Daniel Imms
686105942c
Reduce line width of webgl underline
2022-07-30 23:25:18 -07:00
Daniel Imms
04a14a748e
Merge pull request #3979 from Tyriar/3977
...
Implement improved texture packing strategy
2022-07-30 22:58:12 -07:00
Daniel Imms
ed492f7253
Implement improved texture packing strategy
...
Fixes #3977
2022-07-30 19:24:09 -07:00
Daniel Imms
ce4a85d07d
Clip outline drawing near underline
...
Fixes #3975
2022-07-30 17:52:00 -07:00
Daniel Imms
309487a020
Fix character offset to respect texture padding in webgl
...
Fixes #3974
2022-07-30 11:07:33 -07:00
Daniel Imms
c7122e8447
Fix dim flag applying to selection in webgl
...
Fixes #3970
2022-07-30 10:29:41 -07:00
Daniel Imms
f0ddaf49ea
Disable threshold check for glyphs with colored underlines
...
This causes some underlines to disappear which looks very bad for
colored underlines
2022-07-30 07:36:48 -07:00
Daniel Imms
d0ec9f2591
Support letter spacing in webgl
2022-07-30 07:05:05 -07:00
Daniel Imms
941cc5100d
Increase curly height when dpr <= 1
2022-07-30 06:56:32 -07:00
Daniel Imms
e0d4384d3c
Merge branch 'master' into underline
2022-07-30 06:40:41 -07:00
Daniel Imms
ff33834eb2
Merge branch 'master' into inactiveSelection
2022-07-29 14:51:22 -07:00