Commit Graph

16862 Commits

Author SHA1 Message Date
David Wilson
da22ea8f80 Decaffeinate src/item-registry.coffee 2018-01-22 16:14:25 -08:00
David Wilson
4a151ac210 Fix #14716: Error when deserializing TreeView for project
This change fixes an issue that appears when the user removes the last
project from the workspace and then re-adds it.  At this time an error
is thrown from within ItemRegistry because the PaneContainer that
holds the TreeView in the left-most dock does not clear out its
existing ItemRegistry before deserializing the old TreeView state.

The fix is to create a new ItemRegistry when a PaneContainer is
deserialized so that the previous Pane's items are not retained.
2018-01-22 15:13:37 -08:00
Philip Weiss
429d3cd898 Merge branch 'master' of github.com:atom/atom into fb-pw-decaffeinate-config 2018-01-22 09:57:57 -08:00
Bryant Ung
c100ad0108 Merge pull request #16525 from atom/wl-async-message-box
Use async dialog.showMessageBox
2018-01-21 13:39:48 -08:00
Antonio Scandurra
ef96cc770e Merge pull request #16595 from atom/as-fix-subpixel-aa
Don't break subpixel AA when cursor is at the end of longest line
2018-01-20 17:00:49 +01:00
Antonio Scandurra
ff6dc42fcd Merge pull request #16594 from atom/as-stop-transpiling-core-js-paths
Stop using Babel in Atom Core (benchmarks, exports, src)
2018-01-20 10:30:56 +01:00
Philip Weiss
9bc43bda9b fix small indentation errors 2018-01-19 17:11:16 -08:00
Wliu
056c825d18 Merge branch 'master' into wl-async-message-box 2018-01-19 16:12:37 -05:00
Max Brunsfeld
9f35de4413 Always return an array from AtomApplication.launch 2018-01-19 13:08:49 -08:00
Max Brunsfeld
f7aba5a132 Replace loadState with side-effect-free loadPreviousWindowOptions
Signed-off-by: Nathan Sobo <nathan@github.com>
2018-01-19 13:08:49 -08:00
Max Brunsfeld
744ae36f31 🔥 dead code
Signed-off-by: Nathan Sobo <nathan@github.com>
2018-01-19 11:56:25 -08:00
Max Brunsfeld
fd5f8af292 Fix typo in StorageFolder.clear 2018-01-19 11:52:34 -08:00
Max Brunsfeld
61e53834e6 Make StorageFolder.load, AtomApplication.launch async
Signed-off-by: Nathan Sobo <nathan@github.com>
2018-01-19 11:52:25 -08:00
Max Brunsfeld
e2ad4e6a8b Make StorageFolder.store async
Signed-off-by: Nathan Sobo <nathan@github.com>
2018-01-19 11:37:07 -08:00
Philip Weiss
fc07ad2cd5 Merge branch 'master' of github.com:atom/atom into fb-pw-decaffeinate-config 2018-01-19 11:26:53 -08:00
Philip Weiss
657ef0f16e fix linting issues and remove decaffeinate suggestions 2018-01-19 11:05:43 -08:00
Philip Weiss
43a07bb8b8 remove Array.from(s) and add consts 2018-01-19 11:01:32 -08:00
Philip Weiss
2a54dda3e9 remove Array.from(s) and remove IIFEs 2018-01-19 10:56:23 -08:00
Philip Weiss
86ba6cbfe4 update arguments object to rest args and remove array.from(s) 2018-01-19 10:31:10 -08:00
Philip Weiss
a18200d675 update arguments object to rest args and remove array.from(s) 2018-01-19 10:18:28 -08:00
Linus Eriksson
b7138a0410 Add these changes to the non scheduled code path 2018-01-19 19:11:16 +01:00
Linus Eriksson
e07a9a6387 Merge branch 'master' of https://github.com/atom/atom into b3-failing-seed 2018-01-19 19:08:21 +01:00
Antonio Scandurra
3fbfadde5a Don't break subpixel AA when cursor is at the end of longest line
With the Electron upgrade, something changed in the way characters are
rendered/measured, and that was causing subpixel anti-aliasing to stop
working when cursors were at the end of the longest line.

Every cursor has a width that is calculated in the following way:

* If there's a character after the cursor, the width corresponds to
width of such character.
* Otherwise, the width equals to the "base character width" measured on
a dummy line.

In the latter case, even if we were setting the width of the content
container to account for the width of such cursor, some rounding problem
was causing the cursor to be able to escape the container and thus break
subpixel anti-aliasing.

With this commit, instead of rounding the value we assign to the
container width, we will always ceil it. This ensures that cursors are
always strictly contained within the parent element and resolves the
subpixel anti-aliasing issue.
2018-01-19 11:20:53 +01:00
Antonio Scandurra
e68a2b1eb9 Replace import and export keywords with require and module.exports 2018-01-19 09:43:55 +01:00
Philip Weiss
cb77a4801c add default param to options 2018-01-18 16:51:40 -08:00
Philip Weiss
952052d2e5 update comment spacing issues and add default param 2018-01-18 16:46:00 -08:00
Max Brunsfeld
7c8f73b2d8 Make StorageFolder.clear async 2018-01-18 15:14:35 -08:00
Philip Weiss
1a99a4848c replace function(...) with arrow funcs 2018-01-18 14:52:47 -08:00
Philip Weiss
98dace3372 remove some unnecessary returns 2018-01-18 14:37:51 -08:00
Philip Weiss
e9a4d3ca2a remove guard func and comment 2018-01-18 14:33:48 -08:00
Philip Weiss
acaf8a0316 remove first guards 2018-01-18 14:32:01 -08:00
Philip Weiss
b638562e0c remove call() and var 2018-01-18 13:46:38 -08:00
Philip Weiss
5589b11e92 fix linting rules except for .call() 2018-01-18 13:31:28 -08:00
Max Brunsfeld
400abcba34 Decaffeinate StorageFolder 2018-01-18 12:02:43 -08:00
Max Brunsfeld
9694448f9d Handle concurrent calls to the same channel in ipc helpers 2018-01-18 11:27:27 -08:00
Max Brunsfeld
0390548e2c Make FileRecoveryService async 2018-01-18 11:27:27 -08:00
Philip Weiss
9ebd21658f fix basic linting rules 2018-01-18 11:12:57 -08:00
Max Brunsfeld
a4e011d3b8 Fix foldBufferRow regression 2018-01-18 09:38:30 -08:00
Philip Weiss
dc26cac5ce basic decaffeination of config.js 2018-01-17 16:30:30 -08:00
Wliu
abe5af2168 📝
[ci skip]
2018-01-17 18:26:35 -05:00
Wliu
a9aaf597bc 📝
[ci skip]
2018-01-17 18:06:28 -05:00
Wliu
1e1884ef27 📝
[ci skip]
2018-01-17 18:03:48 -05:00
Ian Olsen
2de6f05d8f Merge pull request #16161 from atom/wl-color-to-string
Add .toString() method for Color objects
2018-01-17 14:51:03 -08:00
Nathan Sobo
9807e56154 Merge pull request #16575 from atom/ns-null-guard-scope-prefix
Null guard auto-prefixing of `.` to scopes for backward compatibility
2018-01-16 12:10:26 -07:00
Nathan Sobo
d93565423a Null guard auto-prefixing of '.' to scopes for backward compatibility
In some cases, packages such as atom-beautify manually construct scope
descriptors with an empty scopes array.
2018-01-16 11:30:27 -06:00
Tony Brix
174672d00b Update all {Repository} to {GitRepository} 2018-01-15 23:34:43 -06:00
Antonio Scandurra
5a3e1d28ca Merge pull request #16546 from atom/as-allow-clicking-scrollbar-with-dock-indicators
Programmatically detect when mouse approaches the edge of a dock
2018-01-15 10:08:26 +01:00
David Wilson
dbd4a0a4c0 Preserve TextEditor settings when language mode changes
This change fixes #13829 which reports that the `softWrapped` setting of
an untitled TextEditor is lost when the buffer is saved to a file.  This
is caused by logic that updates TextEditor settings when the buffer's
language mode changes.

The fix is to preserve any TextEditor settings that would not change when
switching between the previous and current language mode of the buffer.
2018-01-12 13:51:35 -08:00
Antonio Scandurra
8077f46fdf Programmatically detect when mouse approaches the edge of a dock
Previously, we would assign dock elements a minimum width/height of 2
pixels so that we could detect when the mouse approached the edge of a
hidden dock in order to show the chevron buttons. This, however, was
causing confusion for users, who expected that extra space to be
clickable in order to scroll editors located in the center dock.

With this commit we will instead register a global `mousemove` event on
the window right when attaching the workspace element to the DOM (the
event handler is debounced, so this shouldn't have any performance
consequence). Then, when mouse moves, we will programmatically detect
when it is approaching to the edge of a dock and show the chevron button
accordingly. This allows us to remove the `min-width` property from the
dock container element, which eliminates the confusing behavior
described above.
2018-01-12 17:12:55 +01:00
Antonio Scandurra
a7e642e473 Destroy underlying element when resetting or destroying Workspace 2018-01-12 16:06:35 +01:00