Nathan Sobo
adcfcb7897
Trigger 'grammars-loaded' when TextMate packages finish loading
...
This is a temporary solution so we can merge async textmate package
loading. I'd like to dispense with this event and consider each
grammar individually as they are loaded. But this makes the behavior
compatible with the old background-task-based behavior.
2013-03-22 17:35:35 -06:00
Nathan Sobo
a05405370c
Serialize the syntax object's grammar overrides with window state
2013-03-22 17:35:35 -06:00
Corey Johnson & Nathan Sobo
db4420e068
Move grammar overrides to syntax (no serialization yet)
2013-03-22 17:35:35 -06:00
Corey Johnson & Nathan Sobo
dacb00ed67
Simplify grammar selection and its specs
2013-03-22 17:35:34 -06:00
Corey Johnson & Nathan Sobo
bfd2667c51
Don't throw exceptions from Directory.getEntries for non-files
...
Just don't create entry objects for them.
2013-03-22 17:35:34 -06:00
Nathan Sobo
2416ff19a4
Add NullGrammar to obviate synchronous load of text grammar on start
...
It's also an extremely simple grammar, so we'll do less work to
initially tokenize open buffers before loading their real grammars.
2013-03-22 17:35:34 -06:00
Nathan Sobo
a2f72882d7
Rename grammarForFilePath to selectGrammar
...
The old name was misleading because it the decision is based on the
file contents in some circumstances.
2013-03-22 17:35:27 -06:00
Nathan Sobo
ab934cfbfb
Replace LoadTextMatePackagesTask with async grammar loading
2013-03-22 15:29:07 -06:00
Nathan Sobo
8e57ee2776
Import Node's fs in text-mate-package; rename existing fs to fsUtils
2013-03-22 15:29:07 -06:00
Nathan Sobo
d3ead2a0d1
Update fs.list to use readdirSync and filterExtensions helper
2013-03-22 15:29:07 -06:00
Nathan Sobo
a5dcd71548
Add fs.listAsync
2013-03-22 15:29:07 -06:00
Corey Johnson
93bef861df
Remove unused stdlib files
2013-03-22 13:51:09 -07:00
John Barnette
7e6dc68bca
We have node now, so kill our path module
2013-03-22 13:51:09 -07:00
Kevin Sawicki & Nathan Sobo
e23edd02fd
Use flexbox to position editor's gutter and scroll view
...
This removes the need to compute the width of the gutter based
on the line count in the editor and also removes the need to
set the scroll view's left position manually.
2013-03-22 12:47:56 -07:00
Corey Johnson & Nathan Sobo
84fe0a384d
Pop grammar rules that result in infinite loops
2013-03-22 11:42:47 -07:00
Kevin Sawicki
266c305ebb
Implement getPath() in markdown preview view
...
This allows it to be shown in the tree view when the
reveal command is triggered.
2013-03-22 09:55:21 -07:00
Kevin Sawicki
3d6dbf6d59
Include path instead of file in thrown error
2013-03-22 09:50:11 -07:00
Kevin Sawicki
49d1801742
Remove dead code
2013-03-22 09:33:18 -07:00
Cheng Zhao
955fa78d51
Update cefode: fix #434 and fix #404 .
2013-03-22 10:52:22 +08:00
Kevin Sawicki
712ba2c3fa
Clear all syntax subscriptions after spec runs
...
The global syntax object is reused between specs so
each spec should start off with a clean listener list.
2013-03-21 18:46:08 -07:00
Corey Johnson & Nathan Sobo
1ad5327c99
Ensure we never load saved window in specs
2013-03-21 18:51:32 -06:00
Corey Johnson & Nathan Sobo
f4d339ccac
Unify root view state with window state
2013-03-21 18:24:21 -06:00
Corey Johnson & Nathan Sobo
84244a4c22
🙊
2013-03-21 18:24:21 -06:00
Kevin Sawicki
a362a14f75
Only add view when grammars-loaded event fires
...
Previously the views would be added immediately
if more than one grammar was already registered.
This was unneeded since the event will always fire
after the package is activated.
2013-03-21 17:22:39 -07:00
Kevin Sawicki
f8ffe1c408
Only delete to end row when greater than start row
...
Closes #442
2013-03-21 17:07:36 -07:00
Kevin Sawicki
be9ffc499f
Upgrade to oniguruma 0.7
...
Includes support for matches in strings with multi-byte
characters.
Closes #430
2013-03-21 16:56:23 -07:00
Corey Johnson & Nathan Sobo
ef595c74ef
Update GFM snippets to atom syntax instead of textmate
2013-03-21 16:17:50 -06:00
Corey Johnson & Nathan Sobo
b169759f98
Flip version to 2.0 so we don't auto-upgrade after rake install
2013-03-21 16:01:52 -06:00
Corey Johnson & Nathan Sobo
2f3b4b9e5f
Move scoped properties out of the grammar file and into a directory
...
Closes #435
2013-03-21 14:07:32 -07:00
Corey Johnson & Nathan Sobo
0b719bfecf
Atom packages can load cson grammars and TextMate packages can't
2013-03-21 13:26:56 -07:00
Kevin Sawicki
1929899365
Remove z-index on editor stats
...
Wasn't needed now that it just sits below the status bar.
Closes #389
2013-03-21 11:28:16 -07:00
Kevin Sawicki
6e472064dd
Add Mustache bundle as a submodule
...
Closes #398
2013-03-21 11:13:07 -07:00
Kevin Sawicki
b006841fa7
Install npm locally and use during bootstrap
...
This ensures the expected version is used regardless
of the global version already installed.
Closes #439
2013-03-21 10:56:43 -07:00
Kevin Sawicki
4b5d375638
Merge pull request #431 from github/cefode
...
Support node API
2013-03-21 10:17:31 -07:00
Kevin Sawicki
39ee6f66ba
Remove unused import
2013-03-21 10:02:14 -07:00
Cheng Zhao
95090d735e
Update cefode: Fix crash when throwing exception from window context.
2013-03-21 21:56:45 +08:00
Kevin Sawicki
71f28ad9e5
💄
2013-03-20 18:50:20 -07:00
Kevin Sawicki
77b7e71920
Move jasmine-helper from vendor/ to spec/
2013-03-20 18:38:19 -07:00
Kevin Sawicki
8668998b1a
Move jasmine-focused to spec folder
...
This JS file was previously loaded in the vendor folder
even though it was internally written.
It has also been converted to CoffeeScript.
2013-03-20 18:36:55 -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
efe44fd78c
Upgrade to git-utils 0.7.0
2013-03-20 16:52:17 -07:00
Kevin Sawicki
912b9292c4
Upgrade to ctags 0.2.0
2013-03-20 16:12:09 -07:00
Kevin Sawicki
1051ad83c8
Use async queue in fs-utils traverseTree()
...
This removes the need for tracking when the traversal is done.
2013-03-20 15:54:23 -07:00
Kevin Sawicki
61cc592605
Use absolute paths in Editor.reloadGrammar() specs
2013-03-20 15:04:20 -07:00
Kevin Sawicki
529b3ac583
💄
2013-03-20 14:56:27 -07:00
Kevin Sawicki
a55fdc7551
Return absolute paths from resolve methods
...
This mirrors the behavior of require.resolve for
all the resolve methods provided by fs-utils.
2013-03-20 14:52:48 -07:00
probablycorey
d2b2c6fc8d
Remove unused code
2013-03-20 14:33:52 -07:00
Kevin Sawicki
5f771978ac
Update path when move events occur
2013-03-20 14:18:40 -07:00
Corey Johnson & Kevin Sawicki
6c357aaca7
Make paths absolute before calling $native.watchPath
...
Also return a subscription that can be unwatched instead
of returning an id that is later passed to $native.unwatchPath
along with the watched path.
This allows specs to pass when run from a symlink'ed folder.
2013-03-20 13:27:49 -07:00
Kevin Sawicki
ae96a48572
Call populateProjectPaths when callback completes
...
This removes duplicate code for the cases when a callback
is used and when the view already has populated paths.
2013-03-20 11:59:38 -07:00