Commit Graph

8488 Commits

Author SHA1 Message Date
Wliu
4ac6b720ff Merge pull request #16256 from atom/wl-more-reporter-work
Improve spec stack traces
2017-12-04 22:18:08 +01:00
Damien Guard
abc0d3c534 Remove stray console log 2017-12-04 13:13:03 -08:00
Damien Guard
70e773fa7b Ensure read-only text editors are not considered 'modified'. Also clear read-only flag on successful save. 2017-12-04 13:12:08 -08:00
Max Brunsfeld
8a1c7619f3 Add test for .select{Larger,Smaller}SyntaxNode 2017-12-04 12:07:05 -08:00
Max Brunsfeld
98e11673aa Tweak TreeSitterLanguageMode folding configuration 2017-12-04 11:40:44 -08:00
Max Brunsfeld
4e38b61a5e Optimize TreeSitterLanguageMode.isFoldableAtRow 2017-12-04 11:02:24 -08:00
Max Brunsfeld
6282cd639a Add tree-sitter highlighting test with nested scopes 2017-12-04 10:18:38 -08:00
Max Brunsfeld
6e2ac3548f Ensure that all opened editors' buffers are added to the project
Assigning a language mode happens when adding a buffer to the project,
so we need to guarantee this happens to all buffers used by visible editors.
2017-12-01 09:58:19 -08:00
Max Brunsfeld
49d8d94218 🎨 workspace-spec.js 2017-12-01 09:47:20 -08:00
Max Brunsfeld
7665c34496 Start on TreeSitterLanguageMode spec 2017-11-30 17:13:30 -08:00
Max Brunsfeld
273d708a48 Add preference for using Tree-sitter parsers 2017-11-30 14:21:53 -08:00
Max Brunsfeld
894ce56821 Don't use JS as an example in removeGrammar test 2017-11-30 09:39:30 -08:00
Max Brunsfeld
9762685106 Start work on loading tree-sitter grammars in GrammarRegistry 2017-11-30 09:31:08 -08:00
Max Brunsfeld
5c1a49fccf Add initial TreeSitterLanguageMode implementation
Much of this is from the tree-sitter-syntax package.
Also, add a dependency on the tree-sitter module.
2017-11-29 17:14:34 -08:00
Katrina Uychaco
909caa2a59 Add 'readonly' attribute to <atom-text-editor> element 2017-11-28 20:01:31 -08:00
Max Brunsfeld
607ed74e7b Rename TokenizedBuffer to TextMateLanguageMode 2017-11-28 16:57:06 -08:00
Max Brunsfeld
74a2609216 Ensure stateStore isConnected for .shouldPromptToSave tests 2017-11-28 12:13:09 -08:00
Max Brunsfeld
61ac366491 Replace TokenizedBuffer.setVisible with simpler .startTokenizing
We will still wait to tokenize a buffer until it is visible in *some*
tab, but we no longer enable and disable tokenization as different
editors become visible.
2017-11-28 12:12:40 -08:00
Max Brunsfeld
e08091f193 Make assignLanguageMode take a language id instead of a language name 2017-11-28 11:14:29 -08:00
Max Brunsfeld
afc4245971 Make TokenizedBuffer behave consistently when tokenizeInBackground is mocked 2017-11-22 15:30:28 -08:00
Max Brunsfeld
4810d13094 Fix memory leak in .maintainLanguageMode 2017-11-22 11:41:55 -08:00
Max Brunsfeld
bd4cc42daf Set the visible state on newly-assigned language modes 2017-11-22 09:35:39 -08:00
Wliu
6633714e11 Fix regression and minimize chance for incorrect replacements 2017-11-22 00:31:28 +01:00
Wliu
34df49b491 More cleanup 2017-11-22 00:02:42 +01:00
Max Brunsfeld
578b4f0281 Merge branch 'master' into mb-use-language-mode-api 2017-11-21 15:00:22 -08:00
Max Brunsfeld
be3010e8f7 Use atom's null grammar when assignLanguageMode is called w/ null 2017-11-21 14:59:42 -08:00
Wliu
64b4954492 Improve spec stack traces 2017-11-21 23:35:26 +01:00
Wliu
ebf23ec3e1 Do not clobber recent project history when running specs 2017-11-21 21:19:05 +01:00
Max Brunsfeld
218eb57f3a Avoid duplicate attachToDOM call 2017-11-21 12:00:54 -08:00
Max Brunsfeld
cbd55cd921 Fix incorrectly written async test 2017-11-21 11:57:57 -08:00
Max Brunsfeld
aa1f5dde83 Fix TextEditor tests 2017-11-20 16:49:56 -08:00
Max Brunsfeld
6bf32b5ce8 Fix Workspace spec 2017-11-20 16:45:05 -08:00
Max Brunsfeld
cb89562f63 Avoid TokenizedBuffer.setGrammar in TokenIterator test 2017-11-20 16:34:44 -08:00
Max Brunsfeld
d52c4bc33b Serialize the grammar registry 2017-11-20 14:50:00 -08:00
Max Brunsfeld
b2fcb0cbe2 Integrate the 2 grammar registry specs 2017-11-20 13:53:19 -08:00
Max Brunsfeld
8a52fd1237 Get TokenizedBuffer tests passing 2017-11-20 13:33:09 -08:00
Max Brunsfeld
20bf705000 Destroy editors after text editor component specs
This only now became necessary because TokenizedBuffer now *always*
receives a reference to the Atom config on construction, and always
tries to read from it when isFoldableAtRow is called, which can happen
after test cleanup due to resize observers.
2017-11-20 11:59:21 -08:00
Wliu
f277b650e3 Update Pane specs to account for async save dialog behavior 2017-11-20 19:30:39 +01:00
Max Brunsfeld
f6c2e0eba4 Allow setting the null language mode w/ assignLanguageMode(buffer, null) 2017-11-20 09:48:00 -08:00
Wliu
0ba6517a41 Update Workspace specs for async confirm 2017-11-19 01:21:15 +01:00
Wliu
4fdee7bb8f Update Pane specs for async confirm 2017-11-19 01:12:23 +01:00
Wliu
f960b43782 Update PaneContainer specs for async confirm 2017-11-19 01:06:20 +01:00
Wliu
f6abe9a555 Oops 2017-11-19 01:05:53 +01:00
Wliu
b5c4336a30 Update CommandInstaller specs for async confirm 2017-11-19 01:02:23 +01:00
Wliu
58f351e598 Update AtomEnvironment specs for async confirm 2017-11-19 01:02:10 +01:00
Wliu
f4bdbe87a0 Update message box mocking 2017-11-19 01:01:45 +01:00
Max Brunsfeld
3d5cc6993c Merge branch 'master' into mb-use-language-mode-api 2017-11-17 14:03:37 -08:00
Michelle Tilley
cb1d529d64 Merge remote-tracking branch 'origin/master' into wl-async-context-menu 2017-11-17 10:16:30 -08:00
Tony Brix
fe4df885d6 add tests 2017-11-16 00:29:24 -06:00
Max Brunsfeld
91d4f53b28 Use assignLanguageMode in TextEditorComponent spec 2017-11-15 17:15:32 -08:00