Commit Graph

6773 Commits

Author SHA1 Message Date
Ben Ogle
920d348014 Only move legit items to the top of the stack
Fixes #11002 cc @natalieogle
2016-02-29 11:32:28 -08:00
Michelle Tilley
d39418ad7c Add specs for Pane::setPendingItem and ::onItemDidTerminatePendingState
Signed-off-by: Katrina Uychaco <kuychaco@github.com>
2016-02-28 18:52:09 -08:00
natalieogle
420a8d8692 Add activatePreviousRecentlyUsedItem to pane model and add specs. 2016-02-27 20:45:02 -08:00
natalieogle
f7de9052d6 Update specs for itemStack. 2016-02-27 20:45:02 -08:00
natalieogle
463dc6955a Update spec for MRU tab functionality with correct function name. 2016-02-27 20:45:01 -08:00
natalieogle
3641cc0296 Remove redundant MRU function. 2016-02-27 20:45:01 -08:00
natalieogle
fe52ce6011 Modify serialize functions and add function to move through the item stack in order of most recently used. 2016-02-27 20:45:01 -08:00
natalieogle
6466cb489e Add serialize and deserialize functionality to the itemStack. 2016-02-27 20:45:01 -08:00
natalieogle
7a6c8f53a4 Add activateMostRecentlyUsedItem to pane model. 2016-02-27 20:45:00 -08:00
Michelle Tilley
b9d40be902 Merge pull request #10959 from atom/ku-move-pending-state-from-item-to-pane
(WIP) Refactor pending state to live in pane instead of items
2016-02-26 14:19:23 -08:00
Michelle Tilley
84a2ef69af Fix Workspace#open pending specs 2016-02-26 07:23:51 -08:00
Katrina Uychaco
1c65d0e5e4 Changed Pane and TextEditor specs to match new pending behavior 2016-02-25 16:48:16 -08:00
Max Brunsfeld
3bc9eb62b2 Merge pull request #10933 from atom/mb-fix-block-decorations-spec
Fix block decorations spec in text editor presenter
2016-02-22 17:08:41 -08:00
Max Brunsfeld
7aab88c4f6 Merge pull request #10841 from ArnaudRinquin/feat/cli-add-option
Add the -a, --add CLI option
2016-02-22 16:42:21 -08: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
Arnaud Rinquin
bb1c048e12 Add -a, --add specific integration tests 2016-02-22 18:38:25 +00:00
joshaber
01751c038a Ensure we're treating it as case insensitive. 2016-02-22 11:53:38 -05:00
joshaber
04cab58c56 Failing test. 2016-02-22 11:18:54 -05:00
Arnaud Rinquin
53693b4d0f Add the -a, --add CLI option 2016-02-19 08:54:17 +00:00
Max Brunsfeld
2e7101e5eb Don't display an editor window in atom-environment-spec 2016-02-18 15:11:26 -08:00
Max Brunsfeld
8a24364e80 Import fit in text-editor-component-spec
So that you can focus a test while keeping it async
2016-02-18 15:10:16 -08:00
Max Brunsfeld
dec328dab7 Remove stray console.log in spec 2016-02-18 15:09:22 -08:00
Katrina Uychaco
bbd425b6af Merge pull request #10878 from atom/ku-allow-pasting-white-space
Allow pasting white space when `autoIndentOnPaste` is enabled
2016-02-18 13:57:06 -08:00
Katrina Uychaco
746afb98ad Add spec for inserting white-space-only lines 2016-02-18 12:04:08 -08:00
Max Brunsfeld
300362163d Merge pull request #10888 from atom/mb-fix-package-deserializers
Load packages before deserializing state
2016-02-18 10:27:04 -08:00
Max Brunsfeld
43656a9861 Load packages before deserializing state 2016-02-18 09:17:34 -08:00
Antonio Scandurra
3d953632e6 Merge pull request #10861 from atom/as-update-foldable-status
Compute line foldability lazily
2016-02-18 15:26:44 +01:00
Antonio Scandurra
d6132888fa 💚 Attempt to fix specs 2016-02-18 14:18:27 +01:00
Katrina Uychaco
a146401f21 Terminate pending state for opened file if pending option is false 2016-02-17 14:14:59 -08:00
Katrina Uychaco
912df0ae03 Merge pull request #10846 from atom/ku-pending-tabs-option
Add core setting for pending tabs configuration
2016-02-17 11:57:40 -08:00
Katrina Uychaco
b8677c13df Rename config to allowPendingPaneItems and improve description 2016-02-17 11:56:50 -08:00
Antonio Scandurra
68bf2f8dc7 💚 Fix unrelated failing spec 2016-02-17 17:20:54 +01:00
Antonio Scandurra
bea324eae9 🔥 Use just isFoldableAtBufferRow 2016-02-17 15:05:31 +01:00
Antonio Scandurra
90c75fd6da Delete specs testing previous behavior
When emitting the `did-change` event, `updateFoldableStatus` used to extend the
change region up and down to include all the lines that changed their
foldability status because of a buffer change. I assume this was supposed to
invalidate folds that *contained* the change whenever a line was edited in a way
that affected also the previous or subsequent ones.

That information, however, is not being used by `DisplayBuffer`, which does not
alter existing folded regions when they become invalid.

I believe the correct behavior should be to unfold the invalid region and
recompute those screen lines. Nonetheless, it seems reasonable to me to keep the
original (wrong) behavior and not address it in this branch, because it strays
from the original intent of this refactoring.

We should probably fix it once for all in another PR or when
integrating/implementing `DisplayLayer`.
2016-02-17 14:35:22 +01:00
Antonio Scandurra
a613fa5133 Adapt specs to use the new API 2016-02-17 11:17:24 +01:00
Antonio Scandurra
2c71a448b3 Put foldable specs back 2016-02-17 11:04:19 +01:00
Antonio Scandurra
0afa9bb21c Don't update foldable status, ever 2016-02-17 10:34:21 +01:00
Katrina Uychaco
c9150c3f73 Add test for core.openPendingPaneItems setting 2016-02-16 15:24:18 -08:00
Max Brunsfeld
4bc969d1df Merge branch 'master' into wl-electron-35 2016-02-16 13:16:13 -08:00
Katrina Uychaco
bf264c6a6a Merge branch 'master' into ku-crash-recovery 2016-02-15 21:40:59 -08:00
joshaber
e86ffa0d27 Merge branch 'master' into subdir-status-fixes 2016-02-15 20:33:09 -05:00
joshaber
f0a179fdb5 Add the decoration after subscribing to state updates
Same fixe as #10792.
2016-02-15 17:19:32 -05:00
joshaber
2e8569d7b3 Port failing tests.
Bring the failing tests over from
https://github.com/atom/atom/pull/10758 and
https://github.com/atom/atom/pull/10797.
2016-02-15 17:03:09 -05:00
Josh Abernathy
9e073d807d Merge pull request #10792 from atom/fix-test-timeout
Fix TextEditorPresenter spec timeout.
2016-02-12 17:24:29 -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
Max Brunsfeld
0ea06bad31 Merge branch 'master' into wl-electron-35 2016-02-12 12:57:54 -08:00
joshaber
9fa766e01a Don't use synchronous updates anymore. 2016-02-12 15:13:10 -05:00
joshaber
72f3d0b309 Unfocused. 2016-02-12 14:45:26 -05:00