Commit Graph

12724 Commits

Author SHA1 Message Date
Kevin Sawicki
955749b320 Handle EIO open errors 2015-07-08 15:40:42 -07:00
Kevin Sawicki
de4cf38dcc Handle ENXIO open errors 2015-07-08 15:40:42 -07:00
Kevin Sawicki
770dc9821e paneItem -> item for consistency 2015-07-08 15:40:42 -07:00
Kevin Sawicki
8c9ecbaf03 Add custom notification for ESPIPE 2015-07-08 15:40:42 -07:00
Kevin Sawicki
485f4dc3a3 Add custom notification for EINTR 2015-07-08 15:40:42 -07:00
Kevin Sawicki
c3e73bdd26 Add custom notification for EIO 2015-07-08 15:40:42 -07:00
Kevin Sawicki
3e744b0714 Add custom notification for ENOTSUP 2015-07-08 15:40:42 -07:00
Kevin Sawicki
7d88f9ea66 Use item path when error has no path 2015-07-08 15:40:42 -07:00
Nathan Sobo
cac74b9567 Merge pull request #7804 from atom/ns-clip-position
Clip positions in TokenizedBuffer::scopeDescriptorForPosition
2015-07-08 17:36:07 -05:00
Nathan Sobo
b953a11fa5 Clip positions in TokenizedBuffer::scopeDescriptorForPosition 2015-07-08 17:06:05 -05:00
Nathan Sobo
9c63de930e Merge pull request #7798 from atom/ns-undefined-screen-line-metadata
Report extra metadata when screen lines are undefined when clipping
2015-07-08 17:01:29 -05:00
Sander van Harmelen
eaf814e5be Improve auto indenting by removing a hard coded restriction and adding a 3rd regexp
Currently there are only two regexps that can influence the indents.
Those are `increaseIndentPattern` (which tells Atom the indent of next
line should be increased) and `decreaseIndentPattern` (which tells Atom
the indent of the current line should be decreased).

But I found that a couple of languages would need a 3rd regexp in order
to support their use cases. This 3rd regexp should be a mixture of the
existing two so it tells Atom that the indent of the next line should
decrease.

I’ll add a screencast to show a use case for this 3rd regexp which I
would like to call `decreaseNextIndentPattern`.
2015-07-08 20:30:21 +02:00
Nathan Sobo
3e7881f35f Report extra metadata when screen lines are undefined when clipping 2015-07-08 13:29:25 -05:00
Nathan Sobo
a094142a45 Merge pull request #7778 from atom/ns-mb-suppress-line-measurement-exceptions
Suppress line measurement exceptions and gather data to solve them
2015-07-08 12:43:55 -05:00
Nathan Sobo
a13e002079 Use atom.getCurrentWindow() 2015-07-07 20:19:22 -05:00
Nathan Sobo
08fe81844c Guard against IndexSizeError when measuring lines
Refs #7464 #7465 #5997

This will ask the user for the content of the offending line, but only
once so as not to be annoying. Hopefully this and the other data we’re
collecting will help us solve the problem.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-07-07 19:33:21 -05:00
Nathan Sobo
54549f916a Change assertion API to pass error to callback
Don’t assume anything about metadata. Just give assertion callers access
to the error object.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-07-07 19:29:23 -05:00
Nathan Sobo
4091fa9e78 Merge pull request #7770 from atom/ns-only-forward-menu-action-on-osx
Handle native chromium undo, redo, cut, copy, paste, selectAll on all platforms
2015-07-07 19:26:04 -05:00
Nathan Sobo
a4d716c491 Call native method on WebContents instead of sendActionToFirstResponder
Fixes #6587
2015-07-07 16:34:35 -05:00
Kevin Sawicki
a6dfbb2804 Remove string detail check
This appears to be in use by other packages

Refs atom/notifications#50
2015-07-07 13:46:53 -07:00
Kevin Sawicki
3a02b54851 details -> detail 2015-07-07 13:46:53 -07:00
Kevin Sawicki
93069fad75 Add stricter object checking 2015-07-07 13:46:53 -07:00
Kevin Sawicki
7fbcd147d5 Make Notification::getDetail public 2015-07-07 13:46:53 -07:00
Kevin Sawicki
4ba552c515 Valid message, options, and detail 2015-07-07 13:46:52 -07:00
Kevin Sawicki
2e2fef0c47 Merge pull request #7768 from atom/iz-more-guards-in-pane-error-handling
Guard against non-string messages in Pane.handleSaveError
2015-07-07 11:09:29 -07:00
Ivan Žužak
cd31770121 Guard against non-string messages in Pane.handleSaveError 2015-07-07 19:51:16 +02:00
Ross Allen
178fffa74e Add 'name' arg docs to PackageManager functions 2015-07-07 10:49:45 -07:00
Kevin Sawicki
34d3dadd51 📝 Mention --include-deprecated-apis is not currently supported 2015-07-07 10:42:22 -07:00
Kevin Sawicki
b852b06724 Merge pull request #7717 from atom/iz-pane-handle-save-error
Check if error message exists before using it in Pane.handleSaveError
2015-07-07 10:14:28 -07:00
Kevin Sawicki
b371b2f0c9 Guard against missing stdout/stderr 2015-07-07 09:50:07 -07:00
Max Brunsfeld
1761f19efb Merge pull request #7748 from atom/mb-emit-will-insert-text-on-paste
Emit will-insert-text event when pasting
2015-07-07 09:14:07 -07:00
Antonio Scandurra
4e4b49eef8 🐛 updateContentDimensions when model changes 2015-07-07 11:28:30 +02:00
Max Brunsfeld
8c3400c084 Emit will-insert-text event when pasting 2015-07-06 18:29:44 -07:00
Kevin Sawicki
30dccf987d Require dialog and shell early in browser process
Prevents issues when the asar bundle changes before these
files are required.
2015-07-06 16:49:59 -07:00
Nathan Sobo
5fe00dc803 Merge pull request #7733 from atom/as-remove-leftover-updates
Remove leftover update statements
2015-07-06 16:49:14 -05:00
Ben Ogle
5d42b27f5f Merge pull request #7411 from deprint/multiline-mini-editor
Mini editor with TextEditor::setMini
2015-07-06 13:56:20 -07:00
Antonio Scandurra
b07f5eb8ad 💚 2015-07-06 16:37:17 +02:00
Antonio Scandurra
251f0293b7 🔥 🐎 Remove leftover update statements 2015-07-06 15:41:20 +02:00
Ivan Zuzak
f9a54ae552 Check if error message exists before using it 2015-07-05 08:35:26 +02:00
Nounours Heureux
481b83c1ac Set a default statement 2015-07-04 11:43:54 +02:00
Nounours Heureux
d663a43b27 Different title for file dialogs and folder dialogs. 2015-07-03 19:43:10 +02:00
Nathan Sobo
e529d1e345 Request contents of buffer when first-mate tags are in a corrupt state 2015-07-01 16:46:09 -05:00
Nathan Sobo
550efc8397 Merge pull request #7633 from atom/ns-pane-items-must-be-objects
Throw an exception when adding a non-object pane item
2015-07-01 14:09:14 -05:00
Nathan Sobo
8ea36a6ac5 In invalid scope exception: include grammar metadata, ask for details 2015-07-01 13:59:47 -05:00
Nathan Sobo
8348b2c039 Throw exception when adding a non-object pane item 2015-07-01 13:29:13 -05:00
Nathan Sobo
e472830063 Merge remote-tracking branch 'origin/master' into dsandstrom-add-subword-cursors-4 2015-06-30 22:55:40 -05:00
Nathan Sobo
ba3ab41f1f Eliminate hack to move cursor to beginning of buffer
Use the structure of the regex plus a fix to text-buffer instead.
2015-06-30 22:52:35 -05:00
Ben Ogle
4d77d4161d Merge pull request #7395 from oggy/will-remove-item
Add Pane::onWillRemoveItem event.
2015-06-30 15:25:16 -07:00
Nathan Sobo
8b088926bb Merge pull request #7602 from atom/ns-mixed-indent
Restore support for mixed tabs and spaces in line indentation
2015-06-30 15:54:47 -05:00
Nathan Sobo
83bddaf34e Merge branch 'master' into add-subword-cursors-4
Conflicts:
	spec/text-editor-spec.coffee
2015-06-30 15:43:33 -05:00