Kevin Sawicki
16cc9f76c4
📝 Tweak spec description
2015-01-16 09:33:42 -08:00
Kevin Sawicki
6ad8aa7e5c
Ignore buffer errors when the path is a directory
...
This would previously cause Atom to fail to launch if a buffer's
serialized path was now a directory on launch.
2015-01-16 09:33:42 -08:00
Nathan Sobo
c69f4baa04
Merge pull request #5068 from atom/ns-line-number-decorations
...
Rename 'gutter' decorations to 'line-number'
2015-01-14 20:04:02 -07:00
Nathan Sobo
49699bddf2
Fix styleSheets manifest key in package.json of fixtures
2015-01-14 19:52:26 -07:00
Nathan Sobo
8c574bfd30
Rename 'gutter' decorations to 'line-number' decorations
2015-01-14 19:49:46 -07:00
Nathan Sobo
fb4956dde6
Fix deprecated styleSheets manifest key
2015-01-14 18:48:27 -07:00
Ben Ogle
274ae6cd57
Use buffer.getPath not @getPath in project
...
😬
2015-01-14 16:15:53 -08:00
Ben Ogle
7d3fe78eed
Remove Pane require from workspace view specs
2015-01-14 16:15:53 -08:00
Ben Ogle
3dc908c5ff
Use eventType
from pathwatcher's watch errors in messages
2015-01-14 16:15:53 -08:00
Ben Ogle
683203a9a1
Attempt to fix theme manager specs
...
They work for me!
2015-01-14 16:15:53 -08:00
Ben Ogle
3ec3c2b69d
Fix theme manager specs
2015-01-14 16:15:53 -08:00
Ben Ogle
1bc2248fc2
Fix config specs
2015-01-14 16:15:53 -08:00
Ben Ogle
4be793f465
Post notifications when the user’s sheet cannot be loaded / parsed
2015-01-14 16:15:53 -08:00
Ben Ogle
3454249b58
Allow ENOENT errors in project.open
2015-01-14 16:15:52 -08:00
Ben Ogle
cbd42ac20c
Don’t need the pane in workspace.open
2015-01-14 16:15:52 -08:00
Ben Ogle
b8efbedee1
Create a warning notification when buffer has a watch error
2015-01-14 16:15:52 -08:00
Ben Ogle
8435826e8a
Remove linter errors
2015-01-14 16:15:52 -08:00
Ben Ogle
16468eb65d
Move workspace specs to workspace.
2015-01-14 16:15:52 -08:00
Ben Ogle
d5e04e883e
Use the error.code and path in the error
2015-01-14 16:15:52 -08:00
Ben Ogle
c20d3a8182
Throw an error when the error is unhandled
2015-01-14 16:15:51 -08:00
Ben Ogle
ca1f66d197
Post a notification when the user cannot access a file
2015-01-14 16:15:51 -08:00
Ben Ogle
4138b95146
Remove unnecessary < chars. wtf
2015-01-14 16:15:51 -08:00
Ben Ogle
11d4222c9f
Handle error when opening a file that doesn’t exist
2015-01-14 16:15:51 -08:00
Ben Ogle
bc454f14e0
Add a warning notification for oversize file open
2015-01-14 16:15:51 -08:00
Russell Lescai
c538857cfa
Removed unnecessary braces.
2015-01-15 08:57:25 +10:30
Nathan Sobo
e60a9e45f7
Display package name correctly for ::getUri deprecation warnings
...
We capture the package name during the call to ::addOpener and use it
if any open items have the deprecated ::getUri method.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-14 14:23:17 -07:00
Max Brunsfeld
0d5a707ffb
Fix folding with splits
...
Fixes #4099
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-01-14 09:43:20 -08:00
Russell Lescai
6716e544f0
Fix spec it function.
2015-01-14 15:07:42 +10:30
Russell Lescai
2f3a9c9e35
Updated js scope selector.
2015-01-14 14:08:23 +10:30
Russell Lescai
3d1baaf3f3
Added spec. Changed argument order for config get/set.
2015-01-14 13:46:21 +10:30
Kevin Sawicki
e693254913
Prevent form submits from changing the window URL
...
Refs atom/settings-view#341
2015-01-13 16:01:24 -08:00
Nathan Sobo
49cd3eb5da
Clear window.setTimeout mock before each spec
...
This fixes a failure in the keymap spec where we assert that setTimeout
hasn’t been called.
2015-01-13 10:17:48 -07:00
Nathan Sobo
7f8ab72f53
Capitalize initialisms
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-12 22:00:24 -08:00
Kevin Sawicki
640f8920fb
Fix bounds checking of alpha
2015-01-12 17:34:43 -08:00
Kevin Sawicki
44939a12a0
Validate color properties when set
2015-01-12 17:34:43 -08:00
Kevin Sawicki
b8822b32db
Only coerce strings and plain objects
2015-01-12 17:34:43 -08:00
Kevin Sawicki
8c39818670
Don't blow up when asking for schema at non-existent path
2015-01-12 17:34:43 -08:00
Kevin Sawicki
5a2c208804
Add specs with invalid objects
2015-01-12 17:34:43 -08:00
Kevin Sawicki
fc899f54cf
Add specs for setting with an object
2015-01-12 17:34:42 -08:00
Kevin Sawicki
b923b57bcc
Add specs for hsl and hsla colors
2015-01-12 17:34:42 -08:00
Kevin Sawicki
319ec244e1
Add spec for invalid values
2015-01-12 17:34:42 -08:00
Kevin Sawicki
1267a1e14e
Add spec for default color value
2015-01-12 17:34:42 -08:00
Kevin Sawicki
0411f1584c
Add color schema type
2015-01-12 17:34:42 -08:00
Nathan Sobo
dd80226c23
Revert "Handle addition/removal of ‘gutter-hidden’ attribute"
...
This reverts commit 6926236268
.
There seems to be some bug or timing issue that prevents the
attachedCallback from being called in all cases when the
attributeChangedCallback is defined. We can figure this out at
a later time.
2015-01-12 17:39:07 -07:00
Nathan Sobo
6926236268
Handle addition/removal of ‘gutter-hidden’ attribute
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-12 16:21:31 -07:00
Nathan Sobo
43f57347d7
Add ‘gutter-hidden’ attribute to TextEditorElement
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-12 16:21:31 -07:00
Nathan Sobo
c0b78db159
💄
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-12 16:21:31 -07:00
Nathan Sobo
002918049d
🐎 Cache gutterVisible state in React component
...
This avoids a config read on every render.
2015-01-12 16:21:31 -07:00
Nathan Sobo
f00b0b7f7a
Add TextEditor::set/isGutterVisible
...
Controls gutter visibility on individual editors.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-12 16:21:31 -07:00
Max Brunsfeld
174b7072b7
Add specs for Task events
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-01-09 16:59:13 -08:00
Lee Dohm
acb19c1fe1
Log scopes to notification instead of console
...
Fixes #4969
2015-01-09 16:33:48 -08:00
Nathan Sobo
d26c19a0ec
Deprecate Project::resolve
...
It’s not something that will make sense once we add the ability to have
multiple directories in a project. This adds a new private method on
Project, ::resolvePath, with the original implementation for convenience
until we actually implement multi-folder projects.
2015-01-09 15:03:07 -08:00
Max Brunsfeld
f9bde050b4
Handle TextEditorElement::focus() while parent is being attached
...
Fixes atom/autocomplete#61
2015-01-09 15:00:35 -08:00
Nathan Sobo
19bf64f3cd
Revert "Deprecate Project::resolve"
...
This reverts commit 3c5bd9f10a
.
2015-01-09 13:58:01 -08:00
Nathan Sobo
3c5bd9f10a
Deprecate Project::resolve
...
It’s not something that will make sense once we add the ability to have
multiple directories in a project.
2015-01-09 13:40:35 -08:00
Nathan Sobo
0a5b4f9b33
Make “style sheet” two words in package.json
metadata
...
Rename `stylesheets` -> `styleSheets`
Rename `stylesheetsMain` -> `mainStyleSheet`
2015-01-09 09:04:04 -08:00
Nathan Sobo
932d3755ce
Rename stylesheets/
directory in fixture packages
2015-01-09 08:56:12 -08:00
Nathan Sobo
37ba67728b
Fix core deprecations
2015-01-09 08:24:48 -08:00
Nathan Sobo
7f9d06f55b
Move TextEditor::pixelPositionForScreen/BufferPosition to view layer
...
It doesn’t make sense to talk about pixels at the model layer long-term,
even though we currently store view dimension information in the model
so we don’t have to read from the DOM for optimization purposes. This
information is only available if the view is attached, however, making
these methods a liability on the model layer.
2015-01-09 08:22:45 -08:00
Nathan Sobo
4ab33890fc
Add PackageManager::onDidLoad/UnloadPackage
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-08 17:51:11 -08:00
Nathan Sobo
7acf3d4d6b
Add PackageManager::onDidDeactivatePackage
2015-01-08 17:51:11 -08:00
Nathan Sobo
6dd9834ae1
Remove defunct text-mate package specs
2015-01-08 17:51:11 -08:00
Nathan Sobo
a6c9244c77
Add PackageManager::onDidActivatePackage
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-08 17:51:11 -08:00
Nathan Sobo
dbc88bde18
Remove special case in spec for packages converted from text-mate
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-08 17:51:11 -08:00
Nathan Sobo
18ac0091a8
Don’t call onDidActivateInitialPackages listeners until the right time
...
We wait until all packages without activation commands actually
activate.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-08 17:51:11 -08:00
Nathan Sobo
30513cfde0
Rename ThemeManager methods for clarity/consistency
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-01-08 17:51:09 -08:00
Kevin Sawicki
fb3cc5554c
Catch errors spawning squirrel
...
Closes #4895
2015-01-07 10:24:19 -08:00
Kevin Sawicki
6fe7eb086f
Gracefully handle empty keymaps and menus
...
Closes atom/settings-view#310
2015-01-07 09:18:57 -08:00
Nathan Sobo
462af79d21
Fix deprecation suppression in specs
2015-01-07 10:12:04 -07:00
Nathan Sobo
7dd67caf57
Remove ‘group’ parameter to addStyleSheet in favor of ‘priority’
2015-01-07 09:51:42 -07:00
Nathan Sobo
2c1f8ce733
Set the style element priority based on the group
...
This ensures that elements are always in the desired order regardless
of the order the groups are added.
2015-01-06 19:41:57 -07:00
Nathan Sobo
94e12ee886
Handle priority in when inserting style elements in style manager
2015-01-06 19:33:14 -07:00
Nathan Sobo
4c74b07b22
Order style elements by priority
2015-01-06 19:14:54 -07:00
Nathan Sobo
c9eb84f2a4
Fix deprecation location reporting in spec runner
2015-01-06 11:50:20 -07:00
Nathan Sobo
180725799a
Unmount TextEditorComponent when TextEditorElement is detached
...
Fixes #4381
Fixes #4700
2015-01-06 11:35:26 -07:00
Nathan Sobo
e192922f0e
Don’t add __spacePenView property to jQuery objects in ViewRegistry
...
This property is added as needed in our legacy SpacePen views, and is
now used to trigger a deprecation warning. We don’t want to add it to
new SpacePen views because they shouldn’t trigger deprecation warnings.
2015-01-02 12:58:49 -07:00
Max Brunsfeld
eabb498af7
Fix LanguageMode::foldAllAtIndentLevel
2014-12-30 18:10:28 -08:00
Nathan Sobo
493035fe4e
Merge pull request #4606 from atom/ns-use-global-selector-in-config
...
Use `*` instead of `global` as the global selector in user settings
2014-12-30 16:37:09 -06:00
Nathan Sobo
b4756aa9b7
Remove unnecessary deprecation warning suppression
2014-12-30 13:55:49 -06:00
Nathan Sobo
651fa1aa42
💄 spelling
2014-12-30 13:53:46 -06:00
Nathan Sobo
db17fe2daa
💄 Move example to a better parent describe
2014-12-30 13:53:38 -06:00
Nathan Sobo
18481789b0
Merge pull request #4801 from atom/ns-package-settings-dir
...
Load package settings from `settings` directory and deprecate `scoped-properties`
2014-12-30 13:41:13 -06:00
Nathan Sobo
304f63532e
Replace ‘global’ config key with ‘*’ selector
2014-12-30 13:38:12 -06:00
Max Brunsfeld
6e7364c7c6
Merge pull request #4802 from atom/mb-reduce-config-saves
...
Don't write the config to disk so darn often
2014-12-30 10:41:01 -08:00
Max Brunsfeld
339f331776
Debounce saving and loading of config
2014-12-30 10:14:57 -08:00
Max Brunsfeld
32275b27a3
Always spy on _.now
2014-12-30 00:04:17 -08:00
Max Brunsfeld
5c730415b7
Use fake config file for entire Config spec
2014-12-30 00:03:34 -08:00
Max Brunsfeld
637b2b0aba
Don't save config when setting w/ non-default source
2014-12-29 17:08:26 -08:00
Nathan Sobo
b4246a2f07
Load package settings from settings
and deprecate scoped-properties
2014-12-29 15:46:10 -06:00
Nathan Sobo
31170dcfae
Merge pull request #4794 from atom/ns-move-project-scan
...
Move Project::replace and ::scan to Workspace
2014-12-29 15:03:19 -06:00
Max Brunsfeld
c7771ffde9
Add Config::getAll, deprecate ::settingsForScopeDescriptor
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-12-29 11:01:46 -08:00
Nathan Sobo
bdfc862dac
Move Project::replace to Workspace
2014-12-29 11:43:17 -06:00
Nathan Sobo
2c7aa170e9
Move Project::scan to Workspace
2014-12-29 11:35:07 -06:00
Max Brunsfeld
d508d1eedf
Handle a source but no selector in ::unset
2014-12-26 17:24:27 -08:00
Max Brunsfeld
2949ebfe86
Deprecate Config::addScopedProperties
2014-12-26 17:13:33 -08:00
Max Brunsfeld
dbaef8e593
Handle null key-path in Config::set
2014-12-26 14:58:17 -08:00
Max Brunsfeld
b4b492a321
💄 Organize config-spec
...
* Group tests by method rather than by scoped vs unscoped
* Group deprecated methods together
* Group internal methods together
* Make descriptions more consistent
2014-12-24 16:56:53 -08:00
Max Brunsfeld
883c48b490
Merge pull request #4753 from atom/mb-add-config-get-sources
...
Add Config::getSources
2014-12-23 20:35:42 -08:00
Max Brunsfeld
c328092463
💄 package-manager-spec
2014-12-23 17:14:25 -08:00
Max Brunsfeld
b1a3d89af3
Fix grammar in spec description
2014-12-23 17:05:21 -08:00
Max Brunsfeld
d90daf07f8
In PackageManager::activatePackage reject, don't throw
2014-12-23 16:47:43 -08:00
Max Brunsfeld
388428b074
Fix logic error when exception is thrown in config observer
2014-12-23 16:47:43 -08:00
Max Brunsfeld
60c5293b5e
Add Config::getSources
...
The settings-view needs this so that it can display snippets
associated with packages
2014-12-23 11:15:32 -08:00
Max Brunsfeld
a1b4820c04
Revert "Revert "Merge pull request #4631 ""
...
This reverts commit dc2a453986
.
Conflicts:
spec/config-spec.coffee
src/config.coffee
2014-12-23 09:26:40 -08:00
Kevin Sawicki
b5632b6988
Verify TextEditor::onDidChangeGrammar in specs
2014-12-23 09:08:57 -08:00
aershov
8148446a86
Remove unused variable from text-editor-spec
2014-12-23 02:24:30 +03:00
aershov
5c7177746c
Remove unused variable and extra newline from text-editor-spec
2014-12-23 00:26:38 +03:00
aershov
229e7e03b2
Respect initialLine and initialColumn options when reopening a file
...
Fix #1743
2014-12-21 21:08:18 +03:00
Kevin Sawicki
bae903a772
Update spec for changed config default
2014-12-19 18:44:21 -08:00
Ben Ogle
e0741d2073
Merge pull request #4689 from ebayer/follow-symlinks
...
Create a global option to follow symlinks in project-wide search
2014-12-19 17:12:03 -08:00
Kevin Sawicki
12d4fae91c
Fall back to system root for cmd.exe path
2014-12-18 17:58:18 -08:00
Kevin Sawicki
2f334979d5
Add explorer check using SystemRoot path
...
Closes #4551
2014-12-18 17:20:40 -08:00
Kevin Sawicki
f5ae96820a
Update spec for new middle mouse paste behavior
2014-12-18 11:04:52 -08:00
Erdem Bayer
a0038b6f56
Create a global option to follow symlinks in project-wide search
...
Fixes https://github.com/atom/find-and-replace/issues/271
2014-12-18 17:23:23 +02:00
Max Brunsfeld
b0501c9cb2
Merge pull request #4672 from atom/mb-optimize-config-events
...
Avoid firing repeated config events while packages are loaded
2014-12-17 18:11:33 -08:00
Max Brunsfeld
28ac51d140
Add Config::transact
...
Use this method to avoid emitting unecessary config events
when activating or deactivating multiple packages
2014-12-17 16:54:47 -08:00
Max Brunsfeld
b0731afd4c
Don't pass keyPath to Config::onDidChange callback
...
The keyPath field was never used by core or any package, and
for scoped settings, its value was always equal to the keyPath
specified by the caller.
2014-12-17 12:03:46 -08:00
Kevin Sawicki
1c81aa90c0
Add initial SquirrelUpdate specs
2014-12-17 10:47:43 -08:00
Max Brunsfeld
dc2a453986
Revert "Merge pull request #4631 from atom/mb-new-config-api"
...
This reverts commit 5147fb6a8b
, reversing
changes made to 9bbbb58084
.
2014-12-16 15:27:39 -08:00
Max Brunsfeld
5147fb6a8b
Merge pull request #4631 from atom/mb-new-config-api
...
New config API
2014-12-16 15:22:15 -08:00
Ben Ogle
09a0773043
Handle editor destruction when dragging.
...
Closes #4622
2014-12-16 14:52:07 -08:00
Ben Ogle
0829da53b0
Properly unmount the component when the shadow DOM is enabled.
2014-12-16 14:36:51 -08:00
Max Brunsfeld
965a6243e1
Remove toBe parens
2014-12-16 14:27:57 -08:00
Max Brunsfeld
b8f239cd39
Deprecate Config::isDefault and ::getDefault
2014-12-16 14:00:57 -08:00
Max Brunsfeld
9f851e55d1
Add Config::unset
...
Deprecate Config::restoreDefault
2014-12-16 14:00:57 -08:00
Max Brunsfeld
ab89776f01
Throw when Config::set is called w/ source and no scope
2014-12-16 14:00:57 -08:00
Max Brunsfeld
2cea51b50e
Take 'scope' option in Config::onDidChange
...
Deprecate passing the scope as an optional first argument
2014-12-16 14:00:57 -08:00
Max Brunsfeld
4e4794f3fd
Take 'scope' option in Config::observe
...
Deprecate using the scope as an optional first argument
2014-12-16 14:00:57 -08:00
Max Brunsfeld
ac6fbf100d
Fix deprecation in package-manager-spec
2014-12-16 14:00:57 -08:00
Max Brunsfeld
8c8e866a97
Use a schema in all specs for Config::observeUserConfig
...
Before, values loaded from the config file were set in a
way that allowed any key to be set in the root object.
Now, these values are set in a way that's similar to how
::set works.
2014-12-16 14:00:56 -08:00
Max Brunsfeld
f859ad5fc5
Allow null keyPath with options argument in ::get
2014-12-16 14:00:56 -08:00
Nathan Sobo
d30cf35a16
Use ‘source’ option rather than internal state in Config spec
2014-12-16 14:00:56 -08:00
Nathan Sobo
c35fb90653
Don’t return schema defaults when sources are specified in Config::get
2014-12-16 14:00:56 -08:00
Nathan Sobo
73df017d83
Add a ‘sources’ and ‘excludeSources’ options to Config::get
...
If the option is supplied, we will only retrieve values from the
specified sources.
2014-12-16 14:00:56 -08:00
Nathan Sobo
c58606907a
Make scope a trailing option to Config::get
2014-12-16 14:00:56 -08:00
Nathan Sobo
c489a4662b
Make scopeSelector a trailing option to Config::set
2014-12-16 14:00:56 -08:00
Ben Ogle
27174b2880
Betta spec description
2014-12-16 09:07:44 -08:00
Ben Ogle
5ff7a286fc
💄
2014-12-15 17:42:38 -08:00
Ben Ogle
f199c71fa8
Specs for the eacces error
2014-12-15 17:42:27 -08:00
Ben Ogle
265601cbdb
Nof
2014-12-15 17:20:13 -08:00
Ben Ogle
67b39845c8
Add a better error message when a directory cannot be written to.
...
Closes #4607
2014-12-15 17:19:54 -08:00
Ben Ogle
a42505b6ae
Handle is a directory
error
...
Closes #4616
2014-12-15 17:08:46 -08:00
Kevin Sawicki
202426a85b
Remove unneeded dotAtomPath assignment
2014-12-15 10:42:24 -08:00
Kevin Sawicki
263567649d
Only call log when deprecations exist
2014-12-12 15:37:49 -08:00
Kevin Sawicki
a1d0635d98
Start logging deprecations on CI
2014-12-12 13:24:10 -08:00
Kevin Sawicki
91770f2885
Add buffer subscriptions to repo's subscriptions
...
Closes #4570
2014-12-12 12:26:09 -08:00
Kevin Sawicki
d581c41c0e
Update spec since { lines now outdent in JS
2014-12-11 16:35:21 -08:00
Max Brunsfeld
e7b0c3e519
Deprecate Config::getSettings
...
Also, remove support for getting all settings for a scope selector
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-12-11 15:04:55 -08:00
Ben Ogle
278a507653
Merge pull request #4531 from atom/bo-buffered-process-error
...
Better BufferedProcess error handling
2014-12-10 18:17:09 -08:00
Nathan Sobo
7422f4378e
Add property filters to TextEditor::getDecorations methods
...
This makes it much easier to write tests that inspect the state of
decorations.
2014-12-10 19:11:50 -07:00
Ben Ogle
f2ab14656b
BufferedProcess::onDidThrowError -> ::onDidThrowError
2014-12-10 18:08:43 -08:00
Ben Ogle
bf63a9715c
Add BufferedProcess::onDidThrowError()
2014-12-10 16:26:57 -08:00
Max Brunsfeld
a6f31ed791
Pass event to Cursor::onDidChangePosition callbacks
2014-12-09 17:21:03 -08:00
Nathan Sobo
b386b00bc0
Wait for next animation frame before measuring when stylesheets change
...
Fixes #4479
2014-12-09 14:56:33 -07:00
Nathan Sobo
299ea18c58
Don’t try to upgrade CSS rules with no selector text
...
Fixes #4469
2014-12-09 13:41:33 -07:00
Nathan Sobo
966360e022
Set ::visible to false on panels when they are destroyed
2014-12-09 13:41:33 -07:00
Max Brunsfeld
5c37d208f5
Don't throw when ::getDefaultCharacterWidth is called while detached
2014-12-08 16:56:46 -08:00
Max Brunsfeld
8f02b21d08
Add TextEditorElement::onDidAttach, ::onDidDetach
2014-12-08 16:21:59 -08:00
Max Brunsfeld
953f2c61f7
Add TextEditorElement::getDefaultCharacterWidth
2014-12-08 16:14:26 -08:00
Kevin Sawicki
aa292874ec
Add reload button to specs window
2014-12-05 15:03:16 -08:00
Ben Ogle
f095d38978
Add dismissing to notifications
2014-12-05 13:46:01 -08:00
Max Brunsfeld
4afe133f85
Allow setting editor text content in HTML
2014-12-05 09:30:33 -08:00
Max Brunsfeld
aecd689593
Call Workspace::getActiveTextEditor, not ::getActiveEditor
2014-12-04 08:57:33 -08:00
Max Brunsfeld
6a83246838
Use native DOM APIs for window drag/drop listeners
...
Otherwise, these event handlers will interfere with other
event handlers bound using other versions of jQuery
2014-12-03 20:26:36 -08:00
Ben Ogle
24f7638e8b
Add Workspace::panelForItem()
2014-12-03 12:46:42 -08:00
Nathan Sobo
c1a93395f5
Fix deprecated Workspace::getActiveEditor call
2014-12-03 12:02:47 -07:00
Ben Ogle
37e6f03346
Fix tooltip command display when command has no keybinding
2014-12-02 16:31:38 -08:00
Nathan Sobo
fbc9c05096
Add Workspace::onDidDestroyPane
...
This helps with the background-tips conversion
2014-12-02 11:57:38 -07:00
Nathan Sobo
cfca6ecc86
Add specs for PaneContainer::onDidAddPane
2014-12-02 11:57:38 -07:00
Nathan Sobo
625b95a6d9
Test TextEditorElement::setUpdatedSynchronously without waiting
...
Another attempt to fix flakiness.
2014-12-02 11:37:28 -07:00
Nathan Sobo
38e6aee46d
Un-f
2014-12-02 11:14:59 -07:00
Nathan Sobo
93bf9357b0
Remove waitsForAnimationFrame spec helper
...
It doesn’t work reliably on CI.
2014-12-02 11:14:02 -07:00
Max Brunsfeld
a7a9b3707f
Merge pull request #4365 from atom/ns-view-registry-cleanup
...
Clean up view registry API
2014-12-02 08:55:00 -08:00
Kevin Sawicki
7e16e42b3f
x out flaky spec
2014-12-02 08:39:52 -08:00
Nathan Sobo
9a9347e3a5
Simplify ViewRegistry::addViewProvider API
...
It now takes two arguments, a model constructor and a create view
callback that is passed the model.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-12-01 17:53:03 -08:00
Max Brunsfeld
e4bcb96dcc
Change ::setModel to ::initialize on all element classes
2014-12-01 17:52:19 -08:00
Nathan Sobo
4591f00a65
Remove view registry references from the workspace model layer
...
Removed various ::getView methods from the model. Using the atom.views
global in the views for now, but going to switch them over to using a
locally assigned view registry instead in a subsequent commit.
2014-12-01 16:28:33 -08:00
Nathan Sobo
7dc9d0c8ce
Add Workspace::onWillDestroyPaneItem
...
It is needed by the autosave package which previously relied on DOM
bubbling to coalesce events from various panes.
2014-12-01 10:39:29 -07:00
Kevin Sawicki
a5b7d15bcc
Remove screen line logging from spec
2014-12-01 08:39:09 -08:00
Max Brunsfeld
6b3ba8e332
Add panel getter methods to workspace
...
This will make it easier to test packages that use panels
without using the DOM
2014-11-28 09:56:02 -08:00
Nathan Sobo
de619a731b
Merge pull request #4315 from atom/remove-deprecations
...
Remove deprecations from core
2014-11-27 12:16:35 -07:00
Nathan Sobo
2a00acfdaf
Remove call to begin/commitTransaction in text-editor-spec
2014-11-27 11:58:38 -07:00
Nathan Sobo
0b44cee8db
Separate IPC messages that don’t belong in the command palette
...
Path opening and update signaling were both using the command-sending
IPC mechanism, but neither is actually a command. This commit adds a
second “message” channel with custom handling on the render process
side for these messages, rather than attempting to route them through
commands.
2014-11-27 10:30:50 -07:00
Nathan Sobo
ddc04f2278
Fix spec name
2014-11-27 09:11:21 -07:00
Nathan Sobo
f64a813fc6
Remove deprecated Project::setPath call
2014-11-27 09:09:33 -07:00
Nathan Sobo
68bc3f6ead
Add assertions and suppress deprecation warnings in theme-manager-spec
...
The new expected behavior is now tested. The deprecated behavior is
also tested until we remove it later.
2014-11-27 09:03:40 -07:00
Nathan Sobo
b341749d54
Add TextEditorElement::setUpdatedSynchronously
...
To allow testing of async editor rendering in packages. This is helpful
for overlay decorations which behave differently when rendering is
async.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-26 18:13:12 -07:00
Ben Ogle
9cec02420c
Suppress deprecations while testing legacy code path
2014-11-26 14:55:40 -08:00
Ben Ogle
ffda2386c3
Suppress deprecations for package loading.
2014-11-26 14:55:40 -08:00
Ben Ogle
aefc647155
Use normalizeLineEndings: false hash
2014-11-26 14:55:39 -08:00
Ben Ogle
83455a7f3a
Remove specs for deprecated methods that are tested elsewhere
2014-11-26 14:55:39 -08:00
Ben Ogle
d8f64c15b8
Use project.getDirectories()
2014-11-26 14:55:39 -08:00
Ben Ogle
c927e95c2c
Suppress deprecations on pane-view
...
It’s going away anyway…
2014-11-26 14:55:39 -08:00
Ben Ogle
5b12646a44
Suppress deprecations on deprecated code path
2014-11-26 14:55:39 -08:00
Ben Ogle
68bb43ee7d
Add onDidChangeTitle and onDidChangeModified methods to TestView
2014-11-26 14:55:39 -08:00
Ben Ogle
4048fb978c
Suppress deprecations for package activation
2014-11-26 14:55:39 -08:00
Ben Ogle
2d885496a3
Update to new menu format
2014-11-26 14:55:39 -08:00
Ben Ogle
64222d3096
Suppress deprecations in configDefault test
2014-11-26 14:55:39 -08:00
Ben Ogle
a45e9a1e8b
Remove deprecations in config
2014-11-26 14:55:39 -08:00
Ben Ogle
3fd5ba9b3c
Remove unnecessary workspaceView requires
2014-11-26 14:55:39 -08:00