Antonio Scandurra
645252e0c2
👕 Fix linter error
2017-12-22 14:13:51 +01:00
Wliu
4ed59b3ee7
📝 Update TextEditor::scopeDescriptorForBufferPosition docs
...
[ci skip]
2017-12-21 21:20:31 -05: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
Katrina Uychaco
b3cee41f28
Merge remote-tracking branch 'origin/master' into ku-add-readonly-editor-attribute
2017-12-05 14:02:39 -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
Justin Ratner
d4dd08da22
Use buildIndentString method instead of hard-coding spaces
2017-12-04 12:51:01 -07:00
Katrina Uychaco
aeb9af63df
Store readOnly state on the TextEditor model
2017-11-28 21:14:40 -08:00
Max Brunsfeld
607ed74e7b
Rename TokenizedBuffer to TextMateLanguageMode
2017-11-28 16:57:06 -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
d1468fddd9
Implement .setGrammar in terms of .setLanguageMode
2017-11-22 16:27:29 -08:00
Max Brunsfeld
59ed55e898
Don't deprecate old TextEditorRegistry methods yet
2017-11-22 16:11:39 -08:00
Max Brunsfeld
cbdae916dd
Don't deprecate setGrammar yet
2017-11-22 11:18:09 -08:00
Max Brunsfeld
bd4cc42daf
Set the visible state on newly-assigned language modes
2017-11-22 09:35:39 -08:00
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