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
Ben Ogle
61651db0b0
Render the deprecations as markdown
2014-11-20 11:41:53 -08:00
Ben Ogle
8afbab311f
Merge pull request #4248 from atom/bo-deprecate-workspace-view
...
Deprecate workspaceView
2014-11-20 10:53:19 -08:00
Nathan Sobo
d53d01d95b
Replace atom.syntax with atom.grammars
2014-11-20 11:42:49 -07:00
Nathan Sobo
131522f93d
Rename Syntax to GrammarRegistry
2014-11-20 11:38:01 -07:00
Nathan Sobo
78e61c3ff9
Remove ability to add tooltip with selector
...
It’s incompatible with returning a disposable because there’s no way
to distinguish multiple tooltips added to the body with different
selectors. Maybe someday.
2014-11-19 19:20:48 -07:00
Nathan Sobo
22c9a222c9
Return a Disposable from TooltipManager::add
2014-11-19 19:19:05 -07:00
Nathan Sobo
7bdf3b1719
Add support for keyBindingTarget to TooltipManager::add
2014-11-19 19:10:36 -07:00
Nathan Sobo
175d7811b4
Add TooltipManager
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-19 18:57:08 -07:00
Ben Ogle
3f3fca872b
Remove the unsubscribe spy
...
Sorry @nathansobo, this is making the window specs fail
2014-11-19 17:46:33 -08:00
Ben Ogle
557d277e9f
Remove workspaceView references from the window-specs
2014-11-19 17:46:32 -08:00
Ben Ogle
3fc514659a
Remove workspaceView references from ThemeManager
2014-11-19 17:46:32 -08:00
Ben Ogle
747398f2a5
Remove workspaceView from spec-helper
2014-11-19 17:46:32 -08:00
Ben Ogle
fb223db958
Remove workspaceView from PackageManager specs
2014-11-19 17:46:32 -08:00
Ben Ogle
016f32d62e
Add a FIXME for this workspaceView bit
2014-11-19 17:46:32 -08:00
Ben Ogle
6bdbabecbd
Add jasmine.attachToDOM
2014-11-19 17:08:54 -08:00
Nathan Sobo
677be2df82
Merge pull request #4223 from atom/ns-deprecate-style-sheet-events
...
Deprecate style sheet event methods on ThemeManager
2014-11-19 14:59:20 -07:00
Ben Ogle
a25920da72
Merge pull request #4225 from atom/bo-error-events
...
Add onWillThrowError
2014-11-19 11:55:45 -08:00
Kevin Sawicki
6d0be70dbc
Spy on ipc.send and make it synchronous
2014-11-19 11:32:20 -08:00
Ben Ogle
74966bd547
Emit an event object from atom.onDidThrowError
2014-11-19 11:28:01 -08:00
Nathan Sobo
49471070a3
Move public stylesheet related methods off of atom.themes
...
* Move atom.themes.getUserStylesheetPath to
atom.styles.getUserStyleSheetPath
* Deprecate atom.themes.requireStylesheet
2014-11-19 10:31:03 -07:00
Max Brunsfeld
0ca9d7b97e
Remove the normalizeIndentOnPaste
setting. Always do it.
2014-11-19 09:13:30 -08:00
Max Brunsfeld
270642b2ea
Add special paste behavior when copying/cutting w/ no selection
2014-11-18 18:58:25 -08:00
Max Brunsfeld
7c43ea7a0f
Restore correct indent behavior when inserting newlines
...
When explicitly auto-indenting and when pasting, indentation is based
on the previous non-blank line. When simply inserting newlines,
the previous line is used, even if it is blank.
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-11-18 17:27:43 -08:00
Ben Ogle
e534997bf9
Specs for the error handler.
2014-11-18 14:42:03 -08:00
Max Brunsfeld
e34eb151ca
Respect 'normalizeIndentOnPaste even w/ multiple selections
2014-11-17 19:24:37 -08:00
Max Brunsfeld
4ee1987af4
Don't rely on clipboard metadata format in editor specs
...
In order to fix indent-normalization with multiple selections,
I want to change the format of this metadata
2014-11-17 19:23:02 -08:00
Max Brunsfeld
c4eecbb380
💄
2014-11-17 17:47:22 -08:00
Max Brunsfeld
24432018ec
Reorganize editor auto-indent specs
2014-11-17 16:59:57 -08:00
Max Brunsfeld
5ec38f84c5
Reorganize editor normalizeIndentOnPaste specs
2014-11-17 16:59:56 -08:00
Ben Ogle
1b85810735
Use classes rather than location attributes
2014-11-17 16:07:53 -08:00
Max Brunsfeld
4a9d0ab4d3
Merge pull request #4192 from atom/mb-auto-indent-on-paste
...
Add auto-indent when pasting
2014-11-17 15:22:15 -08:00
Max Brunsfeld
c6c58ebc3e
Remove extra blank line
2014-11-17 11:00:24 -08:00
Max Brunsfeld
175a8b6968
Provide separate config option for auto-indent on paste
...
This way, this option (`autoIndentOnPaste`) can be turned off for
indentation-sensitive languages like coffeescript.
2014-11-17 10:30:13 -08:00
Kevin Sawicki
958b19bd83
Cover empty clipboard case
2014-11-17 09:08:29 -08:00
Kevin Sawicki
12ff54c0bd
Add spec for middle mouse paste
2014-11-17 08:54:37 -08:00
Max Brunsfeld
83040d13c7
Base suggested indent level on previous non-blank row
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-11-17 08:53:29 -08:00
Max Brunsfeld
ebc9a6bf51
Don't auto-indent current line when pasting after non-whitespace characters
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-11-17 08:53:14 -08:00
Max Brunsfeld
c8ad232c31
Respect the editor.autoIndent option when pasting
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-11-17 08:52:51 -08:00
Ben Ogle
693fd43449
Fix resetting scoped config defaults
...
It would write an empty object for the parent key when there were no
other objects in the parent key.
Closes #4175
2014-11-14 15:11:43 -08:00
Nathan Sobo
7f326421d7
Upgrade existing selectors after attaching atom-styles element
...
Style elements don’t have a .sheet property until they are actually
attached to the DOM.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-13 16:04:57 -08:00
Nathan Sobo
3546f21af7
Spy on console.warn to prevent spamming in the specs
2014-11-13 16:04:57 -08:00
Nathan Sobo
441dcfb56a
Add specs for atom-text-editor shadow DOM selector upgrades
...
And cover one more case with `.editor` plus pseudo-classes
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-13 16:04:57 -08:00
Nathan Sobo
b6b6b6d12b
Add ‘mini’ attribute to TextEditorElement if .isMini() is true on model
2014-11-13 16:04:57 -08:00
Ben Ogle
e596bf6ef9
Merge pull request #4144 from atom/bo-overlay-decoration
...
Overlay decorations
2014-11-12 15:02:40 -08:00
Ben Ogle
2e7e90a8aa
Update spec names
2014-11-12 14:43:26 -08:00
Ben Ogle
eae80ca46d
Add a check for negative bounds when translating the overlay
2014-11-12 11:50:22 -08:00
Max Brunsfeld
3521b96611
Don't select the copied line when copying with no selection
2014-11-12 10:12:26 -08:00
Kevin Sawicki
7abfd45baf
Default to using hard tabs in Makefile files
...
This is a temporary solution until scoped settings supports this
type of restriction.
Closes atom/language-make#3
2014-11-12 09:31:12 -08:00
Ben Ogle
9acea88101
Change verbiage in spec names
2014-11-11 15:52:44 -08:00
Ben Ogle
b29c0ca2f7
nof
2014-11-11 15:52:21 -08:00
Ben Ogle
a4a3577163
💄
2014-11-11 15:50:34 -08:00
Ben Ogle
9dfaa8a4e5
Add bounds checking for overlay decorations
2014-11-11 15:46:27 -08:00
Ben Ogle
661b09ab1c
Don’t need this
2014-11-11 15:45:57 -08:00
Nathan Sobo
9875b069bc
Merge pull request #4152 from atom/ns-highlight-region-classes
...
Add private API for adding classes to highlight regions for backward compatibility
2014-11-11 15:20:47 -07:00
Ben Ogle
9399e00033
Properly display when a marker is reversed
2014-11-11 13:32:13 -08:00
Ben Ogle
307108ec6c
Specs for positioning the overlay decorations
2014-11-11 13:08:05 -08:00
Ben Ogle
0bb173b646
Add spec for creation and removal of overlay
2014-11-11 11:25:36 -08:00
Max Brunsfeld
1474aa2116
Merge pull request #4148 from atom/mb-cut-line
...
Cut whole lines when no text is selected
2014-11-11 11:13:51 -08:00
Nathan Sobo
2de8046f99
Add deprecatedRegionClass option to highlight decorations
...
This adds a class to each of the contained regions so we can make
existing bundled packages backward-compatible with themes.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-11 12:11:26 -07:00
Max Brunsfeld
7a87c22c7d
Cut/copy whole lines when no text is selected
...
Closes #3643
2014-11-11 10:02:17 -08:00
Kevin Sawicki
5946590a66
Add spec for default file encoding
2014-11-11 09:47:34 -08:00
Max Brunsfeld
3c800b00f5
Always re-render scrollbars after themes load/reload
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-11-10 17:59:41 -08:00
Nathan Sobo
57f85e1720
Add regression coverage for “hidden pane item after dragging” bug #4112
...
Refs bad0504e1d
2014-11-10 15:55:21 -07:00
Kevin Sawicki
f4ced3b078
Autoscroll when selecting the entire line
...
Closes #4032
2014-11-10 14:51:03 -08:00
Ben Ogle
af052c79a7
nof
2014-11-10 13:32:58 -08:00
Ben Ogle
6159209d49
moveItemTo* -> moveItem*
2014-11-10 13:28:15 -08:00
Ardeshir Javaherchi
5e3b88f42d
Add another test for moveItemToLeft
2014-11-10 11:25:17 -08:00
Ardeshir Javaherchi
a0e4d8b582
✅ Add test for reordering tabs in linux
2014-11-10 11:25:17 -08:00
Nathan Sobo
832e7113f7
Include all inline commands on the bubble path in ::findCommands
2014-11-10 10:10:52 -07:00
Max Brunsfeld
0c40a1ef92
Include inline commands in command palette
2014-11-10 10:09:24 -07:00
Nathan Sobo
efd3329c50
Prompt to save modified items when closing a pane via pane:close
...
Fixes #4094
2014-11-10 07:55:37 -07:00
Nathan Sobo
481e444ffe
Reassign context to undefined because CoffeeScript needs a var keyword
...
Fixes #4100
2014-11-07 18:00:38 -07:00
Nathan Sobo
6934b83acc
Fall back to first pane if activePaneId is invalid
...
When deserializing PaneContainer.
Fixes #4069
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-07 15:44:59 -07:00
Max Brunsfeld
003c101f14
W/o shadow-dom, don't add global atom-styles element for text editor
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-11-07 13:05:46 -08:00
Max Brunsfeld
98d602628a
Render all stylesheets in atom-styles elements without contexts
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-11-07 12:56:32 -08:00
Max Brunsfeld
d97c81bf6a
Make undo grouping interval configurable
2014-11-06 09:25:10 -08:00
Max Brunsfeld
d85c07e7e2
Don't wrap undo/redo calls in transactions
2014-11-05 16:59:06 -08:00
Max Brunsfeld
e7eef89fa5
Remove TextEditor::withGroupingInterval
...
Just use ::transact
2014-11-05 15:58:13 -08:00
Max Brunsfeld
5437236304
Use undo grouping in editor command listeners
2014-11-05 15:58:13 -08:00
Max Brunsfeld
b7aa421e4e
Add TextEditor::withGroupingInterval
...
This method temporarily instructs the editor to apply undo grouping with
a given interval. This way, undo grouping can be made optional without
adding optional arguments to every buffer manipulation method.
2014-11-05 15:58:12 -08:00
Ben Ogle
9458db0c1f
Fix issue removing panels
2014-11-05 15:37:47 -08:00
Nathan Sobo
e1d6d55311
Enable editor.useShadowDOM in all specs
2014-11-04 16:37:28 -07:00
Nathan Sobo
670a710753
Test editor focus/blur handling with shadow DOM enabled/disabled
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-04 16:37:28 -07:00
Nathan Sobo
dd1e5338c6
Focus the root TextEditorElement in spec instead of component node
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-04 16:37:28 -07:00
Ben Ogle
4537e9bd1a
Fix specs
2014-11-04 16:37:27 -07:00
Nathan Sobo
dd4e7d6921
Wait for promise resolution on all calls to activatePackage
...
This avoids a race condition where stylesheets would be added after all
packages were deactivated and leak into the next spec.
2014-11-04 16:37:26 -07:00
Nathan Sobo
d060ecdc24
Assign package stylesheet context based on double-extension in file name
...
If stylesheet files are named with 2 extensions, the first extension is
used as the context argument when the package’s stylesheets are loaded.
This allows people to target the text editor by naming their stylesheet
`index.atom-text-editor.less`.
2014-11-04 16:37:26 -07:00
Nathan Sobo
bda1429293
Trigger ‘blur’ on select list editor instead of ‘focusut’ on its input
2014-11-04 16:37:25 -07:00
Nathan Sobo
58744f6b7b
Account for shadow DOM when asserting on focus
2014-11-04 16:37:24 -07:00
Nathan Sobo
7badd9ba25
Don’t rely on :focus selector for toHaveFocus matcher
...
:focus doesn’t work properly when focus is inside the shadow DOM of
an element, but document.activeElement does.
2014-11-04 16:37:23 -07:00
Nathan Sobo
cdb62812d2
Don’t use syntax themes in spec because they are inserted in shadow DOM
2014-11-04 16:37:23 -07:00
Nathan Sobo
2d3d64f399
Call reloadStylesheets instead of reloadStylesheet in spec
2014-11-04 16:37:23 -07:00
Nathan Sobo
fa733c85ad
Fix setEditorHeightInLines shim now that we’ve dropped .react class
2014-11-04 16:37:23 -07:00
Nathan Sobo
158bbef38f
Account for shadow dom when asserting active element
2014-11-04 16:37:22 -07:00
Nathan Sobo
b2bc09c13d
Apply stylesheets with atom-editor-context in text editor specs
2014-11-04 16:37:22 -07:00
Nathan Sobo
4e8e5a84c4
Support context attribute in <atom-styles>
2014-11-04 16:37:20 -07:00
Ben Ogle
5bd028b24e
Enforce modal
2014-11-04 14:58:00 -08:00
Ben Ogle
8485831f40
Add the location attr. Need it for styling!
2014-11-04 14:22:15 -08:00
Ben Ogle
da30b66ffa
Fix tests
2014-11-04 14:10:58 -08:00
Ben Ogle
9b1d5e1864
Add addModalPanel to atom.workspace.
2014-11-04 13:48:48 -08:00
Ben Ogle
b1a0258ad4
Clean up spec name
2014-10-31 11:39:56 -07:00
Ben Ogle
54b8aa4a02
Add spec for skip
2014-10-31 11:38:24 -07:00
Kevin Sawicki
19b0f760a1
Only re-tokenize lines when tab length changes
...
Closes #3929
2014-10-30 16:20:05 -07:00
Ben Ogle
ee4116536d
Move the ViewRegistry to atom.views
2014-10-30 13:42:27 -07:00
Kevin Sawicki
6e827434fd
Log a warning when a enabled theme isn't installed
2014-10-30 10:04:38 -07:00
Lee Dohm
d20e91897a
Load the default themes when configured themes don't exist
2014-10-29 19:42:42 -07:00
Kevin Sawicki
d205c4d664
Add data attribute for encoding
...
Mirrors the grammar data attribute
2014-10-29 16:03:10 -07:00
Kevin Sawicki
ce8143f8e6
Add TextEditor::onDidChangeEncoding spec
2014-10-29 11:33:01 -07:00
Nathan Sobo
4d796f614c
Update Tokenized/DisplayBuffer prior to TextBuffer::onDidChange handlers
...
Fixes #3789
2014-10-27 13:56:23 -06:00
Kevin Sawicki
b9239ffc57
Add spec for cursor position after pair char
2014-10-24 13:31:43 -07:00
Kevin Sawicki
9b0f622ffb
📝 Mention combined characters in spec description
2014-10-24 13:31:42 -07:00
Kevin Sawicki
b6cc7273a1
Add combined characters to spec
2014-10-24 13:31:42 -07:00
Ben Ogle
d0d6af7e55
Specs for priority
2014-10-24 13:07:14 -07:00
Ben Ogle
c931071c91
Merge pull request #3910 from atom/bo-descriptor-object
...
Add a ScopeDescriptor object
2014-10-21 13:27:17 -07:00
Ben Ogle
263b792eee
Merge pull request #3907 from atom/bo-scoped-schema
...
Add support for scoped defaults in config schemas
2014-10-21 13:12:18 -07:00
Ben Ogle
16ad957609
scopeDescriptor -> scopes
...
Now that we have a real ScopeDescriptor object,
these should change back!
2014-10-21 11:38:43 -07:00
Ben Ogle
2b148b7720
Accept escaped dots in config settings keys
...
Fixes #3898
2014-10-20 16:58:57 -07:00