Commit Graph

2152 Commits

Author SHA1 Message Date
Corey Johnson
e007b090d8 Cleaning up xcode project 2012-05-16 12:55:53 -07:00
atom-bot
fdab51aee2 add LOAD_RESOURCES_FROM_DIR to Atom Project 2012-05-16 12:51:24 -07:00
Corey Johnson
4fb19bf9cc Fixes bug in benchmarks
Need to investigate further
2012-05-16 12:31:59 -07:00
Corey Johnson
8e808ae3c1 Clear rootViewStates after each benchmark 2012-05-16 12:17:01 -07:00
Corey Johnson
2c508f5a31 Fix tests
Certain tests resize the editor and expect the number of lines to adjust, this forces the test to meet that expectation.
2012-05-16 11:30:25 -07:00
Corey Johnson
05903a6e56 💄 2012-05-16 11:21:28 -07:00
Corey Johnson
1b2b5b3311 💩 2012-05-16 11:06:42 -07:00
Corey Johnson
3614ad6e76 Update lines when the font size changes 2012-05-16 10:58:19 -07:00
Corey Johnson
85c0d6a35a Only update lines if it is needed 2012-05-16 10:58:02 -07:00
Corey Johnson
399fc71b3c Make Atom SpacePen view's default to empty object (where needed) 2012-05-16 10:35:50 -07:00
Corey Johnson
a866d53e96 SpacePen's constructor doesn't default first arg to an empty object
If you want your view's initialize, class or content argument to default to an empty object, do it yourself!
2012-05-16 10:35:00 -07:00
Corey Johnson
55e3f94a35 Remove log 2012-05-16 10:33:05 -07:00
Corey Johnson
bf4b41e482 Revert "Don't trigger scroll event on edit session load, it is called automatically "
This reverts commit cae7c18db4.
2012-05-16 09:07:19 -07:00
Corey Johnson
27f3d3d03d Use scrollView in benchmarks 2012-05-15 17:39:44 -07:00
Corey Johnson
e691f1e73a Errors thrown when running benchmarks are logged to the console 2012-05-15 17:39:23 -07:00
Corey Johnson
aed346cfcf Fail if the benchmarks fail 2012-05-15 17:00:54 -07:00
Corey Johnson
d9dbca122f Force benchmark ajax call to be synchronous 2012-05-15 16:59:06 -07:00
Corey Johnson
cae7c18db4 Don't trigger scroll event on edit session load, it is called automatically
Fixes partially rendered lines when you reload
2012-05-15 15:28:10 -07:00
Corey Johnson
aacd077749 Editor.renderLines() calls updateLines (more DRY) 2012-05-15 14:47:59 -07:00
Corey Johnson
484b55800a Call updateLines when lines are removed from buffer 2012-05-15 14:27:22 -07:00
Corey Johnson
91aebde968 Only update gutter when editor is attached 2012-05-15 12:32:46 -07:00
Corey Johnson
54a3823606 Buffer change events update the @lastRenderedScreenRow 2012-05-15 12:29:59 -07:00
Corey Johnson
63d53af577 💩 2012-05-15 10:46:58 -07:00
Corey Johnson
8cbd81b7ac don't fail build if benchmark fails 2012-05-15 10:22:47 -07:00
Corey Johnson
6515cada2d check to see if the build passes without the 9000-line-file.after-opening.move-to-beginning-of-word benchmark 2012-05-15 10:16:12 -07:00
Corey Johnson
80c066b03b The test for tabs in a token was totally wrong. Now it is totally right. 2012-05-15 10:12:56 -07:00
Corey Johnson
6b3664a040 Vertical scrollbar height is updated when switching buffers 2012-05-15 10:02:56 -07:00
Corey Johnson
facd7082d0 optimization: only tokens containing tabs are split into multiple tokens 2012-05-15 08:39:50 -07:00
Corey Johnson & Nathan Sobo
171e4cc2a5 Use LOAD_RESOURCES_FROM_DIR macro to indicate that resources should be loaded from a path rather than the bundle 2012-05-14 17:43:55 -06:00
Corey Johnson & Nathan Sobo
78155de740 Un-F 2012-05-14 16:55:35 -06:00
Corey Johnson & Nathan Sobo
abc230eee3 Fix bug: file finder correctly focuses editor after opening a file. 2012-05-14 16:35:03 -06:00
Corey Johnson & Nathan Sobo
9079bcb103 Meta-a selects everything 2012-05-14 16:18:37 -06:00
Corey Johnson & Nathan Sobo
13553f79bc Benchmark movement of cursor that scrolls the editor's scroll view 2012-05-14 15:44:23 -06:00
Corey Johnson & Nathan Sobo
550bd0a979 Run more trials in benchmark that opens a 9k line file 2012-05-14 15:43:53 -06:00
Corey Johnson & Nathan Sobo
e8838b95fc Don't load user configuration for benchmark, since it changes the performance curve 2012-05-14 15:43:26 -06:00
Corey Johnson & Nathan Sobo
513e15e369 Make editor tall so that all line numbers are rendered for this test 2012-05-14 15:42:51 -06:00
Corey Johnson & Nathan Sobo
d99a12b6cf Don't defer scroll after cursor changes position to make scrolling feel smoother 2012-05-14 15:42:31 -06:00
Corey Johnson
b35a2502c6 Gutter line numbers are rendered similarly to the scroll view's lines 2012-05-14 12:32:53 -07:00
Corey Johnson
5e4aef95d0 Only visible lines numbers are rendered by the gutter 2012-05-14 09:53:58 -07:00
Corey Johnson
95440cc9dc bufferRowsForScreenRows method on editor and renderer take start/end arguments 2012-05-14 09:53:58 -07:00
Corey Johnson
63e9af6109 LineMap.bufferRowsForScreenRows stops traversing line map when endScreenRow is exceeded 2012-05-14 09:53:58 -07:00
Nathan Sobo
73c51583e6 Add benchmark for inserting newline in big file 2012-05-11 18:44:15 -06:00
Nathan Sobo
f47abdead9 Merge branch 'render-visible' 2012-05-11 17:52:23 -06:00
Nathan Sobo
21438acc48 Merge branch 'render-visible' of github.com:github/atom into render-visible 2012-05-11 17:51:59 -06:00
Nathan Sobo
0c89db37a5 Editor scroll position is correctly restored on refresh.
When we attach the editor we need to scroll it to the correct position before rendering lines. But to scroll it to the right position, the lines container and the scrollbar need to be assigned a height that allows them to scroll. So now we call `prepareForVerticalScrolling` on attach, then set the scroll position based on the edit session and render the visible lines.
2012-05-11 17:51:47 -06:00
Corey Johnson & Nathan Sobo
af65bd785c fix test failures 2012-05-11 16:06:42 -07:00
Corey Johnson & Nathan Sobo
d51b229d56 When the editor buffer changes and the path is not visible in the TreeView, It selects the closes ancestor entry of that file. 2012-05-11 15:44:18 -07:00
Corey Johnson & Nathan Sobo
2f86a3a6e5 TreeView starts with root being selected 2012-05-11 14:31:48 -07:00
Corey Johnson & Nathan Sobo
9990fd7b98 Do not let xcode compile coffeescript in when PROJECT_DIR exists 2012-05-11 13:12:43 -07:00
Nathan Sobo
96d92be230 Rename Editor.scrollbar to verticalScrollbar for clarity 2012-05-11 13:45:57 -06:00