Commit Graph

282 Commits

Author SHA1 Message Date
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
Nathan Sobo
152a479909 Merge pull request #9024 2015-11-02 11:26:21 -06:00
Antonio Scandurra
f13e516417 Invalidate cache when it is rejected by v8 2015-10-30 12:45:15 +01:00
Antonio Scandurra
c684273ecf Introduce NativeCompileCache 2015-10-30 10:14:14 +01:00
Antonio Scandurra
23d5dc8726 Change invalid.js fixture for babel transpilation
The previous file was considered invalid on the earlier version of electron, but
it now compiles correctly because of the updated ES6 support.
2015-10-16 11:08:51 -06:00
easyhard
b9f0445e59 Add TextEditor.getUniqueTitle()
This method is intended to replace TextEditor.getLongTitle
and gives a better tab title when there are multiple opened
files has identical file name. This method will returns

<unique-parent-directory>/.../<filename> when opened files
have identical file name.
2015-10-02 19:19:16 +08:00
Thomas Johansen
a2071a7093 🔥 Remove deprecations from global atom module 2015-09-22 10:37:05 -06:00
Nathan Sobo
6b66bf7b0a Fix use of _atomModuleCache in getNativeModuleDependencyPaths
Previously, we weren’t converting the relative path from the module
cache and the test wasn’t strong enough to detect this fact.
2015-09-17 17:21:52 -06:00
Chen Shen
20dcdf77a4 update 2015-09-17 09:52:00 -07:00