Antonio Scandurra
c769b169aa
Allow scrollPastEnd to be set from the editor
2016-06-30 15:05:21 +02:00
Antonio Scandurra
209e9d8d9c
Add coverage for position: 'after' in cursor's state specs
2016-05-24 10:54:01 +02:00
Antonio Scandurra
c0bed9ab50
🐛 Enforce block decorations to be 'before' by default
2016-05-24 10:49:59 +02:00
Antonio Scandurra
896abe358c
Merge pull request #11765 from atom/as-fix-presenter-uncaught-exception
...
Don't render line-numbers corresponding to lines that need measuring
2016-05-16 14:21:43 +02:00
Antonio Scandurra
c13346a455
Show folded marker in the first screen row of a soft-wrapped buffer row
2016-05-16 11:23:54 +02:00
Antonio Scandurra
b5b324875e
Don't render line-numbers corresponding to lines that need measuring
...
Rendering those line numbers in the gutter isn't useful, and it puts
unneeded pressure to the DOM. In the process of changing
`updateLineNumbersState`, we have also refactored it to stop relying on
row ranges being contiguous. This allows that code path to be:
1. Less error-prone, because we were trying to access rows that weren't
actually rendered, thus potentially throwing errors when measuring
non-contiguous screen rows that weren't visible.
2. Tighter, because we can just iterate over each screen row and ask for
its soft-wrap descriptor.
2016-05-16 10:58:37 +02:00
Antonio Scandurra
f4a31261d0
Delete indent guides code from the presenter and the component
...
…because we're handling that behavior in `TextEditor` and `DisplayLayer`
now.
2016-05-01 11:48:39 +02:00
Antonio Scandurra
f81f54e08a
Apply 'folded' decoration only to 1st screen row of a wrapped buffer row
2016-04-26 12:11:05 +02:00
Antonio Scandurra
a083a754a5
💚 Fix TextEditorPresenter specs
2016-04-05 11:12:51 +02:00
Antonio Scandurra
708da39355
Avoid using tokenizedLineForScreenRow in TextEditorPresenter specs
2016-03-17 10:35:54 +01:00
joshaber
98c8a08ac3
s/ignoreScrollPastEnd/scrollPastEnd
2016-03-03 10:06:15 -05:00
joshaber
4cd7cbda02
Test ignoreScrollPastEnd.
2016-03-01 10:53:31 -05:00
Max Brunsfeld
98559f5d34
Add missing
2016-02-22 16:31:17 -08:00
Max Brunsfeld
ea5500a124
Print line number of wait timeout in presenter spec
2016-02-22 16:31:06 -08:00
joshaber
f0a179fdb5
Add the decoration after subscribing to state updates
...
Same fixe as #10792 .
2016-02-15 17:19:32 -05:00
joshaber
cc3f6b888f
Don't need to duplicate this line.
2016-02-12 16:35:16 -05:00
joshaber
82860a12a0
Fix waitsForStateToUpdate proper like.
2016-02-12 16:35:10 -05:00
joshaber
9fa766e01a
Don't use synchronous updates anymore.
2016-02-12 15:13:10 -05:00
joshaber
6813bf50a0
Use waitsForStateToUpdateAsync in a bunch of places.
2016-02-12 14:00:47 -05:00
joshaber
272ff19d7b
Decrease the timeout interval.
2016-02-12 13:58:54 -05:00
joshaber
8b14f5afdc
Let's get some deterministic failures.
2016-02-12 13:58:38 -05:00
joshaber
319043c93d
Update this test too.
2016-02-12 12:11:52 -05:00
joshaber
07d35245e0
Move it around again.
2016-02-12 11:51:48 -05:00
joshaber
a3ec51f492
Let's try rearranging this.
2016-02-12 11:46:43 -05:00
joshaber
dd6a6be8b1
Once more, with feeling.
2016-02-12 10:56:36 -05:00
joshaber
3e7de73580
Bump the timeout.
2016-02-12 09:58:37 -05:00
Wliu
8ca1071168
Update presenter specs
2016-02-08 16:52:47 -05:00
Antonio Scandurra
1f0e6a0902
Don't calculate height for following decorations at beginning of tiles
2016-01-13 09:21:31 -07:00
Antonio Scandurra
4499fa8d6f
Split following and preceding block decorations
...
In TextEditorPresenter's state for lines.
2016-01-12 12:04:12 -07:00
Antonio Scandurra
63220f7ead
Add presenter specs for block decorations *after* a row
2016-01-12 10:54:56 -07:00
Antonio Scandurra
8603ceb7e8
Make spec more comprehensive
2016-01-06 11:12:21 +01:00
Antonio Scandurra
1376afe17e
🎨
2016-01-05 10:57:32 +01:00
Antonio Scandurra
c7a7f0c6dd
🐛 Ignore setting dimensions for destroyed decorations
2016-01-05 10:56:29 +01:00
Antonio Scandurra
eab70d9a95
Invalidate spliced block decorations' dimensions
2015-12-19 15:38:34 +01:00
Antonio Scandurra
dfb095b754
🔥 Remove TextEditor.prototype.addBlockDecorationForScreenRow
2015-12-19 13:00:47 +01:00
Antonio Scandurra
07234c5109
Resize all block decorations when width changes
2015-12-19 12:50:58 +01:00
Antonio Scandurra
5e0863c119
✅ Write specs for moving markers manually
2015-12-19 12:02:49 +01:00
Antonio Scandurra
5fa9d3bc40
Splice LineTopIndex when DisplayBuffer changes
...
We invalidate whole screen lines accordingly to `DisplayBuffer`, so that we can
catch if there was any screen-only transformation and move block decorations
accordingly.
2015-12-19 11:21:50 +01:00
Antonio Scandurra
db9f67b9a5
🔥 Remove maxRow parameter
2015-12-18 15:41:46 +01:00
Antonio Scandurra
087dc3b4fd
Back to green specs 🤘
2015-12-18 15:18:04 +01:00
Antonio Scandurra
877eea3bd0
Finish integrating LineTopIndex
2015-12-18 11:07:10 +01:00
Antonio Scandurra
6a403e441e
Start integrating tree-based LineTopIndex
2015-12-18 10:41:21 +01:00
Antonio Scandurra
8c1f0b0e21
Merge branch 'master' into as-block-decorations
...
# Conflicts:
# spec/fake-lines-yardstick.coffee
# spec/lines-yardstick-spec.coffee
# spec/text-editor-presenter-spec.coffee
# src/lines-yardstick.coffee
# src/text-editor-component.coffee
# src/text-editor-presenter.coffee
2015-12-18 09:59:12 +01:00
Max Brunsfeld
a16b99fa58
Merge pull request #10062 from atom/mb-emit-state-update-on-model-scroll
...
Emit state update when model's scroll position is changed
2015-12-14 17:38:36 -08:00
Max Brunsfeld
02ab7179ce
Emit state update when model's scroll position is changed
2015-12-14 16:56:53 -08:00
Antonio Scandurra
4b6a218bb9
Start to move stuff back into TextEditorPresenter
2015-12-14 15:53:01 +01:00
Antonio Scandurra
cfb30c795d
Use an updated version of LineTopIndex
2015-12-14 15:04:54 +01:00
Antonio Scandurra
2e7048d8c6
Merge pull request #10028 from atom/ns-remove-presenter-flags
...
Remove non-essential update guard flags from TextEditorPresenter
2015-12-14 11:43:19 +01:00
Nathan Sobo
3d8058a9a4
Remove failing redundant assertions
...
The expectNoStateUpdate is sufficient to test the issue in question. Now
that most flags are removed, we can’t count on this part of the state
not being updated when we request a state recompilation.
2015-12-11 14:02:57 -07:00
Nathan Sobo
5cfd3423bf
Use internal scroll assignment methods when committing logical positions
...
This prevents an addition pending assignment and cuts directly to
adjusting the positions.
2015-12-11 13:34:46 -07:00