Commit Graph

3170 Commits

Author SHA1 Message Date
Kevin Sawicki
83dcf79bcf Use fs-plus 2013-11-01 08:46:02 -07:00
Nathan Sobo
7d64cd179e Always mock atom.packages.resolvePackagePath
…instead of only in package specs. This allows specs that assume it is
mocked to work correctly when we run the full spec suite. Namely, the
settings-view specs had an issue with this.
2013-10-31 17:08:40 -06:00
Nathan Sobo
62ccf92a5d Get core specs passing w/ Telepath v0.14.0. Delete replication specs.
Telepath v0.14.0 is a ground-up rewrite of the replication library,
which is principally designed to support moving document fragments
within the overall document. But it's also a lot better in a number of
ways. This commit does the minimal to get things working on the new
telepath. Standard package specs don't pass yet. Also, I deleted the
replication specs since they are extremely convoluted and will be able
to be replaced with much better versions once I complete the changes
enabled by the new Telepath.
2013-10-31 17:08:40 -06:00
Ben Ogle
d150170e5b Fix gutter rendering when there are folds
Fixes #1059
2013-10-31 12:54:21 -07:00
Kevin Sawicki
82e5545f6e Stub refresh methods in replication spec 2013-10-30 14:54:48 -07:00
Kevin Sawicki
e6b3f400c0 Update git status on buffer path-changed events 2013-10-30 14:15:52 -07:00
Ben Ogle
0bd701b4a6 Fix tests 2013-10-30 11:25:30 -07:00
Ben Ogle
1be8d5e618 Add openSingletonSync() to rootView 2013-10-30 11:25:30 -07:00
Ben Ogle
a212a7c259 pane.split() doesn't implicitly copy the active item. 2013-10-30 11:25:30 -07:00
probablycorey
d07bf338c8 Consolidate pane item destruction 2013-10-29 15:55:07 -07:00
Kevin Sawicki
059671c454 🐎 Load packages by path
Previously the package paths were converted to names and then
re-resolved to paths.

Now we just load the paths directly reducing the number of stat calls
and saving ~50ms in PackageManager::loadPackages

Also now internal packages are loaded by parsing the package.json
file for packageDependencies instead of loading the metadata for all
packages in node_modules and checking the engines field.
2013-10-29 13:31:42 -07:00
Kevin Sawicki
91436bec25 Add config.unshiftAtKeyPath helper 2013-10-29 13:31:42 -07:00
probablycorey
e7e28b568b Purge autosave from Atom source 2013-10-28 17:27:44 -07:00
Corey Johnson
ef2a322229 Merge pull request #1037 from atom/cj-buffer-serialization
When opening a window, only use serialized buffer text if the contents on disk have not changed.
2013-10-28 09:48:43 -07:00
Kevin Sawicki
57577966e7 Add assert for .5 indent level 2013-10-26 15:21:02 -07:00
Kevin Sawicki
08d5231d28 Add assert for unindented line 2013-10-26 15:21:02 -07:00
Kevin Sawicki
05c3d89381 Measure indent prefix on each line being commented
Previously a single indent string was used to replace all lines
which could corrupt lines using hard tabs since the indent string
used for replacement was two spaces causing the first character
of the line to be deleted.

Closes atom/language-c#1
2013-10-26 15:21:02 -07:00
probablycorey
bb281ce5af 💄 2013-10-25 15:19:20 -07:00
probablycorey
5cee47c207 Fix replication spec
Don't rely on serialization to handle modifications after documents are
connected.
2013-10-25 14:21:23 -07:00
probablycorey
2d40cb09d1 Remove focused spec 2013-10-25 14:03:27 -07:00
probablycorey
8956881192 Only load serialized content if the disk content's have not changed. 2013-10-25 13:50:16 -07:00
probablycorey
32bc8a6258 Remove initialText option from TextBuffer constructor 2013-10-25 13:50:06 -07:00
probablycorey
1f30231d5c Project.scan scans buffer if the file is modified
Closes #487
2013-10-24 15:32:32 -07:00
probablycorey
c424f7bafa Remove console.log 2013-10-24 15:04:38 -07:00
Ben Ogle
997891f298 Fixup specs 2013-10-22 15:07:09 -07:00
Ben Ogle
967c04fb19 Clean up theme check in PackageManager with PackageActivators
You can now call `PackageManager.registerPackageActivator` for specific
package types. On `PackageManager.activate` it will call your
`PackageActivator.activatePackages(packages)` with the proper packages.
2013-10-22 15:07:09 -07:00
Ben Ogle
ecbb7cad23 fix test from config 2013-10-22 15:06:54 -07:00
Ben Ogle
71a24ec49b Fix config tests 2013-10-22 15:06:54 -07:00
Ben Ogle
c614519529 Clean up the tests; add tests for disablePackage() 2013-10-22 15:06:54 -07:00
Ben Ogle
7b1b73e8eb Watch the core.disabledPackages config option 2013-10-22 15:06:54 -07:00
Ben Ogle
abe36765b5 Fix test for both local and janky 2013-10-22 15:06:25 -07:00
Ben Ogle
eaea8753f5 nof 2013-10-22 15:06:25 -07:00
Ben Ogle
0b74dfc67a Remove unnecessary lines 2013-10-22 15:06:25 -07:00
Ben Ogle
4440210d9a Fix tests 2013-10-22 15:06:25 -07:00
Ben Ogle
56832b11fc Refactor pkg and themeManager -- all themes stored in the pkg manager 2013-10-22 15:06:25 -07:00
Ben Ogle
077cb9ddb7 Add an enableTheme() function to ThemeManager
And use it in the activatePackage() function in PackageManager
2013-10-22 15:04:55 -07:00
Kevin Sawicki
b2dae8be6c Update package for new name 2013-10-22 11:38:10 -07:00
Kevin Sawicki
3b05b40d66 Update package names for new language- prefix 2013-10-22 09:01:30 -07:00
Cheng Zhao
5d701d899e Merge pull request #1011 from atom/no-root-tmp
Do not always use "/tmp" to represent system temporary directory
2013-10-21 17:37:04 -07:00
Kevin Sawicki
948a2a47a3 Add spec for JSON tokenizing with Unicode characters 2013-10-21 08:25:15 -07:00
Cheng Zhao
89f72c36f8 💄 Do not use "path" as file path's variabla name. 2013-10-21 22:36:40 +08:00
Cheng Zhao
017c3315d2 💄 Fix typos in specs. 2013-10-21 22:23:22 +08:00
Cheng Zhao
0a561643a9 Home directory is process.env.USERPROFILE on Windows. 2013-10-21 22:04:51 +08:00
Cheng Zhao
94f441e123 💄 Add missing ")". 2013-10-21 21:49:55 +08:00
Cheng Zhao
05550717e2 Use temp.dir to replace '/tmp' in specs. 2013-10-21 21:36:08 +08:00
Matt Colyer
702eaea483 Merge pull request #991 from atom/menu-improvements
Improve menus for discoverablity
2013-10-18 13:04:37 -07:00
Matt Colyer
9ea2bfa920 Clear menu template to avoid separator duplication 2013-10-18 11:34:19 -07:00
Matt Colyer
5541875965 Don't append duplicate menu items
Fixes #995
2013-10-18 10:20:03 -07:00
Kevin Sawicki
069208975c Add proper invisibles in empty lines with indent guide
This fixes a regression where multiple end of line invisibles were
displayed on empty lines when the indent guide was also enabled.

The invisibles array used to be shifted and not it isn't but the
entire array was still being iterated over causing extra invisibles
to be added to the line.
2013-10-17 18:31:59 -07:00
Kevin Sawicki
d6452c37d8 Clear menu template after each spec run
This is needed since packages don't destroy menus when deactivated
so the template currently grows larger each time a package is activated.
2013-10-17 16:31:15 -07:00