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
Ben Ogle
eb0e3df720
Suppress deprecations in workspaceView
2014-11-26 14:55:39 -08:00
Ben Ogle
60a49d9c81
nof
2014-11-26 14:55:39 -08:00
Ben Ogle
43ccf0a041
Convert require ‘atom’ to require '../src/space-pen-extensions'
2014-11-26 14:55:38 -08:00
Ben Ogle
1f6764e708
No longer require atom in the spec-helper
2014-11-26 14:55:38 -08:00
Nathan Sobo
1e50985ec7
Add ‘position’ option to overlay decorations
...
By default overlays are positioned at the head of the given marker.
This option allows them to be positioned at the tail instead by passing
`position: ’tail’` when creating the decoration, which is useful for
autocomplete.
2014-11-26 12:29:52 -07:00
Ben Ogle
362bd2e61a
Use atom.notifications when there is a config file error
2014-11-25 15:44:13 -08:00
Nathan Sobo
c92f805e6e
Remove deprecated requires from spec-helper
2014-11-25 08:18:26 -07:00
Nathan Sobo
85d6689344
Merge pull request #4305 from atom/ns-add-legacy-panel-classes
...
Add legacy panel classes for theme support
2014-11-25 07:43:17 -07:00
Max Brunsfeld
0abd25ad6f
Fix ordering of panels in panel containers
...
An off-by-one error caused new panels to be inserted later
in the document than intended.
2014-11-24 17:29:31 -08:00
Nathan Sobo
1e9a8b92f2
Fix workspace model spec now that legacy panel class is added in view
2014-11-24 17:03:32 -07:00
Nathan Sobo
dda2b2e893
Don’t apply ‘tool-panel’ class to modal panels
2014-11-24 16:46:47 -07:00
Nathan Sobo
73763d3e41
Add legacy panel classes to support old theme selectors
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-24 16:37:37 -07:00
Ben Ogle
1ae8862a9c
Notification::getTimestamp()
2014-11-24 14:58:21 -08:00
Ben Ogle
e24a562387
Use bug icon for fatal errors
2014-11-24 14:58:21 -08:00
Ben Ogle
9c6a5fb4fa
Messages -> notifications
2014-11-24 14:58:21 -08:00
Ben Ogle
78ee02f0c6
nof
2014-11-24 14:58:21 -08:00
Ben Ogle
e462fdc4ce
Add specs for Message
2014-11-24 14:58:21 -08:00
Ben Ogle
3d6c9ee554
Add a MessageManager to atom.messages
2014-11-24 14:58:20 -08:00
Ben Ogle
d5d6422d28
Add beginning of message system
2014-11-24 14:58:20 -08:00
Max Brunsfeld
b374c1a11a
Preserve 1st line's leading whitespace on paste
2014-11-22 09:43:23 -08:00
Nathan Sobo
97a56574e0
Merge pull request #4259 from atom/ns-deprecate-syntax-global
...
Rename atom.syntax to atom.grammars
2014-11-20 14:11:45 -07:00
Nathan Sobo
d4dee07b41
Fix window-spec for key name change in deserialized state
2014-11-20 13:12:17 -07:00