Commit Graph

204 Commits

Author SHA1 Message Date
Corey Johnson
5d70f416fc Remove unused regex test from require.js 2012-09-26 16:30:22 -07:00
Corey Johnson & Nathan Sobo
85c37fd652 Move atom.resourcePath to window.resourcePath
The resourcePath is now set using a url param. Because resourcePath is needed by require.js, it needs to be on `window` rather than `atom`.
2012-09-10 17:22:21 -07:00
Corey Johnson & Nathan Sobo
44db540528 All specs pass 2012-08-30 17:12:52 -06:00
Corey Johnson & Nathan Sobo
bd1982ede1 Nix fs.async.* methods. They aren't needed now. 2012-08-30 16:12:15 -06:00
Nathan Sobo
d5ffdb153a Remove $native.saveDialog. It's replaced with atom.showSaveDialog 2012-08-30 11:08:55 -06:00
Nathan Sobo
63a0746cc5 Remove $native.alert 2012-08-29 20:53:04 -05:00
Corey Johnson & Nathan Sobo
5141aba658 Move all extension C and JavaScript code into native/v8_extensions 2012-08-27 14:02:05 -07:00
Nathan Sobo
cec5265f9a Add native handler 2012-08-27 13:37:06 -05:00
Nathan Sobo
14891696a5 Update require.coffee from CEF 1 atom 2012-08-27 11:05:55 -05:00
Nathan Sobo
589b183b26 Define atom.resourcePath (replaces atom.loadPath) when context is created 2012-08-26 16:41:31 -05:00
Nathan Sobo
c3e748a17c WIP: Use rake to start compiling resources (like require.coffee) 2012-08-26 16:29:46 -05:00
Nathan Sobo
c2c8724ad0 Initial commit 2012-08-10 13:32:19 -06:00
Kevin Sawicki
aefafdda4a Add expected parameters to native function declarations 2012-08-22 15:36:53 -07:00
Kevin Sawicki
b3200a944f Move native function declarations to js file
This allows multiple native handlers to load it
as an extension without duplicating all the expected
native function calls names internally.
2012-08-22 15:10:37 -07:00
Kevin Sawicki & Nathan Sobo
c87c0da35e Don't explode when require.resolve doesn't find a file. Return null instead. 2012-08-22 13:43:46 -07:00
Corey Johnson & Nathan Sobo
ad4b3db439 Add OnigRegExp.test 2012-08-09 12:57:20 -06:00
Corey Johnson & Nathan Sobo
2a945838f5 Return absolute minimum capture data from OnigRegExp 2012-08-08 12:13:54 -07:00
Corey Johnson & Nathan Sobo
827b3e29d3 Implement OnigRegExp.getCaptureTree natively 2012-08-07 16:20:02 -07:00
Nathan Sobo
6878d19a6a OnigRegExp.getCaptureTree does not include empty child captures 2012-08-06 18:27:39 -06:00
Nathan Sobo
a85345e392 Add OnigRegExp.getCaptureCount 2012-08-06 18:27:14 -06:00
Nathan Sobo
0d6d16a438 Move TextMateGrammar.buildCaptureTree to .getCaptureTree method on OnigRegExp 2012-08-06 11:43:44 -06:00
Corey Johnson & Nathan Sobo
1a243adfcf All specs pass w/ TextMateGrammar for tokenization (auto-indent disabled) 2012-08-03 12:00:05 -06:00
Nathan Sobo
13c95aae31 Add 'themes' directory with the default TextMate themes 2012-08-01 14:07:18 -06:00
Corey Johnson & Nathan Sobo
7067c35dc0 Add CocoaOniguruma 2012-08-01 09:48:36 -07:00
Corey Johnson & Nathan Sobo
15d27dca44 Start on OnigRegexp javascript extension 2012-08-01 09:48:36 -07:00
Corey Johnson & Nathan Sobo
c6bae093c1 Starting on TextMate bundle support 2012-08-01 09:48:35 -07:00
Corey Johnson & Nathan Sobo
713b5a9620 Better $native.exec errors 2012-07-20 14:19:19 -07:00
Nathan Sobo
f5e46e57fc Use bundled ack instead of grep
Our ack is slightly modified to use `'\0'` characters instead of `':'` in the --nogroup listing. This makes it easier to handle both `':'` characters and newlines in filenames, but we aren't really doing that yet.
2012-07-19 09:17:44 -06:00
Corey Johnson & Nathan Sobo
47a9d1284a Reject exec promise with hash instead of string 2012-07-12 12:18:53 -07:00
Corey Johnson & Nathan Sobo
0d35d5613a Non-zero exit codes reject promise with a detailed message 2012-07-12 12:07:32 -07:00
Corey Johnson & Nathan Sobo
2fe56ba077 Remove logging 2012-07-12 11:11:45 -06:00
Nathan Sobo
3854f73c84 WIP: Start on Project.prototype.scan
Right now it calls out to grep and parses the output, but doesn't do anything with it just yet.
2012-07-11 18:50:38 -06:00
Nathan Sobo
db6692b2f6 Fix the $native.exec callback in ChildProcess.exec
It's stderr, not stdin. Also we have to look at exitStatus, not error to see if the process failed. None of this is tested, which is bad.
2012-07-11 18:48:49 -06:00
Nathan Sobo
8f5746c8fe Add bufferLines option to ChildProcess.exec
It ensures that stdout and stderr callbacks are triggered with whole lines
2012-07-11 16:30:50 -06:00
Corey Johnson
2afec5cf53 Add ChildProcess.exec(cmd, [options])
Uses promises for failure and success states. Takes optional stderr and stdout callbacks for incremental reading.
2012-07-10 15:07:28 -07:00
Nathan Sobo
764265e97f Kill console.log 2012-07-04 21:27:13 -06:00
Corey Johnson
2423a7413d Storing cached coffeeScript in /tmp because it overwhelms localstorage 2012-07-03 15:58:12 -07:00
Corey Johnson
4cf4456635 Add fs.makeTree 2012-07-03 14:46:45 -07:00
Corey Johnson
fc660c2790 Add fs.split 2012-07-03 14:44:41 -07:00
Corey Johnson
08b0a686ed fs.directory returns empty string if path has no parent directory 2012-07-03 14:43:56 -07:00
Nathan Sobo
f92faffb5b Use html5 storage to cache coffee script compilation by file md5 2012-07-02 19:21:46 -06:00
Corey Johnson & Nathan Sobo
6ebe75c0bd Add fs.md5ForPath 2012-07-02 18:19:16 -06:00
Nathan Sobo
8c740b09e6 Add fs.lastModified 2012-07-02 17:44:12 -06:00
Corey Johnson
91c361e478 Fix benchmark suit 2012-06-29 15:51:11 -07:00
Nathan Sobo
79d9faba58 Make fs.isFile return false for null/undefined paths 2012-06-27 07:57:05 -06:00
Nathan Sobo
2cb993760b Make fs.exists return false for null/undefined paths 2012-06-27 07:56:02 -06:00
Nathan Sobo
9c02e05051 Preserve the value of this when applying before advice 2012-06-20 17:55:29 -06:00
Nathan Sobo
583af86f68 Add _.adviseBefore for adding before advice to methods 2012-06-20 17:34:21 -06:00
Corey Johnson
321e7b6129 Add $native.reload 2012-06-12 10:52:11 -07:00
Corey Johnson
b5e3977ef2 Use Native class to call saveDialog 2012-06-12 10:52:11 -07:00