Cheng Zhao
7c8e1634b8
Remove native path watcher code.
2013-04-07 19:33:27 +08:00
Corey Johnson & Nathan Sobo
101605e50f
Add atom.crashMainProcess and atom.crashRenderProcess
2013-04-03 15:08:16 -07:00
Cheng Zhao
3ed35574d4
Use node-nsspellchecker to replace $native's spell checker.
2013-03-27 12:25:54 +08:00
Kevin Sawicki
a772a9aa75
Remove unneeded std:: prefix
2013-03-26 23:32:05 -04:00
probablycorey
34f3176259
Add $native.beep
...
I could have created an npm for this. I also could wash my hands every 10 seconds, but I'm not crazy, so I did neither.
2013-03-26 16:45:21 -07:00
Corey Johnson & Nathan Sobo
f4d339ccac
Unify root view state with window state
2013-03-21 18:24:21 -06:00
Kevin Sawicki
39ee6f66ba
Remove unused import
2013-03-21 10:02:14 -07:00
Kevin Sawicki
71f28ad9e5
💄
2013-03-20 18:50:20 -07:00
Kevin Sawicki
661ef175d5
Remove $native.getPlatform()
...
process.platform should now be used instead.
2013-03-20 17:51:51 -07:00
Kevin Sawicki
65d5e631f8
Remove $native.absolute()
...
fs-utils.absolute() now recreates the same behavior
but instead using fs.readpathSync().
This brings over the same behavior for special handling
the /private directory for now.
2013-03-12 19:41:42 -07:00
Kevin Sawicki
8f177c3835
Remove unused $native.md5ForPath()
2013-03-12 17:43:33 -07:00
Kevin Sawicki
6f5138a56e
Revert "Remove $native.md5ForPath()"
...
This reverts commit 832df7149e .
2013-03-12 08:23:54 -07:00
Kevin Sawicki
832df7149e
Remove $native.md5ForPath()
2013-03-11 20:58:57 -07:00
Kevin Sawicki
52f7e52255
💄
2013-03-07 19:01:36 -08:00
Kevin Sawicki
6ba9f24381
Remove unused include
2013-03-07 18:37:33 -08:00
Kevin Sawicki
2f8b1d5e3e
Remove $native.remove()
2013-03-07 18:36:20 -08:00
Kevin Sawicki
d91c540d47
Remove $native.move()
2013-03-07 18:25:25 -08:00
Kevin Sawicki
d55e1bfb67
Remove unused $native.read()
2013-03-07 18:21:36 -08:00
Kevin Sawicki
5202e846de
Remove $native.write()
2013-03-07 18:20:29 -08:00
Kevin Sawicki
6abf1ff1aa
Remove $native.makeDirectory()
2013-03-07 18:02:55 -08:00
Kevin Sawicki
e7050b2083
Remove unused $native.lastModified()
2013-03-07 18:00:35 -08:00
Kevin Sawicki
fedf43ca0a
Remove $native.exists()
2013-03-07 17:57:28 -08:00
Kevin Sawicki
4bc513a8e3
Remove $native.isFile() and $native.isDirectory
2013-03-07 17:55:13 -08:00
Kevin Sawicki
fe172985bb
Remove unused $native.traverseTree()
2013-03-07 17:50:12 -08:00
Kevin Sawicki
acf5f4ce5e
Remove fs/$native.getAllFilePathsAsync()
...
This was previously only used by project.getFilePath()
which should have been using fs.traverseTree() instead.
2013-03-07 17:48:36 -08:00
Kevin Sawicki
53b3fbfed6
Remove $native.exec
2013-03-07 17:40:47 -08:00
probablycorey
d6309ec31c
Add autorelease pool wrappers around CefV8Handler::Execute methods
...
This removes all BlahBlahBlah was not autoreleased console warnings.
2013-03-01 15:01:14 -08:00
Kevin Sawicki
7bfb07a25a
Lock on shared NSSpellChecker and use release pool
...
Closes #335
2013-03-01 10:45:01 -08:00
Kevin Sawicki
a4efc32d45
Display corrections for misspelling on meta-0
...
A select list will now display with possible corrections
and the misspelling will be replaced when one is selected.
2013-02-27 10:08:02 -08:00
Kevin Sawicki
34ee313ec9
Add native isMisspelled method
2013-02-26 16:55:46 -08:00
Corey Johnson & Kevin Sawicki
ba47e60eeb
Synchronize reads of task's stdout/stderr
...
This ensures that all the available data on standard
out and standard error has been read before the terminate
handler calls the JavaScript callback.
Without this synchronization the command panel specs
occasionally fail.
2013-02-26 09:02:49 -08:00
Kevin Sawicki
e952a68c96
Support setting working directory of child process
2013-02-11 14:53:53 -08:00
Nathan Sobo
f22fedebcf
Inject new instances of native objects into every JS context
...
This prevents concurrent access to the same state from different
worker threads. We needed to treat windowState specially because we
explicitly want it to last beyond the life-span of a single context.
So we store it as a static variable in `native.mm` and synchronize
access with a static `NSLock`. Good enough for now.
2013-01-24 17:22:50 -08:00
Corey Johnson & Nathan Sobo
f876071ff0
💄
2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
5294cb6df1
Kill lines I forgot to delete
2013-01-24 17:22:49 -08:00
Nathan Sobo
87829043d4
Use window binding instead of v8 extension for $native object
...
This paves the way to inject `$native` into the context of a web worker
2013-01-24 17:22:49 -08:00
Kevin Sawicki & Nathan Sobo
2fb27bb2dd
Store pathToOpen using new atom.set/getWindowState api
...
When you use `setWindowState`, your data is saved across refreshes.
You can only store state that can be serialized to JSON.
2013-01-10 18:04:22 -07:00
Kevin Sawicki
cdac5e0763
Read output for terminate handler off main thread
...
Follow on to commit 1bd0cc4152
2012-12-19 17:25:19 -08:00
Corey Johnson & Nathan Sobo
1bd0cc4152
ChildProcess can handle commands that return large amounts of data.
...
When a command returned a large amount of data, it was blocking on the stderr callback when `[fileHandle availableData]` was called. From what I can tell, this is because stderr was being called with a zero-length string.
This was fixed when `[fileHandle availableData]` was moved to run inside the NSTask thread (instead of on the main thread). It now returns a zero-length string rather than blocking forever.
An unresolved question is why stderr is being called with zero-length strings.
2012-12-19 11:47:50 -08:00
Corey Johnson & Kevin Sawicki
a6a05b6ff4
Remove directories from fuzzy-finder
2012-12-12 17:25:45 -08:00
Corey Johnson & Kevin Sawicki
404f637101
Populate fuzzy-finder asynchronously
2012-12-12 12:26:39 -08:00
Corey Johnson & Nathan Sobo
702b8047e4
Unwatch all paths after each test
2012-11-29 15:31:05 -08:00
Corey Johnson
5c4079a2c8
Use NSASCIIStringEncoding instead of NSNonLossyASCIIStringEncoding
2012-11-29 10:36:16 -08:00
Corey Johnson
02c441e937
If $native.read fails to open a file as UTF8, it opens it as ascii
...
This is a temporary solution to allow Atom to open binary files. The ultimate goal would be to have a hex-editor built into atom.
2012-11-29 10:34:22 -08:00
Corey Johnson & Nathan Sobo
db78d6a7e5
Ensure PathWatcher isn't watching anything at the end of each spec
...
This replaces the old functionality of ensuring no files or directories have subscriptions in javascript. We allow this now, but we just don't allow leaked watches at the native layer.
2012-11-28 17:16:15 -07:00
Kevin Sawicki
0e89c7a673
💄
2012-10-26 10:41:40 -07:00
Corey Johnson
de03cc82ed
fs.traversePath(path) works if path is a symlink
2012-10-12 15:44:01 -07:00
Corey Johnson
c43c82fbcb
💄
2012-10-12 15:44:00 -07:00
Kevin Sawicki
a1f9e061bc
Remove native.list
...
Use native.traverseTree instead from fs.list
and fs.listTree
2012-10-09 17:41:33 -07:00
Kevin Sawicki
d8ea07468b
Include FTS_PHYSICAL when calling fts_open
2012-10-09 17:41:33 -07:00