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
c4b38c615f
Fix misplaced default chunkSize property
2017-11-29 13:10:00 -08:00
Max Brunsfeld
1a1ee134cf
Merge pull request #16297 from atom/mb-remove-grammar-registry-inheritance
...
Remove GrammarRegistry's inheritance from first-mate's GrammarRegistry
2017-11-29 12:26:02 -08:00
Max Brunsfeld
3053069ab1
Merge pull request #16199 from atom/mb-decaffeinate-package
...
Convert Package to JS
2017-11-29 11:45:39 -08:00
Max Brunsfeld
515ed5602e
Add a shim for the GrammarRegistry.grammars property
2017-11-29 11:23:56 -08:00
Max Brunsfeld
1af6da0b76
Don't use underscore in Package
2017-11-29 11:08:54 -08:00
Max Brunsfeld
9006d05d4f
Remove GrammarRegistry's inheritance from first-mate's registry
2017-11-29 10:36:49 -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
e08091f193
Make assignLanguageMode take a language id instead of a language name
2017-11-28 11:14:29 -08:00
Max Brunsfeld
bffdeb461f
Remove handling of old grammarOverridesByPath serialization key
2017-11-27 09:36:43 -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
af8848fb86
Document new GrammarRegistry methods
2017-11-22 15:53:13 -08:00
Max Brunsfeld
4810d13094
Fix memory leak in .maintainLanguageMode
2017-11-22 11:41:55 -08:00
Max Brunsfeld
cbdae916dd
Don't deprecate setGrammar yet
2017-11-22 11:18:09 -08:00
Max Brunsfeld
fd292f57f6
Fix deprecated TextEditorRegistry methods
2017-11-22 09:37:31 -08:00
Max Brunsfeld
bd4cc42daf
Set the visible state on newly-assigned language modes
2017-11-22 09:35:39 -08: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
Max Brunsfeld
93f5ab4780
Don't set TextEditor class's schedule in AtomEnvironment constructor
...
We construct multiple AtomEnvironment instances in the tests. I don't
know how the tests ever worked with this code in there.
2017-11-21 13:32:28 -08:00
Wliu
ebf23ec3e1
Do not clobber recent project history when running specs
2017-11-21 21:19:05 +01: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
a18848e569
👕
2017-11-20 17:10:21 -08:00
Max Brunsfeld
aa1f5dde83
Fix TextEditor tests
2017-11-20 16:49:56 -08:00
Max Brunsfeld
d52c4bc33b
Serialize the grammar registry
2017-11-20 14:50:00 -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
Max Brunsfeld
f6c2e0eba4
Allow setting the null language mode w/ assignLanguageMode(buffer, null)
2017-11-20 09:48:00 -08:00
Wliu
bace929083
Use native Array.isArray in application-delegate
2017-11-17 23:08:19 +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
Michelle Tilley
b3e9989cd2
Translate line and column numbers from URI handlers
...
The URI query string should specify line and column numbers as a user
would, starting at 1, while the Atom API starts at 0.
2017-11-16 14:26:21 -08:00
Max Brunsfeld
00bea43840
📝 Fix comment on GrammarRegistry class
2017-11-15 17:15:50 -08:00
Max Brunsfeld
f3ff490836
Convert Package to JS
2017-11-15 15:51:48 -08:00
Max Brunsfeld
653ecd7f52
Merge branch 'master' into mb-use-language-mode-api
2017-11-15 12:52:36 -08:00
Wliu
3569a11574
Rework didMouseDownOnContent to always position cursor
2017-11-15 12:42:27 +01:00
Wliu
e941dbd9be
Make ContextMenu async
2017-11-15 11:51:54 +01:00
Nathan Sobo
000d0d1a5e
Auto-scroll after folding/unfolding via a command
...
In my previous attempt in #16092 , I was autoscrolling in the TextEditor
methods themselves. But this could lead to undesirable autoscrolling
when folding with the mouse.
2017-11-14 12:29:32 -07: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
Nathan Sobo
e21c757682
Merge pull request #16114 from atom/b3-scroll-linux
...
Use wheelDelta instead of delta in the scroll handler
2017-11-14 06:45:48 -07:00
Wliu
4f6e8ed5f3
📝
...
[ci skip]
2017-11-13 18:57:29 +01:00
Wliu
feb40fa97a
📝 onDidChangeActiveThemes returns a Disposable
2017-11-12 22:42:10 +01:00
Jason Rudolph
dd8173fc35
Merge pull request #16144 from atom/fix-jquery-handling-in-tooltip-manager-add-method
...
Fix handling of jQuery objects in `TooltipManager.add` method
2017-11-09 11:05:47 -05:00
Max Brunsfeld
6c99872040
Merge pull request #16141 from atom/mb-decaf-atom-environment
...
Convert AtomEnvironment to JS
2017-11-08 22:33:01 -08:00
Max Brunsfeld
fed595b49f
Use async/await in AtomEnvironment
2017-11-08 21:42:00 -08:00
Max Brunsfeld
188142bac3
Suppress lint warning for Promise.prototype monkey patch
2017-11-08 16:58:30 -08:00
Max Brunsfeld
bc774773f7
Convert AtomEnvironment to JS
2017-11-08 16:44:46 -08:00
Jason Rudolph
0e82b8bb42
🐛 Fix #16135
2017-11-08 17:56:45 -05:00
Max Brunsfeld
ff8ecf1a49
Fix errors when passing subword regex to native find methods
2017-11-08 14:00:00 -08:00