Commit Graph

8621 Commits

Author SHA1 Message Date
Max Brunsfeld
20b0fc688d Use assignLanguageMode in TextEditor spec 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
Linus Eriksson
9f83c4b15b And don't focus the test 2017-11-06 23:55:24 +01:00
Linus Eriksson
bea8094765 Make the tests pass 2017-11-06 23:53:55 +01:00
Max Brunsfeld
4ec1d85aad Merge branch 'master' into mb-use-language-mode-api 2017-11-06 11:32:52 -08:00
Max Brunsfeld
6e0b629389 Use async and await in git-repository-spec 2017-11-06 10:57:46 -08:00
Max Brunsfeld
275fb0eb36 Convert GitRepository spec to JS 2017-11-06 10:25:31 -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
Jason Rudolph
935c63932f Merge pull request #16090 from atom/decaf-token-iterator
 Decaffeinate TokenIterator
2017-11-06 09:25:10 -05:00
Jason Rudolph
761fa46863 Merge pull request #16073 from atom/decaf-theme-manager-spec
 Decaffeinate spec/theme-manager-spec.coffee
2017-11-04 08:29:12 -04:00
Max Brunsfeld
e6c3891e62 Assign a language mode in text editor component specs 2017-11-03 15:08:02 -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
Jason Rudolph
3a42785678 Decaffeinate spec/text-utils-spec.coffee 2017-11-03 08:21:01 -04:00
Jason Rudolph
7b5837afb8 Decaffeinate spec/token-iterator-spec.coffee 2017-11-03 07:53:28 -04:00
Michelle Tilley
a3bb0bbb44 Merge pull request #15935 from atom/mkt-core-uri-handlers
Add core URI handlers
2017-11-02 18:40:00 -07:00
Ash Wilson
809a2d6348 Merge pull request #16080 from atom/fb-hw-directory-watcher
Allow directory providers to implement a custom onDidChangeFiles
2017-11-02 18:30:59 -07:00
Michelle Tilley
0267829211 Change the way we test this 2017-11-02 16:45:52 -07:00
Michelle Tilley
fba5fbc42d Merge remote-tracking branch 'origin/master' into mkt-core-uri-handlers 2017-11-02 16:30:29 -07:00
Michelle Tilley
99bef8e7d1 More debugging 2017-11-02 16:09:57 -07:00
Michelle Tilley
444597c845 Let's add some debugging 2017-11-02 15:49:06 -07:00
Michelle Tilley
178756b62a update test 2017-11-02 15:27:59 -07:00
Michelle Tilley
ada75ed1dd Fix bug in test 2017-11-02 14:45:14 -07:00
Michelle Tilley
668397c1d0 Fix flaky test 2017-11-02 14:11:52 -07:00
Nathan Sobo
d0587a0b60 Merge pull request #16075 from atom/fix-select-word
Fix select-word command between word and non-word chararacters
2017-11-02 14:41:39 -06:00
Michelle Tilley
db0fd527ce Add test for core URI handler window-selection logic 2017-11-02 13:35:29 -07:00
Max Brunsfeld
0d6c746572 Add grammar registry as an injected dependency of Project 2017-11-02 12:24:11 -07:00
Max Brunsfeld
1a7ea3322e 🎨 project-spec.js 2017-11-02 12:13:31 -07:00
hansonw
303cf30b51 Allow directory providers to implement onDidChangeFiles for custom pathwatchers 2017-11-02 11:43:33 -07:00
Max Brunsfeld
99f90af427 Convert Selection spec to JS 2017-11-02 09:48:00 -07:00
Nathan Sobo
1e9753d8a5 Fix select-word command between word and non-word chararacters
In #15776, we accidentally stopped passing an option to the wordRegExp
method that caused us to prefer word characters when selecting words at
a boundary between word and non-word characters.
2017-11-02 10:22:22 -06:00
Jason Rudolph
7054eefe1d Decaffeinate spec/theme-manager-spec.coffee 2017-11-02 09:20:08 -04:00
Max Brunsfeld
6277459691 Merge pull request #16066 from atom/mb-decaffeinate-text-editor
Convert TextEditor class to JS
2017-11-01 22:25:44 -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
616ebe71d9 Convert text-editor-spec.coffee to JavaScript 2017-11-01 15:51:14 -07:00
Nathan Sobo
f25570f135 Exclude Shift from keydown events that terminate selection drags 2017-11-01 14:00:43 -06:00
Nathan Sobo
11511f27d5 Don't terminate selection dragging when a modifier key is pressed
This preserves the ability to add selections via ctrl- or cmd-click.
2017-11-01 09:22:38 -06:00
Wliu
b6c804d637 Do not modify menus 2017-11-01 13:59:21 +01:00
Jason Rudolph
3d855b494d Merge pull request #15981 from atom/decaf-tooltip-manager-spec
️ Decaffeinate `spec/tooltip-manager-spec.coffee`
2017-10-26 08:48:55 -04:00
Nathan Sobo
6e55b29331 Merge pull request #15993 from atom/dont-destroy-contained-folds
Preserve folds that are fully contained by the selection when changing selection ranges
2017-10-25 16:36:37 -06:00
Steven Hobson-Campbell
bbb331e1f7 Merge remote-tracking branch 'upstream/master' into tests 2017-10-25 14:14:12 -07:00
Nathan Sobo
d44d6abe53 Merge pull request #15990 from atom/non-asar-legacy-spec-project-path
Don't assign a default project path for package specs that
2017-10-25 12:57:16 -06:00
Nathan Sobo
00242541ae Don't destroy folds that are completely contained within a selection 2017-10-25 12:25:04 -06:00
Nathan Sobo
364964ea0a Always assign a project path outside of bundle for legacy package specs
This prevents package specs that don't have a fixtures directory from
attempting to read files out of a non-existent directory inside the ASAR
bundle, which causes ENOTDIR errors in superstring.

If the spec does not have a parent folder containing a fixtures
directory, we now set the default project path to `os.tmpdir()`.
2017-10-25 10:34:43 -06:00
Wliu
2bf9e4b0c7 Use scope names rather than names
Some languages are not guaranteed to have names
2017-10-25 17:36:21 +02:00
Max Brunsfeld
9a95372613 Merge pull request #15977 from atom/mb-use-language-modes
Move `toggleLineComments` method from TokenizedBuffer to TextEditor
2017-10-24 16:03:21 -07:00
Jason Rudolph
fc620b9e80 🎨 Move helper functions outside of describe block 2017-10-24 09:06:50 -04:00
Jason Rudolph
aa69409b1b 🎨 Prefer arrow function syntax 2017-10-24 09:04:11 -04:00
Jason Rudolph
706f7e3d44 🎨 DS102 Remove unnecessary code created because of implicit returns 2017-10-24 08:58:59 -04:00
Jason Rudolph
76eb993e7e 🎨 DS101 Remove unnecessary use of Array.from 2017-10-24 08:56:20 -04:00