Commit Graph

68 Commits

Author SHA1 Message Date
Max Brunsfeld
19aeabf312 Set the language mode when constructing a TextEditor w/ no buffer 2017-11-21 11:04:51 -08:00
Max Brunsfeld
aa1f5dde83 Fix TextEditor tests 2017-11-20 16:49:56 -08:00
Max Brunsfeld
8a52fd1237 Get TokenizedBuffer tests passing 2017-11-20 13:33:09 -08:00
Max Brunsfeld
503d239bc3 Make the language mode the source of nonWordCharacters 2017-11-20 09:48:00 -08:00
Nathan Sobo
ad1328db5a Revert "Merge pull request #16092 from atom/autoscroll-after-fold-or-unfold"
This reverts commit 6227ecebed, reversing
changes made to 311055c575.
2017-11-14 12:17:50 -07:00
Max Brunsfeld
de27d4e0dc Pass tabLength to getFoldableRangeContainingPoint 2017-11-06 17:18:53 -08:00
Max Brunsfeld
70cca84599 Pass tabLength to suggestedIndent methods for now 2017-11-06 17:18:53 -08:00
Max Brunsfeld
fe6b385c97 Move largeFileMode logic to TokenizedBuffer 2017-11-06 17:07:23 -08:00
Max Brunsfeld
3d36455885 Make getNonWordCharacters take a position 2017-11-06 17:07:23 -08:00
Max Brunsfeld
17c90ea464 Serialize text editors' tab lenghts 2017-11-06 09:37:03 -08:00
Max Brunsfeld
113b563b7e Make several languageMode APIs optional in TextEditor 2017-11-06 09:36:08 -08:00
Max Brunsfeld
351f96d5dd Iterate on GrammarRegistry APIs
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-11-06 09:36:06 -08:00
Max Brunsfeld
bfffde9a76 Don't require that language modes have a getGrammar method 2017-11-03 11:48:15 -07:00
Nathan Sobo
a1e8d25e55 Autoscroll to cursor position after folding or unfolding
There were several different fold/unfold code paths, so I decided to
weave simple autoscroll assertions into the existing tests.
2017-11-03 09:57:29 -06:00
Max Brunsfeld
140a783011 Start work on switching to new language mode API 2017-11-03 00:12:33 -07:00
Max Brunsfeld
96e6b3a2ce Fix error in .getLongTitle when editor isn't in the workspace 2017-11-01 16:51:01 -07:00
Max Brunsfeld
af82dff75b Fix error in .getLongTitle when editors have no path 2017-11-01 16:15:32 -07:00
Max Brunsfeld
e9e23a2d09 Convert text-editor.coffee to JS
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-11-01 15:19:52 -07:00