Commit Graph

16510 Commits

Author SHA1 Message Date
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
Tony Brix
076308ab73 fix linting 2017-11-16 00:10:13 -06: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
Nathan Sobo
6227ecebed Merge pull request #16092 from atom/autoscroll-after-fold-or-unfold
Autoscroll to cursor position after folding or unfolding
2017-11-07 11:33:22 -07:00
Jason Rudolph
311055c575 Merge pull request #16091 from atom/decaf-text-utils
 Decaffeinate text-utils
2017-11-07 08:12:59 -05: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
52f70997b6 Handle grammars with no name 2017-11-06 17:07:23 -08:00
Max Brunsfeld
3d36455885 Make getNonWordCharacters take a position 2017-11-06 17:07:23 -08:00
Linus Eriksson
77c685a1b7 Use wheelDelta instead of delta
In Atom 1.19 we changed the scroll handler to use deltaX and deltaY
instead of wheelDeltaX/wheelDeltaY. wheelDelta is larger so this caused
the scrolling speed to slow down. This change in speed was especially
noticable on Linux
2017-11-06 22:50:53 +01:00
Max Brunsfeld
96e4018ef7 Resubscribe to grammar events after clearing grammar registry 2017-11-06 12:36:58 -08:00
Max Brunsfeld
4ec1d85aad Merge branch 'master' into mb-use-language-mode-api 2017-11-06 11:32:52 -08:00
Max Brunsfeld
85f8b13a62 🎨 clean up git-repository.js 2017-11-06 09:45:43 -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