Commit Graph

12388 Commits

Author SHA1 Message Date
Antonio Scandurra
4e412755bf Put tiles into a separate div
So that a new stacking context is created and tiles won’t overlap other
elements, such as cursors or the wrap-guide.
2015-07-27 20:29:02 +02:00
Antonio Scandurra
e374425d7a Render tiles upper in the stack in front of the ones below 2015-07-27 20:16:36 +02:00
Max Brunsfeld
3ae7721fcb Merge pull request #8092 from MaximSokolov/add-missing-argument
📝 Add missing argument
2015-07-27 09:27:56 -07:00
Maxim Sokolov
e725020037 📝 Add missing argument 2015-07-27 16:04:33 +03:00
Thomas Johansen
9efab86215 Merge pull request #8053 from oggy/will-destroy-pane
Fire event before a pane is destroyed.
2015-07-25 16:34:33 +02:00
Ben Ogle
1b6cab0156 Remove line that calls non-existant function 2015-07-24 17:45:59 -07:00
Antonio Scandurra
5ef138accd Merge pull request #8041 from atom/as-subpixel-aa-highlights
Use `border-box` to prevent losing subpixel AA
2015-07-24 16:36:10 +02:00
Daniel Hengeveld
fde0848b7c Merge pull request #7458 from nounoursheureux/master
The ellipsis character is now recognized as punctuation
2015-07-23 18:09:11 -07:00
George Ogata
45694dcda0 Fire event before a pane is destroyed. 2015-07-23 18:47:38 -04:00
Nathan Sobo
731d6a27f4 Merge pull request #8009 from atom/jl-ns-battery-life
Change Document Polling from Time Interval to Event
2015-07-23 13:06:02 -06:00
Max Brunsfeld
e5083b621f Merge pull request #8048 from svanharmelen/b-fix-indentation
Fix indentation for languages without indent pattern
2015-07-23 12:00:28 -07:00
Nathan Sobo
fb9d15e03e Throttle document polling 2015-07-23 12:02:53 -06:00
Sander van Harmelen
46625b9a22 Fix indentation for languages without indent pattern 2015-07-23 19:03:28 +02:00
Nathan Sobo
b2fb7e6e7a Remove unused prototype properties 2015-07-23 10:51:11 -06:00
Jessica Lord
40ba0da4f5 Remove resize listeners from editor
pollDOM will always be called when window is resized
2015-07-23 10:51:11 -06:00
Jessica Lord
96874d68d8 Run polling functions when windows resizes 2015-07-23 10:51:11 -06:00
Jessica Lord
ba58631984 Update all text editor styles in one batch
This allows DOM mutation observers to detect changes to the global
styles.
2015-07-23 10:51:10 -06:00
Jessica Lord
21c91b9bf3 Check if cursor is blinking before pausing 2015-07-23 10:51:10 -06:00
Jessica Lord
558eb1bb8c Use mutation observer for document changes 2015-07-23 10:51:10 -06:00
Antonio Scandurra
07dbc545ac 🐛 Use border-box to prevent losing subpixel AA
When highlights are positioned outside the line box, they could get
hidden by a subsequent tile (because of its opaque background). As a
result, subpixel anti-aliasing gets disabled by Chrome.

Using `border-box` as the default `boxSizing` allows highlights to
always fit within the line (except if a styling like `margin` is
applied).
2015-07-23 11:52:32 +02:00
Ben Ogle
f81f63429b Merge pull request #7879 from ssorallen/notification-docblocks
Add docblocks for `Notification` public functions
2015-07-22 14:44:30 -07:00
Nathan Sobo
377a531564 Merge pull request #8020 from atom/bf-document-undocumented-return-type-for-gutter-decorate-marker
Document return type of `Gutter::decorateMarker()`.
2015-07-22 09:35:44 -06:00
Michael Bolin
ec078f9c14 Document return type of Gutter::decorateMarker(). 2015-07-21 22:15:34 -07:00
Max Brunsfeld
eb088227e1 Merge pull request #8010 from atom/mb-dont-maintain-marker-history-by-default
Default maintainHistory marker option to false
2015-07-21 17:34:07 -07:00
Max Brunsfeld
a60f330628 Default maintainHistory marker option to false 2015-07-21 13:27:05 -07:00
Max Brunsfeld
7d879c3bb1 Merge pull request #8002 from svanharmelen/b-fix-indenting
Yet another (small) tweak to enable another indentation use case
2015-07-21 11:41:31 -07:00
Kevin Sawicki
2c37294f3b Handle EINVAL errors on open
Closes atom/tree-view#408
2015-07-20 17:04:17 -07:00
Kevin Sawicki
c039c820a4 Handle ECONNRESET errors when saving
Closes #7849
2015-07-20 16:03:47 -07:00
Kevin Sawicki
d2a7012512 Handle ECONNRESET error codes on open
Closes #7946
2015-07-20 15:24:33 -07:00
Sander van Harmelen
0e4468c55f Tweak enabling a few more use cases... 2015-07-20 22:36:58 +02:00
Ross Allen
3fe89b722d Consolidate 'Returns' to one line per comments 2015-07-17 17:42:53 -07:00
Nathan Sobo
096a022752 Merge pull request #7950 from atom/ns-destroy-selection-later
When splitting selection into lines, destroy original selection last
2015-07-17 14:18:47 -07:00
Nathan Sobo
375211b278 Merge pull request #7859 from dsandstrom/update-subword-regex
Update subword regex
2015-07-17 14:11:41 -07:00
Nathan Sobo
cd8d158a00 When splitting selection into lines, destroy original selection last
This avoids an assertion failure due to destroying the last selection,
so we can reduce the noise and find code paths that destroy it
incorrectly.
2015-07-17 13:16:12 -07:00
Nathan Sobo
f254c46a62 Keep popping scopes until we find a matching start scope tag 2015-07-17 11:10:09 -07:00
Max Brunsfeld
b24258056d Merge pull request #7858 from svanharmelen/b-fix-indenting
Fix indentation when pasting lines
2015-07-17 09:46:47 -07:00
Ross Allen
16d98c534c Explain dismiss when called programmatically 2015-07-13 14:36:08 -07:00
Ross Allen
580201568f Add docblocks for Notification public functions
* Mark `dismiss` as an "extended" API because its use case is uncommon.
* Mark event handler functions as public because responding to a
  notification being displayed or dismissed is useful.
2015-07-13 14:32:40 -07:00
bolinfest
6efb48dca4 Merge pull request #7863 from atom/bf-no-transform-for-of
Do not run the for/of transform in Babel.
2015-07-13 14:11:29 -07:00
Ivan Zuzak
2d7691c19a Fix config.set scope selector example 2015-07-13 06:51:01 -07:00
Michael Bolin
ad1a110b77 Do not run the for/of transform in Babel.
Because the target environment in Atom supports for/of natively,
do not transpile for/of using Babel. Without this change, the following code:

```
var arr = ['foo', 'bar', 'baz'];
for (var item of arr) console.log(item);
```

would be unnecessarily be transpiled to:

```
var arr = ['foo', 'bar', 'baz'];
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
  for (var _iterator = arr[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
    var item = _step.value;
    console.log(item);
  }
} catch (err) {
  _didIteratorError = true;
  _iteratorError = err;
} finally {
  try {
    if (!_iteratorNormalCompletion && _iterator['return']) {
      _iterator['return']();
    }
  } finally {
    if (_didIteratorError) {
      throw _iteratorError;
    }
  }
}
```
2015-07-12 21:12:08 -07:00
Darrell Sandstrom
ecf68903af Add non-English characters to subword regex
Fixes #7656
2015-07-12 17:20:46 -07:00
Darrell Sandstrom
c02df26fa7 Add underscore to subword regex
Fixes #7658
2015-07-12 17:03:53 -07:00
Sander van Harmelen
e7de136a27 Small tweaks after review 2015-07-13 00:58:03 +02:00
Sander van Harmelen
195b84a34a Fix indentation when pasting lines
The fix to ignore invisibles () introduces a new bug when pasting lines
from the clipboard (see screencast below).

As the commit takes the content of `@buffer.lineFromRow(bufferRow)` to
test against the `decreaseIndentRegex`, it will actually test the
content of the row the cursor is on instead of the content that is
being pasted. And this (of course) could cause unexpected indentations.
2015-07-12 23:57:13 +02:00
Nathan Sobo
5566d54f58 Don’t update screen lines if DisplayBuffer has been destroyed 2015-07-09 15:44:11 -05:00
Nathan Sobo
c7d99140b9 Merge pull request #7638 from atom-community/jf-dispatch-grammar-used
Add activationHooks + Trigger `{grammar-package-name}:grammar-used` Hook When A text-editor-element's Grammar Is Set
2015-07-09 15:42:31 -05:00
Nathan Sobo
53162160bb Merge pull request #7809 from atom/dh-register-views-earlier
Move view registration for Pane & Gutter related views earlier
2015-07-09 11:54:55 -05:00
Nathan Sobo
4567601ae9 Maintain change counts for debugging purposes
When we have an unexpected display-buffer or tokenized-buffer state,
we can include the change counts to make sure that every change to the
buffer has been processed by display-buffer and tokenized-buffer. If
they haven’t, there’s something wrong with our event ordering. If they
have, there’s a logic error somewhere else.
2015-07-09 02:18:24 -05:00
Nathan Sobo
afa6c9a786 Add invariant assertion about line count to see if we can find a bug
Does the line count ever get out of whack after an update, or is it
happening in some other way?
2015-07-09 01:55:13 -05:00