Commit Graph

16156 Commits

Author SHA1 Message Date
Lee Dohm
cf6787de5f Merge pull request #15606 from atom/publicize-release-channel
Make the atom.getReleaseChannel function public
2017-09-10 14:17:15 -07:00
Lee Dohm
ea249777dd Make the atom.getReleaseChannel function public 2017-09-10 13:32:02 -07:00
Wliu
1a4e6c4c85 Merge pull request #15603 from jsoref/spelling
Spelling
2017-09-10 18:29:38 +02:00
Josh Soref
2947d6b81d spelling: workspace 2017-09-10 15:46:41 +00:00
Josh Soref
c49c62aaa7 spelling: visually 2017-09-10 15:46:41 +00:00
Josh Soref
e39970cd1a spelling: visibility 2017-09-10 15:46:41 +00:00
Josh Soref
2ae8ec19d5 spelling: successfully 2017-09-10 15:46:41 +00:00
Josh Soref
4fbae9f458 spelling: stylesheet 2017-09-10 15:46:41 +00:00
Josh Soref
e6f3aeeb2e spelling: responsibility 2017-09-10 15:46:41 +00:00
Josh Soref
26d44a2ffd spelling: registry 2017-09-10 15:46:40 +00:00
Josh Soref
ef946374b4 spelling: multiple 2017-09-10 15:46:40 +00:00
Josh Soref
54156a8f77 spelling: javascript 2017-09-10 15:46:40 +00:00
Josh Soref
ad003695b5 spelling: intersecting 2017-09-10 15:46:39 +00:00
Josh Soref
faa39508e6 spelling: interpretation 2017-09-10 15:46:39 +00:00
Josh Soref
cb3fb74d6b spelling: horizontal 2017-09-10 15:46:39 +00:00
Josh Soref
9623acf633 spelling: compatible 2017-09-10 15:46:39 +00:00
Josh Soref
cbc4823cde spelling: combinations 2017-09-10 15:46:38 +00:00
Josh Soref
a92178b876 spelling: asynchronous 2017-09-10 15:46:38 +00:00
Damien Guard
69eb2d541d :t-shirt: 2017-09-09 09:28:43 -07:00
Damien Guard
a21480f441 Better error handling on passing invalid packs 2017-09-08 19:00:27 -07:00
Damien Guard
dab150ad6c 👕 2017-09-08 19:00:27 -07:00
Damien Guard
524d483610 Ensure non-async deactivate is run syncronously without await 2017-09-08 19:00:27 -07:00
Damien Guard
468f4a47a9 Fix another two tests 2017-09-08 19:00:26 -07:00
Damien Guard
0a2ff530ff Get more tests working after async 2017-09-08 19:00:26 -07:00
Damien Guard
9898f6b36c Ensure atom.global.reset returns a promise 2017-09-08 19:00:26 -07:00
Damien Guard
69e631d509 Allow Promises to be returned by a package deactivate method 2017-09-08 19:00:25 -07:00
Antonio Scandurra
c1981ffb44 Correctly remove block decorations whose markers have been destroyed
In https://github.com/atom/atom/pull/15503 we mistakenly assumed
`marker.isValid` accounted only for the validity of the marker. However,
that method returns `false` also for markers that are valid but have
been destroyed. As a result, the editor component was mistakenly not
removing block decorations associated with such markers.

With this commit we will rely on the local `wasValid` variable instead.
If its value is `true`, it means that the block decoration has been
accounted for in the `lineTopIndex` and must, as a result, be cleaned up
in case the marker or the decoration gets destroyed.
2017-09-07 17:52:04 +02:00
Antonio Scandurra
4b3fa34d4e Merge pull request #15580 from atom/as-update-scrollbars-on-detach-reattach
Flush scroll position to dummy scrollbar components on re-attach
2017-09-07 16:39:16 +02:00
Antonio Scandurra
806b652da4 Flush scroll position to dummy scrollbar components on re-attach
This prevents the dummy scrollbars from resetting their position to `0`
when the editor element is moved elsewhere in the DOM (e.g. when
splitting a pane item).
2017-09-07 15:05:42 +02:00
Indrek Ardel
499ef16013 Default re-used element class name to empty string 2017-09-07 14:48:35 +03:00
Wliu
f00568bde5 Update ScopeDescriptor links 2017-09-06 20:56:22 +02:00
Antonio Scandurra
7bd2c670e1 Merge pull request #15546 from atom/as-never-autoscroll-when-clicking-on-content
Don't autoscroll when using the mouse to add, delete or move selections
2017-09-06 02:12:15 -07:00
Antonio Scandurra
9bbd71219d Merge pull request #15550 from atom/as-fix-rendering-out-of-range-decorations
Don't render block decorations located outside the visible range
2017-09-06 02:11:16 -07:00
Antonio Scandurra
20ea98ad41 Don't render block decorations located outside the visible range
Previously, when trying to use block decorations on non-empty markers,
Atom could sometimes throw an error if such markers ended or started at
a position that was not currently rendered.

In fact, even if we already restricted the decoration query to markers
that intersected the visible row range, markers that were only partially
visible would still be considered for rendering. If, depending on the
`reversed` property, we decided to render the tail or head of the marker
in question and this was outside the viewport, Atom would throw the
aforementioned exception.

This commit addresses the above issue by explicitly ignoring block
decorations that are located on rows that are not yet rendered.
2017-09-05 18:05:35 +02:00
Damien Guard
e4e758110a Load non-dev packages in dev mode too, found by @as-cii 2017-09-05 08:44:09 -07:00
Antonio Scandurra
91bb1e12c7 Don't autoscroll when using the mouse to add, delete or move selections 2017-09-05 15:26:54 +02:00
Antonio Scandurra
6e919e7acd Don't remeasure invalid block decorations
This fixes an uncaught exception that was being thrown after
invalidating a marker and resizing the editor.
2017-09-02 11:11:27 +02:00
Damien Guard
f3161b06f7 Merge pull request #15522 from atom/dg-async-package-deactivation
Convert package-manager from Coffeescript to JavaScript
2017-09-01 12:34:20 -07:00
Damien Guard
e0606d5e2f 🎨 2017-09-01 10:04:13 -07:00
Damien Guard
c7e56d6366 Avoid ES6 because we run use this code in apm from node 2017-09-01 08:47:24 -07:00
Damien Guard
098231caf9 Convert package-manager from Coffeescript to JavaScript 2017-08-31 19:34:16 -07:00
Bryant Ung
96b3af143d Merge pull request #15163 from atom/fb-wb-modal-focus
Automatically manage focus for modal panels
2017-08-31 17:09:02 -07:00
Antonio Scandurra
53135c5d0d Call this.didMouseDown instead of props.didMouseDown in dummy scrollbars 2017-08-31 14:23:11 +02:00
Antonio Scandurra
3e10a84d49 Merge pull request #15506 from atom/as-honor-scrollbar-visible-only-when-scrolling
Honor macOS "Show scrollbars only when scrolling" setting
2017-08-31 11:29:26 +02:00
Antonio Scandurra
f85deec482 Merge pull request #15503 from atom/as-fix-invalidated-block-decoration-markers
Fix rendering of block decorations for invalid markers
2017-08-31 11:29:14 +02:00
Antonio Scandurra
12e6740c9c Merge pull request #15487 from atom/as-scroll-sensitivity
Always honor scroll intent on mousewheel
2017-08-31 11:28:16 +02:00
Antonio Scandurra
ac9cc72845 Merge pull request #15486 from atom/as-highlights-outside-of-tiles
Move highlight decorations outside of tiles
2017-08-31 11:26:15 +02:00
Bryant Ung
3bf8344519 Merge branch 'master' into fb-wb-modal-focus 2017-08-30 17:06:29 -07:00
Antonio Scandurra
50088b16c9 Honor macOS "Show scrollbars only when scrolling" setting
Previously, we were hiding scrollbars when their height/width was 0. On
macOS, however, users can decide to only show scrollbars while
scrolling, which causes Atom to detect scrollbars as being invisible
during measurements. As a result, we were mistakenly setting the
visibility property to `hidden` when this setting was on, thus
preventing users from seeing the scrollbar on scroll.

With this commit we are changing the dummy scrollbar components to only
become invisible when the content is not scrollable rather than when the
scrollbars have zero width or height.

As part of this, we have also renamed the
`is{Horizontal,Vertical}ScrollbarVisible` functions to
`canScroll{Horizontally,Vertically}`, to better express their intent.
2017-08-30 17:11:40 +02:00
Antonio Scandurra
af42b4b86f Move DummyScrollbarComponent into its own GPU layer
This was fixed back in bac9922 and, due to the same reasons, not having
a separate layer causes the "Show scrollbars only when scrolling"
setting on macOS to not work properly.
2017-08-30 16:11:21 +02:00