Commit Graph

290 Commits

Author SHA1 Message Date
Max Brunsfeld
d88ae67a20 Update fixture package to use a tree-sitter grammar 2018-09-04 11:37:30 -07:00
Max Brunsfeld
760b38c54b Support a single scope name field on Tree-sitter grammars
* Remove the `legacyScopeName` field
* Remove the legacy scope name concept from the Config class
* Handle tree-sitter grammars and textmate grammars having the same 
scope names
2018-08-20 09:58:37 -07:00
Jason Rudolph
c74971e40c
Fix repository tests that fail when run in fork of atom/atom
Prior to this change, these tests assumed that the local repository is a
clone of atom/atom, and the tests (unintentionally) failed if the local
repository was a fork of atom/atom:

https://circleci.com/gh/marcomorain/atom-1/29

Instead of depending on the local clone of the atom repository for these
tests, this commit updates the tests to use one of the fixture
repositories. 😅
2018-07-27 09:40:38 -04:00
saadq
fc45af02ae allow the use of double slash flow comments 2018-03-21 18:07:16 -04:00
Max Brunsfeld
9762685106 Start work on loading tree-sitter grammars in GrammarRegistry 2017-11-30 09:31:08 -08:00
Indrek Ardel
0f89211d55 Prioritize first line matches over bundled/non bundled cirteria 2017-10-20 13:34:15 +03:00
Michelle Tilley
5e43084cd3
url -> URI 2017-10-17 15:23:10 -07:00
Michelle Tilley
eb4357ce87
Add tests for packages with URI handlers 2017-10-03 13:20:48 -07:00
Antonio Scandurra
c99ac52152 Fix folding for lines that contain a comment
In attempting to optimize the performance of `isFoldableAtBufferRow` in
3c87b74, we mistakenly introduced a bug that caused lines that contained
a comment but didn't start with one to not be foldable anymore.

With this commit we are restoring the previous behavior, thus only
disabling folding for lines that start with a comment (ignoring leading
whitespaces).
2017-08-17 14:28:30 +02:00
Ian Olsen
ddcf5460ed Merge pull request #14427 from atom/fb-hw-url-fix2
Fix the atom:// URL handler for real (with tests this time)
2017-05-24 08:41:43 -07:00
hansonw
e8cd4bf431 Fix the atom:// URL handler for real (with tests this time) 2017-05-16 11:51:54 -07:00
Thomas Johansen
ceb05f03e2 💚 Make the "invalid" Babel fixture throw
Due to the V8 upgrade we need to tune the fixture to make it throw.
Using a generator function does the trick 
2017-05-03 14:21:23 +02:00
Max Brunsfeld
2ed0724fc4 Remove unnecessary calls to ViewRegistry.getView 2017-04-05 16:50:04 -07:00
Nathan Sobo
4716ad8ef3 Merge pull request #13358 from atom/fb-mdt-initialize-hook
Add initialize() hook to packages
2016-12-01 01:53:43 -07:00
Matthew Dapena-Tretter
25518b9c8e Add initialize() hook to packages 2016-11-30 14:27:29 -08:00
Damien Guard
711d83925e
Project and Window-Event-Handler spec pass on Win32 2016-11-29 16:55:14 -08:00
Damien Guard
2486a122ac
Fix fixture that gets modified as part of a test. 2016-10-04 17:01:56 -07:00
Damien Guard
1a97f97a54
Specs runner dev tools should also be ctrl-shift-i on Linux/Windows 2016-10-04 15:26:24 -07:00
Max Brunsfeld
3758fe5646 Use fake directory provider in integration test for remote dirs
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-15 16:33:04 -07:00
Max Brunsfeld
3aaa738944 Activate atom.directory-provider services before deserialization
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-14 13:26:03 -07:00
Max Brunsfeld
8702b4ca47 Remove 'Some textSome textSome textSome text' 2016-08-15 17:12:40 -07:00
Max Brunsfeld
4b0183d074 Remove extraneous TextEditor setter methods 2016-08-15 16:45:10 -07:00
Max Brunsfeld
cdc9bdea61 Use setter methods instead of config settings in TextEditor test 2016-07-11 17:03:44 -07:00
Leonard Lamprecht
3a1ad3fd40 Replace OS X and Mac OS with macOS 2016-06-18 15:33:08 +02:00
Damien Guard
7542a401ff BufferedProcess whole-string spec now cross-platform 2016-05-02 15:37:36 -07:00
joshaber
0541755ac8 Consistent indentation. 2016-04-26 09:49:38 -04:00
joshaber
e16e987e08 Give the fixture a remote 2016-04-26 09:46:04 -04:00
joshaber
f589bdd8d9 Add a remote to the fixture. 2016-04-26 09:22:38 -04:00
Koki Takahashi
fdac1e4663 🐛 Treat empty comment line as comment and add tests (Fix #4140) 2016-02-29 19:51:57 -07:00
Nathan Sobo
6292484c97 Always strip git+ prefix and .git suffix from package repository URLs
Previously, a guard based on the presence of the _id field (which is
inserted by npm during installation) prevented a regex replacement of
the git+ prefix on URLs. Now we always do this. Since the .git suffix
also causes problems and we’re removing that in packages, I now remove
that as well.
2016-02-29 17:30:03 -07:00
Max Brunsfeld
9c0aa629d7 Let packages define deserializers & view providers as main module methods 2016-02-10 14:28:57 -08:00
joshaber
563984a7b2 Test it. 2016-02-05 16:16:38 -05:00
Josh Abernathy
4d740d3346 Merge pull request #9213 from atom/dh-async-repo
Async Git Repository class
2016-01-15 16:17:41 -05:00
Max Brunsfeld
aea9c5804a Improve terminate pending state tests.
Remove argument to remove pending state listeners.
2016-01-12 18:34:32 -08:00
joshaber
d2d5966ee1 More tests for the submodule cases. 2016-01-07 16:37:05 -05:00
joshaber
0bef58a8a4 Added a fixture that has submodules. 2016-01-07 13:05:36 -05:00
Antonio Scandurra
fa48b2fbe0 Make v8 version part of the key 2015-12-11 17:47:04 +01:00
Max Brunsfeld
d058814957 Merge remote-tracking branch 'origin/master' into mb-deprecate-load-time-package-code
Conflicts:
	package.json
2015-11-30 10:20:31 -08:00
Max Brunsfeld
327cf6997b Remember which packages use atom APIs at main module load time
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 17:35:38 -08:00
Max Brunsfeld
24938c0361 Defer loading view providers until activation or deserializer use
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 16:28:08 -08:00
Max Brunsfeld
d6e5ea8564 Defer requiring packages' main modules if they use new package.json fields 2015-11-23 16:05:32 -08:00
Max Brunsfeld
2d29fd6e79 Load config schemas from packages' package.json files 2015-11-23 15:53:26 -08:00
Max Brunsfeld
cb2b068d77 Load view providers from files specified in package.json 2015-11-19 16:58:20 -08:00
Max Brunsfeld
a0a402c3f8 Remove 'atom' prefix from deserializers package.json key 2015-11-19 14:12:03 -08:00
Max Brunsfeld
46272cd192 Load deserializers lazily 2015-11-18 14:31:16 -08:00
Max Brunsfeld
ade1ef7a4c Load deserializers from files specified in package.json 2015-11-18 14:03:49 -08:00
Douwe Maan
a9bf2a73a5 Improve TextEditor::getLongTitle 2015-11-17 23:34:31 +01:00
abe33
6b2725077a Merge back master 2015-11-04 18:26:27 +01:00
Antonio Scandurra
5d0ba5f182 Merge pull request #9318 from atom/as-compilation-cache
Introduce NativeCompileCache
2015-11-03 14:35:58 +01:00
abe33
dacd08badf 🐛 Fix moving multiple selection with folds creates new folds 2015-11-03 00:48:22 +01:00