Commit Graph

14990 Commits

Author SHA1 Message Date
joshaber
628e810758 Expose the promise for refreshStatus. 2015-11-10 15:23:36 -05:00
Antonio Scandurra
d4a67a7db5 🎨 Call it ::beginTransaction 2015-11-10 11:42:39 +01:00
Antonio Scandurra
e437234c58 Transact on both async and sync package activation 2015-11-10 11:05:31 +01:00
Nathan Sobo
581d736184 Merge pull request #9426 from atom/ns-editor-marker-layers
Optimize markers via new layers API and treap-based index
2015-11-09 23:02:26 -07:00
Nathan Sobo
d4818244f3 Merge pull request #9476 from atom/ns-fix-dev-mode
Always set devMode to true for spec windows
2015-11-09 14:57:17 -07:00
Nathan Sobo
c97ecf9da2 Don’t disable render backgrounding. Doesn’t seem to make a difference. 2015-11-09 14:56:42 -07:00
Kevin Sawicki
589d489eb9 Retain role field from menu items config 2015-11-09 12:30:29 -08:00
Max Brunsfeld
1304648361 Make getLastVisibleScreenRow a model API again 2015-11-09 11:00:38 -08:00
Max Brunsfeld
48cc5e713e Make presenter respond to external changes to model's first visible screen row 2015-11-09 10:13:09 -08:00
Daniel Hengeveld
3d2ed07470 Revert "Use our own ::relativize"
This reverts commit 0322d8d3da.
2015-11-09 16:56:51 +01:00
Daniel Hengeveld
0322d8d3da Use our own ::relativize
This allows us to remove the git-utils import.
2015-11-09 16:48:02 +01:00
Daniel Hengeveld
93046f550f Clean up lint errors from ./script/grunt standard:src 2015-11-09 15:13:00 +01:00
Daniel Hengeveld
e2a1337b84 Merge branch 'master' into dh-async-repo 2015-11-09 13:08:23 +01:00
Nathan Sobo
fc5788c43b Disable renderer backgrounding 2015-11-09 00:35:34 -07:00
Nathan Sobo
213e7d0b35 Schedule marker updates with nextTick instead of setImmediate
From what I understand, nextTick callbacks actually happen at the end
of the current event loop cycle rather than the next one. The naming is
confusing.
2015-11-09 00:35:33 -07:00
Nathan Sobo
1aa4b7e06a Clear nextUpdatePromise immediately when an animation frame fires 2015-11-09 00:35:33 -07:00
Nathan Sobo
54a9012796 Clear next update promise when resetting ViewRegistry 2015-11-09 00:35:33 -07:00
Nathan Sobo
fe88611e79 Tear down timers when destroying TextEditorPresenter 2015-11-09 00:35:33 -07:00
Nathan Sobo
b9528dcb39 Cancel ViewRegistry animation frames between specs 2015-11-09 00:35:33 -07:00
Nathan Sobo
e9dfc080a3 Convert text-editor-component-spec to Babel for async/await
It's much easier to reason about async/await than Jasmine's
built-in queuing system, and using them made it easier to
debug flaky async tests.
2015-11-09 00:35:32 -07:00
Nathan Sobo
51a7c9ea68 Always set devMode to true for spec windows 2015-11-09 00:35:32 -07:00
Nathan Sobo
3a4199a0cd Allow (start/end)(Buffer/Screen)Position in findMarker queries on layers 2015-11-09 00:35:32 -07:00
Nathan Sobo
533146bc6a Document new APIs 2015-11-09 00:35:32 -07:00
Nathan Sobo
9714f2e729 Emit decoration events synchronously in legacy spec environment
This is needed to keep a bunch of package tests passing that expect
synchronous decoration updates.
2015-11-09 00:35:31 -07:00
Nathan Sobo
9ee3d53975 Destroy the selections marker layer when editors are destroyed 2015-11-09 00:35:31 -07:00
Nathan Sobo
2f81e5faac Store folds in their own marker layer 2015-11-09 00:35:31 -07:00
Nathan Sobo
29bb1bb31b Add TextEditor-level marker layers and use them for selections 2015-11-09 00:35:31 -07:00
Nathan Sobo
1ee6384332 Add TextEditorMarkerLayer 2015-11-09 00:35:31 -07:00
Nathan Sobo
b1a5b58fa2 Rename Marker to TextEditorMarker to resolve ambiguity w/ TextBuffer API
We expose both kinds of markers in Atom, and the docs were actually
wrong when we refer to Markers from TextBuffer because it linked to the
TextEditor layer’s Marker implementation. This will clarify the
difference.
2015-11-09 00:35:30 -07:00
Nathan Sobo
78513f4528 Remove duplicated method definition 2015-11-09 00:35:28 -07:00
Nathan Sobo
a3ff0ad75a 🎨 Rename method 2015-11-09 00:35:28 -07:00
Nathan Sobo
75d0a0820c Allow properties to be overridden for a single marker in LayerDecoration 2015-11-09 00:35:28 -07:00
Nathan Sobo
acf142863c Add TextEditor::decorateMarkerLayer 2015-11-09 00:35:27 -07:00
Nathan Sobo
3a25fe4975 Remove id from decoration properties
It doesn’t make sense to include this when we’ll reuse the same
properties for multiple decoration instances when decorating marker
layers.
2015-11-09 00:35:27 -07:00
Nathan Sobo
d7b0ab9179 Simplify updating of custom gutter decoration state 2015-11-09 00:35:27 -07:00
Nathan Sobo
92ed7c8b15 Don’t return Decoration objects from model to view
Preparation for LayerDecorations, in which individual decoration objects
won’t exist for every marker.
2015-11-09 00:35:27 -07:00
Nathan Sobo
d46091d7e5 Remove dead code 2015-11-09 00:35:27 -07:00
Nathan Sobo
800440d5ca Remove logging 2015-11-09 00:35:27 -07:00
Nathan Sobo
4b5e4d02eb Use real clock in text-editor-component-spec
This will make it much easier to test asynchronous update logic.
2015-11-09 00:35:18 -07:00
Nathan Sobo
1aefb22789 Add ViewRegistry.prototype.getNextUpdatePromise
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-11-09 00:35:18 -07:00
Max Brunsfeld
cdaac9dfcc wip 2015-11-09 00:35:18 -07:00
aki
396e8a42a4 Fix activatePackages 2015-11-08 23:14:13 +09:00
Nathan Sobo
d46cea9c41 Disable throttling in test windows via WebAudio hack
Throttling in test windows is annoying when tests run interactively,
and *seems* to cause issues with animation frames not firing even in
headless tests, though it’s difficult to fully confirm since this issue
is intermittent.
2015-11-07 16:01:20 -07:00
Nathan Sobo
1fd2ba084c Merge pull request #8232 from lpommers/move-lines-up-and-down-with-multiple-selections
Move lines up and down with multiple selections
2015-11-07 14:40:58 -07:00
Wliu
232f54ed84 🔥 subpixel-font-scaling
This option was removed in Electron v0.33.9
2015-11-07 10:41:03 -05:00
joshaber
247d4d4785 Merge branch 'master' into dh-async-repo 2015-11-07 01:35:48 -05:00
Nathan Sobo
a8ceaa80f1 Always set devMode to true for spec windows 2015-11-06 16:01:21 -07:00
Max Brunsfeld
b58752da38 Keep model's logical scroll position up to date
* Remove scrollRow and scrollColumn properties from the presenter
* Assign presenter's scrollTop and scrollLeft based on model's first visible
  screen row and column, once the presenter has the required measurements.
2015-11-06 11:16:56 -08:00
Max Brunsfeld
4d40e28c6b Remove presenter constructor parameters that aren't used in production 2015-11-06 09:56:58 -08:00
Max Brunsfeld
7d46fe6c28 🔥 Unused properties on TextEditor.prototype 2015-11-06 09:56:58 -08:00