Commit Graph

8430 Commits

Author SHA1 Message Date
Max Brunsfeld
34e2d354c2 Fix typo in TreeSitterLanguageMode.onDidChangeHighlighting 2018-01-25 14:02:31 -08:00
Max Brunsfeld
8ba04f0f0c
Merge pull request #16593 from atom/fb-pw-decaffeinate-config
decaffeinate config.coffee and config-spec.coffee
2018-01-23 22:52:43 -08:00
Damien Guard
802d15d94c
Rely on automatic temp tracking cleanup for GitRepository tests to avoid nsfw races 2018-01-23 13:47:51 -08:00
David Wilson
6d09a5257a Fix #16538: Middle-click pastes into read only editor on Linux
This change fixes an issue where users on Linux are able to paste into
read only TextEditors by clicking the middle mouse button.  The fix is
to check for whether the TextEditorComponent's isInputEnabled method
returns true before pasting with middle click on Linux.
2018-01-22 18:50:07 -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
Philip Weiss
b3d1907594 refactor inline assignments 2018-01-22 09:53:22 -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
8e74d06f64 Fix tests 2018-01-20 11:09:26 +01:00
Philip Weiss
1b89f49315 fix standardjs linting issues 2018-01-19 17:08:16 -08:00
Philip Weiss
566aca3ce0 remove more function keywords 2018-01-19 16:54:53 -08:00
Philip Weiss
75199fab16 remove function keywords and returns 2018-01-19 16:50:37 -08: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
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
7c8f73b2d8 Make StorageFolder.clear async 2018-01-18 15:14:35 -08:00
Max Brunsfeld
0390548e2c Make FileRecoveryService async 2018-01-18 11:27:27 -08:00
Max Brunsfeld
a4e011d3b8 Fix foldBufferRow regression 2018-01-18 09:38:30 -08: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
Antonio Scandurra
176552fb7b Change assertion to reflect the new programmatic dock revealing 2018-01-15 09:48:42 +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
a5c0223592 Fix race condition between opening new files and restoring window state
This commit fixes a race condition in the
`attemptRestoreProjectStateForPaths` function that could cause a file to
be opened more than once within the same workspace pane.

In particular, when opening some file into an empty window, Atom tries
to recover the state for the project containing the file (if there is
one). However, we were previously not waiting until the
`AtomEnvironment`'s state had been fully deserialized before trying to
load the requested file into the workspace. If the same file also
existed in the serialized representation of the workspace, it could end
up being opened twice.

With this commit we will now wait until the environment has been fully
deserialized before honoring the user's request of loading new files
into an empty window. Also, tests have been restructured to test more
thoroughly this interaction.
2018-01-10 13:22:09 +01:00
Wliu
c84eeb3ae0
Merge branch 'master' into wl-async-save-dialog 2018-01-09 17:20:57 -05:00
Wliu
cd123456ca
Merge pull request #16229 from atom/wl-async-confirm
Make atom.confirm async
2018-01-09 17:19:51 -05:00
Antonio Scandurra
450d6b12fa Don't add fully-contained selections above/below
This is slower than it needs to be and creates behavioral problems when
selections get merged in some cases.

Signed-off-by: Nathan Sobo <nathan@github.com>
2018-01-09 16:47:26 +01:00
Nathan Sobo
dced608f47
Merge pull request #14931 from UziTech/atom-commands-onDidFinish
atom.commands.onDidFinish
2018-01-09 06:12:45 -07:00
Tony Brix
54d011450f listener calls are reversed 2018-01-08 20:02:34 -06:00
Tony Brix
aabbea6542 jasmine.useRealClock() 2018-01-08 19:41:34 -06:00
Max Brunsfeld
3f710a1398 Merge pull request #12783 from vedharish/editor_delete_line 2018-01-08 15:58:22 -08:00
Tony Brix
ec07003d39 fix timeout 2018-01-08 17:14:49 -06:00
Tony Brix
2f7de33ff0 add return value tests 2018-01-08 16:38:25 -06:00
Nathan Sobo
4926fe466c Move highlights container into lines for theme compatibility 2018-01-08 13:16:46 -07:00
Wliu
5c3d6abb12
Merge branch 'master' into wl-async-confirm 2018-01-07 21:08:32 -05:00
Wliu
b69631a444
Merge branch 'master' into wl-async-save-dialog 2018-01-07 20:55:16 -05:00
Max Brunsfeld
fe4d14444f Merge branch 'master' into mb-tree-sitter-parsers 2018-01-05 19:59:52 -08:00
Max Brunsfeld
386b786d93 Let 'atom --wait -a folder' exit due to removing the project folder 2018-01-05 17:50:11 -08:00
Max Brunsfeld
1f4ccf3024 Allow existing windows to be reused when running --wait 2018-01-05 17:50:11 -08:00
Max Brunsfeld
7f76320387 Backfill a test for existing --wait functionality 2018-01-05 17:50:11 -08:00
Bryant Ung
911b805065
Merge pull request #16295 from xfontes42/master
Add event handler for window resizing.
2018-01-05 17:01:15 -08:00
Bryant Ung
88e330d577
Remove trailing whitespace 2018-01-05 15:50:48 -08:00
Bryant Ung
8ec54a04e2
Add resize event spec 2018-01-05 15:49:37 -08:00
Max Brunsfeld
22766b93e7
Merge pull request #16495 from atom/mb-decaf-main-process
Decaffeinate some main process files
2018-01-05 14:25:51 -08:00
Tony Brix
327ee33fac move test 2018-01-05 15:25:13 -06:00
Max Brunsfeld
b645852142 Don't rely on promise resolution timing in main process spec 2018-01-05 13:01:33 -08:00
Tony Brix
03d16c4f5d return promise.all from dispatch 2018-01-05 14:53:59 -06:00
Tony Brix
f66ae07470 fix tests 2018-01-05 14:53:59 -06:00
Tony Brix
b02aa369ca rebase atom.commands.onDidFinish 2018-01-05 14:53:59 -06:00
Max Brunsfeld
1de37810f0 Rename hasQuitted -> didQuit 2018-01-05 12:11:10 -08:00
Max Brunsfeld
9b917dd8c8 Don't use babel for atom-application test 2018-01-05 12:11:10 -08:00
Jason Rudolph
5cce2b55bc
Add test for setting tabIndex on atom-text-editor element 2018-01-04 17:55:05 -05:00