Commit Graph

8547 Commits

Author SHA1 Message Date
Max Brunsfeld
c8c4e4fa3d Delete redundant test for on atom.onUpdateAvailable
This test emitted an event in the main process, which caused exceptions 
in all *other* Atom windows 🙀.
2018-07-26 10:23:51 -07:00
Max Brunsfeld
1e2e461e5e Avoid excessive numbers of IPC event listeners in ApplicationDelegate 2018-07-26 10:20:01 -07:00
Jason Rudolph
c52dc23242 Merge pull request #17744 from atom/fix-17535
Teach Pane to always look for a pane item's onDidTerminatePendingState function
2018-07-26 08:44:49 -04:00
Jason Rudolph
84a241cb4e Add failing test to demonstrate the bug identified in #17535 2018-07-24 16:45:37 -04:00
Ashi Krishnan
f91a4bb295 Merge pull request #17721 from atom/get-range-for-syntax-node-with-selector
Add TreeSitterLanguageMode::getSyntaxNodeContainingRange and TreeSitterLanguageMode::getSyntaxNodeAtPosition
2018-07-24 16:00:54 -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