Kevin Sawicki
f63ed1035d
Correct typo in spec
2013-01-10 09:30:12 -08:00
Kevin Sawicki
c3a993c1f6
Support logging longest suites
2013-01-10 09:29:42 -08:00
Kevin Sawicki
14d9fc5e45
Search for a more specific string
...
This spec only requires one match so don't search
for something that has many matches and will take
longer to display.
Reduces the run time of this spec by ~1.5 seconds.
2013-01-10 09:01:14 -08:00
Kevin Sawicki
339d29e1b5
Search for something with fewer results
...
Previously the search query used in the command panel
spec returned 500+ matches when the specs needed far
less to verify moving up and down and scrolling.
This reduces the time take to run the command panel spec
by ~2.5 seconds.
2013-01-10 08:47:10 -08:00
Kevin Sawicki
7a89de077b
Log longest specs explicitly
...
Instead of logging them to the console at the end of the run,
add two new methods, logLongestSpec() and logLongestSpecs(number)
to the window object that will print out the results.
2013-01-10 08:37:32 -08:00
Kevin Sawicki
f76db1f957
Log 10 longest running specs
2013-01-09 19:21:04 -08:00
Kevin Sawicki & Nathan Sobo
06e39595ba
Make RootView listen for events before loading packages
...
This is because RootView listens to some of its own events. It needs
to be first in line to handle its own events because package event
handlers might rely on tree view's event handlers having been run.
This also brings behavior more in line with what we'll experience in
specs.
2013-01-09 19:27:19 -07:00
Kevin Sawicki & Nathan Sobo
3db7af1edf
Don't show the tree view until the project has a path
2013-01-09 19:27:19 -07:00
Kevin Sawicki & Nathan Sobo
bb6bed85c6
Raise exception when destroyed repo is accessed
2013-01-09 17:12:15 -08:00
Kevin Sawicki & Nathan Sobo
caffda6027
Add Git.destroy() that frees native repository
2013-01-09 17:07:29 -08:00
Corey Johnson
d5a23f770f
Override meta-w to be a noop on tool-panels
2013-01-09 13:19:22 -08:00
Nathan Sobo
46331ded03
Merge remote-tracking branch 'origin/command-extensions' into dev
...
Conflicts:
spec/app/editor-spec.coffee
spec/app/root-view-spec.coffee
src/app/editor.coffee
src/extensions/strip-trailing-whitespace.coffee
2013-01-09 14:18:10 -07:00
Nathan Sobo
2c4da1b8dd
Merge branch 'snippets' into dev
...
Conflicts:
src/app/package.coffee
src/packages/snippets/src/snippets.coffee
2013-01-09 13:10:11 -07:00
Kevin Sawicki
ba614d5549
Throw error from GitRepository constructor
2013-01-09 11:53:13 -08:00
Nathan Sobo
6c2607a5e0
Sort $0 tab stops last instead of first for TextMate compatibility
2013-01-09 12:32:11 -07:00
Kevin Sawicki
3e7f710b35
💄
2013-01-09 11:07:45 -08:00
Corey Johnson
d4b74f9858
Migrate to new RootView serialization scheme
2013-01-09 10:43:41 -08:00
Corey Johnson & Nathan Sobo
c56788fd04
Catch packing loading exceptions in Package@load
...
Instead of in AtomPackage.load
2013-01-09 10:43:41 -08:00
Nathan Sobo
e33f93b40c
Load snippets from TextMate bundles
...
There's still a bunch of holes in this. TextMate snippets have features
that we don't support yet. But the basic ones should now work.
2013-01-09 11:43:11 -07:00
Kevin Sawicki
7a5d8da201
Add installing package doc file
2013-01-09 10:33:57 -08:00
Kevin Sawicki
43ecc876be
Move package layout docs to packages/intro.md
2013-01-09 10:25:39 -08:00
Kevin Sawicki
077310b80c
Put layout before includes and link to package docs
2013-01-09 10:17:39 -08:00
Kevin Sawicki
2d11239ac1
Stub out more docs
2013-01-09 10:03:53 -08:00
Kevin Sawicki
8d0d62b486
Add Git.open that returns null on exceptions
2013-01-08 21:15:42 -08:00
Kevin Sawicki
6f5e29d48e
Throw exception when repository fails to open
...
Removes need to check if the repository is valid before
each native API call and also removes calling into the
native-side if no repository can be opened for the project
page.
2013-01-08 21:15:41 -08:00
Corey Johnson
95dcf275e4
Remove *.getLastCursor()
2013-01-08 18:27:29 -08:00
Corey Johnson
f9e9b4203c
*.getCursor() always returns last cursor (does not use index)
...
We weren't using the index functionality anywhere.
2013-01-08 18:27:29 -08:00
Kevin Sawicki
c4f82c8db5
Update libgit2 to commit 11fccddcb5
...
Closes #122
2013-01-08 17:43:30 -08:00
Kevin Sawicki
61600fcdf1
Reload grammar with edit session path changes
2013-01-08 17:12:08 -08:00
Kevin Sawicki
d9385888c8
Only update display when grammar changes
2013-01-08 16:54:51 -08:00
Kevin Sawicki
14efcefad9
Add property list bundle
...
Also adds the xml bundle which is a requirement of
the property list bundle.
2013-01-08 16:22:38 -08:00
Kevin Sawicki
2b51a2ce73
Test firstLineRegex first when finding grammar
...
This is required for the property-list bundle to highlight
.plist files that maybe in XML or non-XML formats.
Also specify the cached buffer disk contents to grammarForFilePath
so fs.read doesn't need to be called again if the contents are
already read.
2013-01-08 16:15:38 -08:00
Kevin Sawicki
1872335adf
Rename grammarByShebang to grammarByFirstLineRegex
...
A bundle's firstLineRegex value is used for more than
just shebang matches such as in the plist bundle.
2013-01-08 16:01:46 -08:00
Corey Johnson & Kevin Sawicki
131708ba37
Serialize grammar overrides for paths
2013-01-08 15:24:14 -08:00
Corey Johnson & Kevin Sawicki
c67fbef2b2
Store grammar overrides on project
2013-01-08 14:39:32 -08:00
Kevin Sawicki
fee1e7bc8b
Escape ext in RegExp from fs.base
2013-01-08 13:31:37 -08:00
Kevin Sawicki
594813be34
Escape path in RegExp from fs.directory()
2013-01-08 13:30:41 -08:00
Kevin Sawicki
321d424c44
Support unsetting explicit grammar for path
2013-01-08 13:17:47 -08:00
Kevin Sawicki
3b47c26b4d
Change an edit session's grammar on meta-l
2013-01-08 13:17:12 -08:00
Nathan Sobo
cab5b25e76
Fix undo/redo of snippet expansions. Tab stops are restored correctly.
...
We're giving up on correctly restoring snippet expansions that
occurred in a different EditSession.
2013-01-08 12:54:49 -07:00
Nathan Sobo
a03bb7bf2e
Un-f
2013-01-08 12:53:43 -07:00
Corey Johnson & Nathan Sobo
12794672b7
Merge branch 'objective-c-grammar'
2013-01-08 10:55:24 -08:00
Corey Johnson & Nathan Sobo
7372ae00cd
Resolve $base includes correctly in TextMate grammars
2013-01-08 10:50:23 -08:00
Kevin Sawicki
498e2dc226
Remove unused require
2013-01-08 09:34:24 -08:00
Kevin Sawicki
08d68e6111
Rename event-palette to command-palette
2013-01-08 09:30:37 -08:00
Kevin Sawicki
7465ae5052
Close all editors in pane with meta-P
2013-01-08 09:06:20 -08:00
Nathan Sobo
1b1d8b0390
Merge remote-tracking branch 'origin/master' into cson-snippets
2013-01-07 21:53:36 -07:00
Nathan Sobo
314e3da8bc
WIP: Destroy nested tab stops when engulfed by a buffer change
...
Has 2 failing specs...
There are still some issue with this code's interaction with the undo
system. The tab stops will need to be or destroyed when certain
changes are undone or redone.
2013-01-07 21:53:08 -07:00
Kevin Sawicki
fffba45b50
💄
2013-01-07 19:36:13 -08:00
Kevin Sawicki
adfb6dee12
💄
2013-01-07 18:21:03 -08:00