Commit Graph

12724 Commits

Author SHA1 Message Date
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
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
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
1e6e6c4411 Convert git v8 extension to a context binding 2013-01-24 17:22:49 -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
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
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
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
56badd450a Clear left margin on autocomplete 2013-01-22 21:04:53 -08:00
Kevin Sawicki
72b67bc879 Ensure package stylesheets are loaded in autocomplete spec 2013-01-22 21:03:54 -08:00
Kevin Sawicki
7addbaf893 Rename outline view to symbols view 2013-01-22 18:43:43 -08:00
Kevin Sawicki
a9c1b58ba5 Defer tree view load when possible 2013-01-22 18:26:48 -08:00
Kevin Sawicki
a966f1d7c7 Rename attach to load 2013-01-22 18:26:48 -08:00
Kevin Sawicki
513a29d70e Add deferred package type
This package defers loading until specific commands are
triggered on the root view.
2013-01-22 18:26:48 -08:00
Kevin Sawicki
20d5dbaa78 Wait for time to increase before checking last run 2013-01-22 18:26:48 -08:00
Kevin Sawicki
ca596db310 Extend AtomPackage directly in packages index.coffee 2013-01-22 18:26:48 -08:00
Kevin Sawicki
36e0ad6dc8 Move core wrap guide styles back into package 2013-01-22 18:24:06 -08:00
Kevin Sawicki
7c7ca4a6c3 Don't auto outdent if already fully outdented 2013-01-22 17:39:03 -08:00
Kevin Sawicki
59f7b6650c Don't auto outdent if preceding row is null 2013-01-22 17:38:23 -08:00
Kevin Sawicki
9d3751052a Support hitting tab in snippets with no tab stops
Closes #149
2013-01-22 16:44:45 -08:00
Jon Rohan
3b257988d7 Merge branch 'dev' into restore-fixed-position-for-resizer
Conflicts:
	src/packages/tree-view/spec/tree-view-spec.coffee
2013-01-22 16:38:07 -08:00
Jon Rohan
bfe43008ed fixing the tree-view specs 2013-01-22 16:34:35 -08:00
Jon Rohan
9b10278557 Fixing a treeView scroll spec 2013-01-22 15:25:43 -08:00
Jon Rohan
5359a3297a Fixing the scrolling errors created by adding a wrapper 2013-01-22 15:17:23 -08:00
Kevin Sawicki
a77623c118 Always subscribe to created file 2013-01-22 14:52:08 -08:00
Kevin Sawicki
39fd4f7059 Remove extra subscribeToFile() call
This was causing an event listener to leak
on each call to save()

Closes #152
2013-01-22 14:44:34 -08:00
Jon Rohan
8039b7c7c1 updating tree-view html to better situate the resizer 2013-01-22 14:31:34 -08:00
Jon Rohan
bb43b2e79a Merge branch 'dev' into restore-fixed-position-for-resizer
Conflicts:
	src/packages/tree-view/stylesheets/tree-view.css
2013-01-22 14:30:49 -08:00
Kevin Sawicki
7c3141783b Check if file exists before reading
Closes #153
2013-01-22 13:51:26 -08:00
Jon Rohan
e1e764418b making the packageDirPaths order back to the way it was 2013-01-22 13:17:06 -08:00
Jon Rohan
8bb8fe814a Merge branch 'dev' into css-theme-refactor 2013-01-22 12:48:41 -08:00
Jon Rohan
379824f6b0 adding vendor/themes and themes to themeDirPaths 2013-01-22 12:41:59 -08:00
Jon Rohan
5969e79ebc allow leading dot in extension names in fs resolve 2013-01-22 12:41:33 -08:00