Commit Graph

8699 Commits

Author SHA1 Message Date
Ash Wilson
795c3b27aa
Use type instead of kind 2018-07-24 09:53:14 -04:00
Ash Wilson
dbace171df
Add a kind property to Gutters 2018-07-24 09:37:23 -04:00
Ashi Krishnan
45ab5488ae Remove debugger, test focus, and lint fixes. 2018-07-23 15:59:22 -04:00
Ashi Krishnan
926cf73e63 Tests for new query functions. 2018-07-20 21:22:12 -04:00
Jason Rudolph
457cde4525
Merge pull request #17720 from atom/jr-observe-repositories
Introduce `observeRepositories` and `onDidAddRepository`
2018-07-20 17:06:39 -04:00
Jason Rudolph
2a5f7e20c3
Fix overly-specific assertion
Fixes failing assertions [1] that unnecessarily assumed that the 
repository was cloned using `https://github.com/atom/atom.git` as the 
URL, as opposed to `git@github.com:atom/atom.git` as the URL.

[1] https://circleci.com/gh/atom/atom/7981
2018-07-20 15:15:59 -04:00
Max Brunsfeld
67402229f4
Merge pull request #17717 from atom/mb-tree-sitter-fixes
Fix bugs found when adding ruby tree-sitter grammar
2018-07-20 11:59:50 -07:00
Jason Rudolph
55da0d8f5d
Introduce atom.project.observeRepositories(callback) 2018-07-20 14:05:56 -04:00
Jason Rudolph
806d9311bf
Introduce atom.project.onDidAddRepository(callback) 2018-07-20 14:04:22 -04:00
Max Brunsfeld
ac3bc51c2a Improve criteria for when to fold partial vs entire buffer rows 2018-07-20 10:43:32 -07:00
Max Brunsfeld
137acb2f90 Fix highlighting when parent nodes extend beyond their first and last children 2018-07-20 10:16:19 -07:00
Max Brunsfeld
a283ca365f Fix a ruby folding issue 2018-07-19 17:15:04 -07:00
Max Brunsfeld
e500f933e0
Merge pull request #17702 from atom/fb-rh-text-editor-component-updateClassList
Modify TextEditorComponent updateClassList to always add managed classes to element
2018-07-19 16:27:21 -07:00
Ryan Holinshead
a280019847 Add spec to test that updateClassList does not blow away the managed class names (editor, is-focused, mini) when the element class names are changed.
Released under CC0
2018-07-16 14:58:39 -07:00
Max Brunsfeld
8fa9a45a54 Incorporated injected languages in scope descriptors 2018-07-16 14:17:39 -07:00
Max Brunsfeld
ebd546f572 Fix handling of folds inside highlighted tokens 2018-07-16 14:17:39 -07:00
Max Brunsfeld
a2f831f533 Merge branch 'master' into tree-sitter-injections 2018-07-13 16:10:19 -07:00
Max Brunsfeld
be5020f05f Rework handling of edited ranges 2018-07-13 13:03:56 -07:00
David Wilson
972b11c5d0
Merge pull request #17538 from atom/dw-nightly-releases
Implement RFC 002: Atom Nightly Releases
2018-07-11 10:28:26 -07:00
Lee Dohm
5a6b3c6e99
Merge pull request #17651 from cacheflow/tooltip-should-fade-on-keybaord-event-17431
Tooltip should fade on keybaord event 17431
2018-07-10 13:11:52 -07:00
Ashi Krishnan
ca854cc267 Spec for injected language folding.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@github.com>
2018-07-09 17:17:58 -04:00
Ashi Krishnan
d6669f4337 Folding works, though folding to a particular level doesn't respect nested grammars.
Co-Authored-By: Max <maxbrunsfeld@github.com>
2018-07-09 16:33:24 -04:00
Max Brunsfeld
9484729969 Make select-larger-syntax-node command respect injected languages
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-07-09 11:06:53 -07:00
Lexis Alexander
4d48ea8da2 Fixed failing tests and moved hiding of tooltips on keydown events to tooltip manager. 2018-07-09 00:58:03 -07:00
David Wilson
4527a44315 Merge branch 'master' into dw-nightly-releases 2018-07-06 16:06:24 -07:00
David Wilson
9858800ec0 Mock fs.createWriteStream to fix FileRecoveryService test 2018-07-06 16:04:29 -07:00
Max Brunsfeld
4de1a5c23d
Merge branch 'master' into tree-sitter-injections 2018-07-06 14:03:56 -07:00
Max Brunsfeld
670371c376 Fix propogation of included ranges for injections within injections
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-07-06 13:53:13 -07:00
Matthew Dapena-Tretter
f60f1692fd Reset goal column on all cursor changes
Previously, pressing the home key (move-to-first-character-of-line)
while on an empty line wouldn't clear the goal column. This is because
it was only cleared on cursor *change* and that didn't result in a
change. With this commit, it's *always* cleared. Operations that want
to preserve the goal column can reset it afterwards.
2018-07-05 20:13:59 -07:00
Lexis Alexander
8af3079e0f Hides a tooltip when a user types in the editor.
-This addes a new keydown event that hides a tooltip when keyboard events occur.
-This closes #17431.
2018-07-05 20:00:10 -07:00
Max Brunsfeld
4be923fe32 Merge branch 'master' into tree-sitter-injections 2018-07-05 09:55:31 -07:00
Wliu
06ea494f46 Update Jasmine stacktrace formatting 2018-07-01 17:18:16 -04:00
David Wilson
ec2abbbc92 Possible fix for FileRecoveryService test on Linux 2018-06-30 11:25:14 -07:00
David Wilson
0d6b5d9e73 Fix CommandInstaller tests 2018-06-29 15:32:29 -07:00
Max Brunsfeld
e16e68094f Update highlighting when an injectable tree-sitter grammar is loaded 2018-06-29 14:47:38 -07:00
Max Brunsfeld
60c59c795c Fix highlighting problem when seeking past the end of a syntax tree 2018-06-29 12:53:43 -07:00
Max Brunsfeld
41c124cc13 Define highlight iter's position in terms of tree cursor position
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-28 19:50:57 -07:00
Max Brunsfeld
cdb9529b68 Emit highlight change events when removing injections
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-27 15:40:06 -07:00
Max Brunsfeld
6c85ff84a5 Start parsing right away when constructing a TreeSitterLanguageMode
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-27 14:31:48 -07:00
Max Brunsfeld
613d4d65e9 Add text getter to SyntaxNode
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-27 13:13:08 -07:00
Max Brunsfeld
4d3916f74e Add tests and docs for addInjectionPoint
Also, replace `addInjectionPattern` API with a single `injectionRegExp` 
field on the grammar.

Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-27 12:39:29 -07:00
Max Brunsfeld
c05dcb0bb8 Fix syntax highlighting problems with injected languages
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-26 15:30:03 -07:00
Max Brunsfeld
e60f0f9b60 Get first test for grammar injections passing
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-26 13:46:33 -07:00
David Wilson
d82c3979ac
Merge pull request #17521 from Aerijo/patch-1
Support activation hooks by grammar scope
2018-06-26 12:13:46 -07:00
Max Brunsfeld
37a3ae1491 Start work on Tree-sitter grammar injections
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-22 16:21:32 -07:00
Max Brunsfeld
ed48feda82 Fix Tree-sitter folding bug affecting HTML 2018-06-18 14:41:34 -07:00
Benjamin Gray
e0041c3c24 Add tests for root-scope-used activation hook 2018-06-16 22:50:14 +10:00
Max Brunsfeld
6346f5ec9e Grammar scoring, weigh grammar type higher than content regex match
This fixes another regression introduces in #17468
2018-06-07 16:17:23 -07:00
Max Brunsfeld
0148ee7d9b Always leave room for scrollbars 2018-06-07 14:42:06 -07:00
Max Brunsfeld
70cf900ac0 Make TextEditorComponent tests reliably pass on retina screens 2018-06-07 14:09:31 -07:00
Max Brunsfeld
31f511aae7 Don't boost tree-sitter grammars' score unless they match in some way 2018-06-05 16:00:03 -07:00
Max Brunsfeld
4dbfadd0d5 Make Tree-sitter grammars' contentRegExp work as intended 2018-06-04 17:17:37 -07:00
Lee Dohm
57572d5221
Merge pull request #17008 from saadq/flow-double-slash
allow the use of double slash flow comments
2018-05-29 14:24:59 -07:00
Max Brunsfeld
f6d2d57299 Reparse again if there were changes since the last parse started 2018-05-23 08:11:54 -07:00
Max Brunsfeld
aced30da1f Start work on async parsing 2018-05-23 08:11:54 -07:00
hansonw
1f685768d5 Ensure grammar activation hooks are called after emitting new editors 2018-05-15 11:32:31 -07:00
Max Brunsfeld
7c6312b277 Update assertions about lack of memory-leak in GrammarRegistry specs 2018-04-25 13:17:33 -07:00
David Wilson
5b485dcb4b
Merge pull request #15165 from segevfiner/sf-windows-update-process-env
Recognize Windows cmd or powershell environment in updateProcessEnv
2018-04-25 10:44:29 -04:00
David Wilson
31e9ddad1e
Merge pull request #16864 from atom/fb-mdt-etch-docks
Convert Dock class to Etch
2018-03-30 11:59:08 -07:00
Ash Wilson
1342316e73
Maintain a global Map of ConfigFile instances 2018-03-27 08:54:37 -04:00
Ash Wilson
60033b7db1
🎨 remove extra space 2018-03-27 08:54:16 -04:00
Ash Wilson
7c9463acea
Specs for concurrent opening 2018-03-23 09:14:48 -04:00
saadq
fc45af02ae allow the use of double slash flow comments 2018-03-21 18:07:16 -04:00
Ash Wilson
8fee5f8fb2
Merge remote-tracking branch 'origin/master' into aw/no-really-read-only 2018-03-21 11:55:52 -04:00
Ash Wilson
cf576a0a7e
Verify Buffer-modifying methods on Selection 2018-03-21 11:52:47 -04:00
Ash Wilson
56a3f1bc41
Fill in missing ensureWritable() calls caught by the specs 2018-03-21 09:29:36 -04:00
t9md
38f080ef07 🔥 unnecessary async 2018-03-21 14:28:38 +09:00
t9md
f303d5906e undo/redo restore selection of change-initiated-editor 2018-03-21 14:26:05 +09:00
Ash Wilson
0f30f8d569
Specs for calling buffer modification methods on read-only editors 2018-03-20 16:31:06 -04:00
Antonio Scandurra
26837d65b4 Clip cursor width when soft-wrap is on and cursor is at the end of line
This prevents the parent tile from disabling sub-pixel anti-aliasing.
For some reason, adding `overflow: hidden` to the cursor container
element doesn't solve the issue, so we're adding this workaround
instead.
2018-03-13 12:04:35 +01:00
BoykoAlex
c61b27ba5c Support atom protocol links when links are handled 2018-03-12 22:23:00 -04:00
Philip Weiss
d7eff0ec55
Merge branch 'master' into fb-pw-simple-project-config 2018-03-09 14:06:14 -08:00
Antonio Scandurra
e2c89b29c8
Merge pull request #16428 from ernesto28/resize-pane
Resize pane
2018-03-09 08:38:44 +01:00
Matthew Dapena-Tretter
113453a219 Convert Dock to an etch component 2018-03-06 15:45:29 -08:00
Philip Weiss
685292bb8d fix linting issues 2018-03-06 11:09:58 -08:00
Philip Weiss
062dfdea80 address PR comments 2018-03-06 11:06:22 -08:00
Linus Eriksson
a790f1e3ec Randomize fontSize and lineHeight in the random test
This causes the failure fixed by https://github.com/atom/atom/pull/15831
to be caught by the randomized test more easily
2018-03-05 17:24:19 +01:00
Philip Weiss
232f821c35 remove getProjectSettings 2018-03-01 19:45:40 -08:00
Philip Weiss
3c02ab3621 add more spec 2018-03-01 19:12:53 -08:00
Philip Weiss
d5aaf9117a update with max's suggestions 2018-03-01 19:09:22 -08:00
Philip Weiss
9d95fd613e Merge branch 'fb-pw-simple-project-config' of github.com:atom/atom into fb-pw-simple-project-config 2018-03-01 13:28:25 -08:00
Philip Weiss
9fb756feeb save entire settings object, rather than just the filename 2018-03-01 13:28:16 -08:00
Philip Weiss
8f672b2e5f
Merge branch 'master' into fb-pw-simple-project-config 2018-02-26 17:13:58 -08:00
Philip Weiss
48d3677664 update project api names 2018-02-26 15:45:56 -08:00
Philip Weiss
547b067f3e add callback to onDidReplaceAtomProject and add tests 2018-02-26 14:38:50 -08:00
Jordan Eldredge
fa9c8d1ace
Merge pull request #16661 from captbaritone/context-menu-order-master
Enable packages to control order of context menu items
2018-02-22 09:36:43 -08:00
Segev Finer
6c9387d276 Add tests for recognizing Windows cmd or powershell environment in updateProcessEnv 2018-02-22 13:34:08 +02:00
Max Brunsfeld
2100f90cf4 Provide a default scope descriptor if language mode doesn't provide them 2018-02-21 14:55:58 -08:00
Jordan Eldredge
42e3a5015d Improve spec spacing 2018-02-21 13:14:45 -08:00
Max Brunsfeld
ea8165a1ca Make TreeSitterLanguageMode.scopeDescriptorForPosition accept arrays
Fixes #16808
2018-02-21 10:16:50 -08:00
Max Brunsfeld
1cdb804824 Tweak config APIs for dealing w/ legacy scope aliases 2018-02-20 11:07:45 -08:00
Philip Weiss
bf6a4e3db4 add .atomProject files 2018-02-18 15:03:00 -08:00
Nathan Sobo
e334f0419f
Merge pull request #16753 from billyjanitsch/revert-15487
Stop scaling up small scroll wheel events
2018-02-16 11:58:33 -08:00
Nathan Sobo
f647109474
Merge pull request #15831 from atom/b3-failing-seed
Handle edits that scroll up due to hiding the horizontal scrollbar
2018-02-15 14:32:20 -08:00
Linus Eriksson
63326e969a Unfocus test and always return false to see if this fails on circle 2018-02-15 22:53:29 +01:00
Linus Eriksson
ad6b2131d6 Style the scrollbar in the test 2018-02-15 22:47:33 +01:00
Max Brunsfeld
adbd540029 Only return overridden language ids in .getGrammarOverride 2018-02-15 12:29:48 -08:00
Linus Eriksson
3059d14bd7 Merge remote-tracking branch 'origin/master' into b3-failing-seed 2018-02-15 19:49:58 +01:00
Billy Janitsch
a433e974eb Stop scaling up small scroll wheel events 2018-02-15 10:42:57 -08:00
Max Brunsfeld
3e7e8aecce Handle positions between CR and LF characters in TreeSitterTextBufferInput.seek 2018-02-14 07:49:02 -08:00
Jordan Eldredge
7a60c9920c Allow packages to control the order of context menu items 2018-01-31 16:35:15 -08:00
Wliu
46d9d190c2
Merge pull request #16627 from atom/wl-revert-right-click-move
Revert change to move mouse cursor on right-click
2018-01-26 23:52:59 -05:00
Wliu
7e0635d2c0
Fix spec 2018-01-26 18:41:57 -05:00
Max Brunsfeld
2acaa41e34 Remove trivial test
This doesn't work on CI for reasons related to
fa0bd1e049

It doesn't test anything interesting, so I'm just going to leave it out.
2018-01-26 12:28:09 -08:00
Max Brunsfeld
8f5cecbacd Use a queue to prevent concurrent async writeFile calls 2018-01-26 11:15:35 -08:00
Max Brunsfeld
1d20b8ee1d Start work on routing all config file IO through main process 2018-01-25 20:35:00 -08:00
Max Brunsfeld
34e2d354c2 Fix typo in TreeSitterLanguageMode.onDidChangeHighlighting 2018-01-25 14:02:31 -08:00
Wliu
be24e6edf7
Revert change to move mouse cursor on right-click 2018-01-24 11:22:41 -05: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
Linus Eriksson
04507e9ee2 Use nested arrays instead of Range 2018-01-19 19:09:54 +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
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
Lukas Geiger
16b8c293a1 Add tests for repositoryForDirectorySync
Since `repositoryForDirectory` and `repositoryForDirectorySync` don't
share the same implementation anymore.
2018-01-14 15:23:46 +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
cd84216f11
Merge branch 'master' into wl-rm-safe-clipboard 2018-01-09 21:39:04 -05: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
Wliu
a1668fc953
Remove old clipboard workaround on Linux 2018-01-04 20:59:32 -05:00
Jason Rudolph
5cce2b55bc
Add test for setting tabIndex on atom-text-editor element 2018-01-04 17:55:05 -05:00
Max Brunsfeld
2fa3b65364 Merge branch 'master' into mb-tree-sitter-parsers 2018-01-03 15:20:10 -08:00
Nathan Sobo
5743c41e03
Merge pull request #16282 from atom/io-electron-1.7
Upgrade electron to 1.7.10
2018-01-03 16:19:20 -07:00
Max Brunsfeld
6998c2df8c Merge branch 'master' into mb-tree-sitter-parsers 2018-01-03 14:53:06 -08:00
Max Brunsfeld
733d6381cc Fix handling of {undo: 'skip'} in TextEditor.insertText
Signed-off-by: Nathan Sobo <nathan@github.com>
2018-01-03 13:00:53 -08:00
Max Brunsfeld
629cb206ec Fix handling of empty tokens in TreeSitterHighlightIterator 2018-01-03 09:34:12 -08:00
Max Brunsfeld
aed6248b7b Merge branch 'master' into mb-tree-sitter-parsers 2017-12-29 16:21:54 -08:00
Ford Hurley
065f4c48ec Avoid dependency on shared state
The test was passing only when run in isolation.
2017-12-27 16:37:55 -05:00
Max Brunsfeld
0b6e994ac6 Merge branch 'master' into mb-tree-sitter-parsers 2017-12-27 12:35:51 -08:00
Ford Hurley
3ad3852dd6 Add a test for generated TextEditor ids 2017-12-27 15:16:22 -05:00
Antonio Scandurra
69799d35b2 Delete Chrome 56 workarounds 2017-12-22 14:44:17 +01:00
Antonio Scandurra
011766768a Fix AtomEnvironment tests 2017-12-22 12:05:03 +01:00
Ramon Jimenez
9b1adf8a29 spec descriptions corrected 2017-12-21 18:30:10 -07:00
Ramon Jimenez
08793a2af1 Added tests for one pane resizing 2017-12-21 16:26:34 -07:00
Wliu
84f6203a30
Merge pull request #16322 from atom/wl-more-history-fixes
More history manager fixes in specs
2017-12-21 12:20:06 -05:00
Wliu
1d6549a8e3
Merge pull request #16328 from atom/wl-right-click-selections
Update auxiliary click logic for moving cursors
2017-12-21 12:18:41 -05:00
Max Brunsfeld
c844a253e0 Implement TreeSitterLanguageMode.scopeDescriptorForPosition 2017-12-15 17:15:39 -08:00
Max Brunsfeld
4adfba47cc Support legacyScopeName field on tree-sitter grammars
* Use the field for mapping scope names in GrammarRegistry.grammarForId
* Use the field for adapting legacy scoped settings to work with tree-sitter parsers

Signed-off-by: Nathan Sobo <nathan@github.com>
2017-12-15 16:57:36 -08:00
Max Brunsfeld
f4fa7f910e Merge branch 'master' into mb-tree-sitter-parsers 2017-12-15 09:45:21 -08:00
Max Brunsfeld
e09ee1c1fa Fix error in TreeSitterHighlightIterator.seek 2017-12-15 09:44:45 -08:00
Damien Guard
ca53cf9ec1
Remove the texteditor isModified/isReadOnly handling intended for unsavable edit buffers as causes issues with vim-mode-plus 2017-12-13 09:17:30 -08:00
Max Brunsfeld
43c6f4ccb0 Merge branch 'master' into mb-tree-sitter-parsers 2017-12-11 09:18:31 -08:00
Bryant Ung
be3551cd18
Remove failing test 2017-12-08 16:50:40 -08:00
Bryant Ung
2349d28e5e
update spec for windiws:close event 2017-12-08 14:57:27 -08:00
Bryant Ung
06207e0d0e
remove test to see if build passes 2017-12-08 14:47:07 -08:00
Max Brunsfeld
e669152841
Merge pull request #16074 from UziTech/patch-4
Make notifications.clear public and emit event
2017-12-08 14:20:33 -08:00
Tony Brix
b89bfa26c3
more cleanup 2017-12-08 16:18:06 -06:00
Tony Brix
d28166b1e4
code cleanup 2017-12-08 16:15:51 -06:00
Max Brunsfeld
a7a53f4158 Allow multiple child types to be specified as fold start or end 2017-12-07 17:08:47 -08:00
Max Brunsfeld
ad492ef344 Merge branch 'master' into mb-tree-sitter-parsers 2017-12-07 17:07:18 -08:00
Max Brunsfeld
f712de65d0 Fix nesting level calculation for children of partially-folded nodes
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-12-07 15:30:48 -08:00
Max Brunsfeld
136dc86584 Leave muli-character fold end tokens on their own line
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-12-07 15:29:11 -08:00
Bryant Ung
77f021a24f
Remove unneeded newline 2017-12-07 15:26:15 -08:00
ungb
d1caf26ab5 Add test for storing window dimension on close. 2017-12-07 15:25:26 -08:00
GilTeixeira
be9e4696e6
Updated theme manager specs. 2017-12-07 18:58:52 +00:00
Max Brunsfeld
725d7db7ae Merge branch 'master' into mb-tree-sitter-parsers 2017-12-06 14:56:09 -08:00
Max Brunsfeld
3f775b5505 Fix folding of internal nodes when fold end isn't specified 2017-12-06 11:09:44 -08:00
Max Brunsfeld
f3715779e5 Support contentRegExp field on grammars, to match more than one line
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-12-05 16:26:24 -08:00
Wliu
db392502e4
Always move the cursor on middle-click 2017-12-05 23:54:43 +01:00