Commit Graph

65 Commits

Author SHA1 Message Date
Alex Dima c15001e11d Fixes #22832: Consider fullwidth characters when rendering tabs 2018-03-01 12:22:12 +01:00
Alex Dima fe4ca868d1 Reduce usage of old ViewLineToken 2017-12-21 12:38:28 +02:00
Alex Dima 60e7210916 Align shape of LineTokens and ViewLineTokens in preparation for merger 2017-12-21 10:48:12 +02:00
Alex Dima 45db74a46a Reduce usage of ViewLineToken 2017-12-20 17:44:02 +02:00
Alex Dima 65553bb748 Introduce ViewLineTokens 2017-12-20 16:07:20 +02:00
Alex Dima 66c505f56f Fixes #38935: Make sure to render multiple end-of-line inline decorations 2017-11-22 10:48:59 +01:00
Alex Dima 2217a39b3e Fixes #37401: Render before/after decorations on their own <span> elements 2017-11-21 11:43:45 +01:00
Alex Dima 8ace097b59 #37401: Allow both before and after inline decorations on empty lines 2017-11-21 10:32:05 +01:00
Alex Dima 1790a7f363 Have InlineDecorationType make it to viewLineRenderer (#37401) 2017-11-21 10:32:05 +01:00
Matt Bierner e18ebff45a Remove some additional unused locals and write only members 2017-11-07 11:24:55 -08:00
Erich Gamma c536efdfbc Enabled the noUnusedLocals and added @tsignore 2017-11-07 13:13:41 +01:00
Alex Dima 7fa7f21859 Fixes #37208: Do not allow inline decorations to break surrogate pairs 2017-11-01 17:49:14 +01:00
Alex Dima da62840a7a Fixes #32436: Emit whitespace's width for non monospace fonts even if the line contains foreign elements, but they are not placed on the whitespace itself 2017-09-27 09:59:47 +02:00
Alex Dima b5cc56613f Compute max line width synchronously if possible (i.e. fast) 2017-08-28 10:56:58 +02:00
Alex Dima ae6096a98d Use Unicode characters instead of some HTML entities when rendering 2017-08-28 10:56:58 +02:00
Alex Dima 121f96c2ac Use a StringBuilder for rendering view lines 2017-08-28 10:56:57 +02:00
Alex Dima 98db8e758c Fixes #30133: Render inline decorations for empty lines too. 2017-07-05 16:13:14 +02:00
Alex Dima c6f8a5d80f Fixes #11485: Don't set whitespace width if a line contains foreign elements 2017-07-05 15:26:56 +02:00
Alex Dima 235566665c Fixes #21476: Hard break at 100 column which break ligature for Fira Code 2017-03-27 21:52:44 +02:00
Alex Dima 5b95766633 Clarify file names 2017-03-03 10:48:08 +01:00
Alex Dima 32a2694c7d Fixes #21262 (clean up wrapping related settings) 2017-02-23 16:50:11 +01:00
Alex Dima ec2ffab55f Fixes #19673: Monokai Theme bad-highlighting in line wrap 2017-02-23 10:49:28 +01:00
Alex Dima 72fe8f51b7 Fixes #20624: Unaligned surrogate pairs are corrupted at multiples of 50 columns 2017-02-23 10:25:58 +01:00
Alex Dima 42dfb39f3f Finish ViewLineToken2 adoption 2017-02-14 05:59:37 -08:00
Alex Dima 24aba5b2d8 Adopt ViewLineToken2 2017-02-14 05:24:52 -08:00
Alex Dima cedc357c22 Don't hold onto the rendered html in viewLine 2017-02-02 18:35:29 +01:00
Alex Dima cf07be7af0 Add editor.disableMonospaceOptimizations (closes #19062) 2017-01-26 11:03:48 +01:00
Alex Dima 8ac4bfdbac Fixes issue #19207: Link in Monokai is not rendered correctly 2017-01-24 15:44:56 +01:00
Alex Dima e2c39c6c22 Add FastRenderedViewLine (disabled for now) 2017-01-17 11:56:09 +01:00
Alex Dima d83bc8996e Do not emit width for vs-whitespace when font is monospace 2017-01-16 18:22:56 +01:00
Alex Dima 4af6a58ade Fixes #18616: Inline decorations ending at the text length are no longer rendered 2017-01-16 18:04:19 +01:00
Alex Dima b11bd424e5 Record part lengths in view line renderer 2017-01-16 18:04:19 +01:00
Alex Dima 1f648fc814 Use pixelOffsetCache in all lines that do not contain RTL 2017-01-16 15:04:09 +01:00
Alex Dima c0def7092d Fixes #6885: Split large tokens into multiple tokens 2017-01-16 12:29:45 +01:00
Alex Dima 8b1cb9643b Emit dir attribute on rendered spans (fixes Microsoft/monaco-editor#280) 2017-01-16 10:35:57 +01:00
Alex Dima 3f649d87fb View line tokens track an endIndex instead of a startIndex 2017-01-15 22:56:42 +01:00
Alex Dima 27791fdea0 New view line rendering 2017-01-15 22:56:42 +01:00
Alex Dima fbe60c1e10 Test entire view line rendering code 2017-01-15 22:56:41 +01:00
Alex Dima 329261c8bd Towards refactoring view line rendering 2017-01-15 22:56:40 +01:00
Alex Dima 634d116711 Add intermediary step in view line rendering 2017-01-15 22:56:38 +01:00
Alex Dima 1d25a68c0b Introduce CharacterMapping that can transform char offsets to rendered view parts 2017-01-12 09:23:50 +01:00
Alex Dima 8905cb17ba Remove token class name from every token 2016-12-30 12:58:29 +02:00
Alex Dima 0a50b22063 Fixes #15045: Pick a unique name for whitespace tokens 2016-11-07 10:00:30 +01:00
Alex Dima 007a039662 Improve ViewLine rendering perf
* Extract render state in RenderedViewLine
* Improve granularity of IModelTokensChangedEvent
* Improve invalidation criteria
2016-10-23 23:26:17 +02:00
Alex Dima 47e2a84747 Fixes #12839: use width when reading position of last column in whitespace only line 2016-10-23 12:07:29 +02:00
Johannes Rieken 6681a2a7d6 tsfmt - src 2016-10-08 09:53:13 +02:00
Alex Dima dabbf52ac4 Adopt CharacterClassifier in CharacterHardWrappingLineMapping 2016-09-12 21:06:54 +02:00
Alex Dima 841ef4594f More CharCode adoption 2016-09-12 21:06:53 +02:00
marktrz 2dab253ab6 Implements whitespace rendering with modes 'boundary' and 'all'. 2016-08-29 12:09:12 -04:00
Alex Dima 973c3bdae5 Render indent guides outside of the view line (#2192) 2016-06-29 13:18:46 +02:00