Commit Graph

6674 Commits

Author SHA1 Message Date
Kevin Sawicki
ff471ebf5b 💄 2013-03-28 22:08:53 -04:00
Kevin Sawicki
bd48cfced0 Don't track ctrl-click as the start of a selection
Closes #396
2013-03-28 22:06:56 -04:00
probablycorey
aab50d3c2c Only parse the first 100 tokens of a line
This fixes the UI thread lockup when there is a gigantic line in a
file (like minified js). I took a stab at making line tokeninization
async on the atom/async-single-line-tokenization branch, but it was
still too slow.

Closes #150
2013-03-28 17:14:45 -07:00
Kevin Sawicki
f51102a230 Don't force clean installs
Making clean a pre-req install forces a reinstall and
rebuild of all npm modules and reinstall of cef which
drastically increases the install time even for small
local changes.
2013-03-28 10:09:29 -04:00
Kevin Sawicki
b0706ee9fb Update coffee cache path used in clean task 2013-03-28 10:07:17 -04:00
Kevin Sawicki
d54f2e6eab Only track selections that start with a left-click
Closes #396
2013-03-27 21:06:56 -04:00
Kevin Sawicki
a3483d0ffe Remove native injection from web worker contexts
Tasks are now processed based and so web workers no
longer need access to the native extension.
2013-03-27 20:51:01 -04:00
probablycorey
0fe93bef91 StatusBar now triggers grammar-selector:show 2013-03-27 17:34:14 -07:00
probablycorey
72f57ad993 Remove old grammar view files 2013-03-27 17:34:14 -07:00
Kevin Sawicki
70010bad56 Un-f grammar-selector specs 2013-03-27 20:30:22 -04:00
probablycorey
5308e03096 Move GrammarView into GrammarSelector package 2013-03-27 17:02:13 -07:00
probablycorey
8323b0defd 💄 2013-03-27 16:30:33 -07:00
probablycorey
fd7772a653 Reset scrollLeft when setSoftWrapColumn is called
When the scroll view is scrolled and overflow-x is set to 
'hidden' the scroll view renders wrong. Setting scrollLeft to 0 fixes
this problem. I'm unhappy with this solution, but it was a
simple way to get the scroll view to update its layout.

Closes #137
2013-03-27 15:13:55 -07:00
probablycorey
a48a52922b Indent soft-wrap spec correctly 2013-03-27 15:13:55 -07:00
Kevin Sawicki
1d84274973 Return existing selections from addSelection()
Previously if a selection was added and then merged
away the selection-added event would still fire even
though the selection was already destroyed.

Now the existing selection that intersects with the
range is returned when the merge destroys the new selection.

Closes #374
2013-03-27 17:59:55 -04:00
Kevin Sawicki
b6334483c9 Hide the loading message when eval throws an error 2013-03-27 15:43:09 -04:00
Kevin Sawicki
7f8adf247e Show root view events when no element has focus
Closes #327
2013-03-27 14:28:18 -04:00
Kevin Sawicki
4c9ebc940c Remove unneeded initialization of variable from superclass 2013-03-27 14:28:17 -04:00
Kevin Sawicki
d14ddf6f38 Remove unused require 2013-03-27 14:28:17 -04:00
probablycorey
a1b82e9dad Allow mini-editors to explicitly set their grammars 2013-03-27 11:00:53 -07:00
Kevin Sawicki
5a7f2a9ef4 Don't show duplicates in open buffer list
Closes #378
2013-03-27 11:56:32 -04:00
Kevin Sawicki
8d22b6d1b3 💄 2013-03-27 11:56:32 -04:00
Cheng Zhao
bc211a2231 Should erase cef in rake clean. 2013-03-27 23:09:01 +08:00
Nathan Sobo
38924f5bb8 Upgrade to latest space pen, as an NPM 2013-03-27 11:06:49 -04:00
Cheng Zhao
ac30781db8 Merge pull request #444 from github/process-task
Add ProcessTask
2013-03-26 23:00:03 -07:00
Cheng Zhao
4768ae9008 Rename node-nsspellchecker to node-spellchecker. 2013-03-27 12:25:55 +08:00
Cheng Zhao
7effc4c456 💄 2013-03-27 12:25:55 +08:00
Cheng Zhao
6ce25d4c71 Fix the usage of spawn. 2013-03-27 12:25:54 +08:00
Cheng Zhao
371fdde4f9 Use atom/cefode. 2013-03-27 12:25:54 +08:00
Cheng Zhao
b5be1c378a Replace Task's implementation with ProcessTask. 2013-03-27 12:25:54 +08:00
Cheng Zhao
3c5a79710a Use _.isArray to determine whether a value is Array.
When passing arrays between child processes with node's IPC machanism,
`instance of Array` will return false for the deserialized array, we
should use the reiable way of detecting Array provided by underscore.

Read this for more:
http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/

This bug was found when moving spell-check to use ProcessTask, and the
wrong Range object was returned for the passed misspelling value.
2013-03-27 12:25:54 +08:00
Cheng Zhao
3ed35574d4 Use node-nsspellchecker to replace $native's spell checker. 2013-03-27 12:25:54 +08:00
Cheng Zhao
142824ec01 Add test for ProcessTask. 2013-03-27 12:25:54 +08:00
Cheng Zhao
0d7f642675 Add ProcessTask. 2013-03-27 12:25:54 +08:00
Cheng Zhao
67c2a1473c Cefode is using node v0.8.22. 2013-03-27 12:25:54 +08:00
Cheng Zhao
215cd64c9a Use the node binary compiled with V8 used by Chromium.
The official node is using a different V8 version with the one used by
cefode, which causes incompatibility with cefode on native modules, this
special node binary fixes it.

The source code of this node binary can be found at:
https://github.com/atom/cefode-node/tree/chromium-v8
2013-03-27 12:25:54 +08:00
Kevin Sawicki
a772a9aa75 Remove unneeded std:: prefix 2013-03-26 23:32:05 -04:00
probablycorey
7e405138fc Beep when only one matches is found by repeatRelativeAddress
Closes #45
2013-03-26 16:45:21 -07:00
probablycorey
f817e37a01 Refactor repeatRelativeAddress/repeatRelativeAddressInReverse 2013-03-26 16:45:21 -07:00
probablycorey
2ffb88e936 💄 2013-03-26 16:45:21 -07: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
Nathan Sobo
d3fa24be57 Remove scoped-properties when deactivating a TextMate package 2013-03-26 17:35:45 -06:00
Nathan Sobo
6a5ca3805e Spec loading of scoped properties when activating TextMate packages 2013-03-26 17:35:44 -06:00
Nathan Sobo
eef13e7db8 Test that deferred packages don't require their main module
As opposed to asserting that the main module isn't present, which
might not be true if a previous spec required it.
2013-03-26 17:35:44 -06:00
Nathan Sobo
e32d7b1ff1 Remove unused test.tmbundle 2013-03-26 17:35:44 -06:00
Nathan Sobo
d8b4beb8bd Now that we remove binding sets, track binding set indices explicitly
Previously we relied on the length of the binding sets, but now that
we remove them the length is not a strictly increasing number. This
could cause problem when using the index to break specificity ties.
2013-03-26 17:35:44 -06:00
Nathan Sobo
1f74b5ccb4 Rename textmate package w/ invalid snippets 2013-03-26 17:35:44 -06:00
Nathan Sobo
a07cd87c2c Move testing of deferred deserializers to atom-spec 2013-03-26 17:35:44 -06:00
Nathan Sobo
2fe057bd9b Move deferred activation specs to atom-spec 2013-03-26 17:35:44 -06:00
Nathan Sobo
2ac3af193b Clean up deferred package activation
- Eliminate @deferActivation ivar
- Remove activation event listeners when deactivating unactivated packages
2013-03-26 17:35:44 -06:00