Commit Graph

4987 Commits

Author SHA1 Message Date
Nathan Sobo
ea65c63862 Translate TextMate snippets in the worker thread
Might as well do as much work there as possible.
2013-01-24 17:22:50 -08:00
Nathan Sobo
0726987896 Give Task an RPC-style interaction with its Worker
This commit makes all interactions between Task and Worker look
like method calls. The worker now has a global `callTaskMethod`
function that it can use to call methods on the Task object. And the
Task can use `callWorkerMethod` to call methods on a global `handler`
object in the worker. The worker's initial `handler` actually contains
the `start` method, which the Task initially calls to kick things off.
Then the global `handler` gets replaced with whatever `handlerPath`
is specified by the Task. The worker then calls `workerStarted` on its
parent Task object.

This commit also gets rid of the `onProgress` method with the reply
semantics, favoring a more explicit interaction. When `snippetsLoaded`
finishes adding the snippet data, we call `loadNextPackageSnippets`
explicitly rather than returning a reply message.
2013-01-24 17:22:50 -08:00
Corey Johnson & Kevin Sawicki
c628a88409 Lower case Task in require 2013-01-24 17:22:50 -08:00
Kevin Sawicki
69c9ed3feb Use self instead of hacky eval 2013-01-24 17:22:50 -08:00
Kevin Sawicki
3dd11c6c0f Set type to log for console.log forwarding 2013-01-24 17:22:50 -08:00
Kevin Sawicki
8c4a21ee5d Remove unused requires 2013-01-24 17:22:50 -08:00
Kevin Sawicki
2393bd0e9e Create task shell that bootstraps worker 2013-01-24 17:22:50 -08:00
Kevin Sawicki
9ab730b3d0 Load snippets in a web worker
A single web worker is now used to load
snippets one bundle at a time.
2013-01-24 17:22:50 -08:00
Corey Johnson & Nathan Sobo
cab281c6db Inject all native extensions into web worker contexts 2013-01-24 17:22:50 -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
9bff6f63df Delete lines that never should have been there 2013-01-24 17:22:50 -08:00
Corey Johnson & Nathan Sobo
1b228c75bc Convert Tags to context binding 2013-01-24 17:22:50 -08:00
Corey Johnson & Nathan Sobo
d4b5c8beac Don't make OnigScanner and OnigRegExp be window globals 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
e5c96c7077 Convert OnigScanner to a context binding 2013-01-24 17:22:49 -08:00
Nathan Sobo
df2bb3f75c 💄 2013-01-24 17:22:49 -08:00
Nathan Sobo
2946ba7b9a Convert OnigRegExp from a v8 extension to a window binding 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
74d7d48dcc Don't make GitRepository a window global 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
f876071ff0 💄 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
1e6e6c4411 Convert git v8 extension to a context binding 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
47420c2e01 Inject $native into WebWorker contexts
This is just to make sure it works. Will inject the remaining extensions
when they are converted to from v8 extensions to context bindings.
2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
faaaaec846 Convert atom global to a window binding 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
a5f72c8a2d 💄 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
Nathan Sobo
d9cfc491e0 💄 2013-01-24 17:22:48 -08:00
Corey Johnson & Nathan Sobo
789c0a3715 Merge branch 'focus-editor-when-selecting-tab' into dev 2013-01-24 09:55:10 -08:00
Mutwin Kraus
7e64b2d593 Focus editor when selecting a tab 2013-01-24 17:02:09 +01:00
Jon Rohan
2f474b64ec Adding contrast to gutter numbers fixes #161 2013-01-23 21:35:38 -08:00
Jon Rohan
0027a0b90a dressing up the fuzzy finder error. fixes #160 2013-01-23 21:23:50 -08:00
Kevin Sawicki
3bd826fcb2 Inline selected text wrapped in brackets 2013-01-23 16:49:34 -08:00
Kevin Sawicki
7425f58f26 Only change end position if selection is mult-line 2013-01-23 16:46:43 -08:00
Kevin Sawicki
6324a60d72 Wrap selection in brackets
Enclose the selection in brackets when an opening
bracket is typed and the selection is non-empty

Closes #41
2013-01-23 16:24:40 -08:00
Kevin Sawicki
bc3646f180 💄 2013-01-23 16:24:40 -08:00
Kevin Sawicki
17f12c42d3 Delete end pair when begin pair is backspaced 2013-01-23 16:24:40 -08:00
Kevin Sawicki
bdf60997ea 💄 2013-01-23 16:24:40 -08:00
Jon Rohan
4872352ab0 these need to be here for now 2013-01-23 16:05:55 -08:00
Jon Rohan
42f82e13d5 adding these icons back 2013-01-23 15:47:25 -08:00
Corey Johnson
50cc271ac9 Merge pull request #162 from github/sparkle
Add Sparkle Support
2013-01-23 15:30:02 -08:00
Corey Johnson & Nathan Sobo
ed532e552e Initialize Sparkle on application launch and add delegate methods 2013-01-23 15:23:15 -08:00
Corey Johnson & Nathan Sobo
d7137c980f Update Atom's info.plist to work with sparkle 2013-01-23 15:13:07 -08:00
Corey Johnson & Nathan Sobo
61e1effd28 Add Sparkle.framework and DSA key for speakeasy 2013-01-23 15:09:58 -08:00
Kevin Sawicki
c80298e624 Remove unused requires 2013-01-23 11:09:56 -08:00
Kevin Sawicki
79ae6a4895 Clear mini editor base select list cancelled()
Clearing the mini editor when closing is something
all sub-classes were already doing so it makes sense
to pull it up to the base class as the default
cancelled() implementation that can still be overridden
if needed.
2013-01-23 09:40:05 -08:00
Kevin Sawicki
001bb3a862 Restore focus after select list detaches
Previously if the select list was cancelled with no open
editors the mini editor would be given focus before being
detached causing nothing to have focus after detach completed.

Now the select list tracks the previously focused elements and
restores focus to that element at the end of the cancel.
2013-01-23 09:32:49 -08:00
Jon Rohan
f0aa9c136f light theme tab circle was too light 2013-01-23 08:36:40 -08:00
Kevin Sawicki
a451a369e8 Use device color instead of calibrated 2013-01-23 08:28:44 -08:00
Kevin Sawicki
64332736e1 Add back background on html element
This prevents a flash of white from displaying while the CSS loads
2013-01-23 08:22:46 -08:00
Jon Rohan
e193bb14cc simplifying the tree-view css a little bit 2013-01-22 23:35:34 -08:00
Jon Rohan
d740fe6a6e Scrolling to revealed active file in the treeview 2013-01-22 23:20:54 -08:00
Kevin Sawicki
41a15c7889 Update spec event coordinates for new default styles 2013-01-22 21:43:35 -08:00