Commit Graph

33889 Commits

Author SHA1 Message Date
Nathan Sobo
592d174e3b Merge pull request #15266 from atom/ns-fix-alt-bindings-on-mac
Suppress composition events default prevented on previous keydown
2017-08-12 15:23:33 -06:00
Jordan Eldredge
72e50334f1 Remove unused methods to translate legacy menu items
Searching the code base and the GitHub repository shows no usage or
documentation for these two methods.

From what I can surmise, the call to `convertLegacyItemsBySelector` was removed
in cc4ee92699
by @thomasjo but these methods just weren't cleaned up.
2017-08-12 14:03:40 -07:00
Max Brunsfeld
acc7b97ae0 Merge pull request #15264 from captbaritone/pane-destroy-item
Ensure Pane.destroyItem always returns a promise
2017-08-12 13:04:35 -07:00
Nathan Sobo
744b96df46 Suppress composition events default prevented on previous keydown
This seems like a browser bug.
2017-08-12 13:50:08 -06:00
Nathan Sobo
ff32fd80bf Merge pull request #15273 from atom/as-fix-line-height-0
Don't throw an error when setting an incredibly small `lineHeight`
2017-08-12 13:46:23 -06:00
Nathan Sobo
d8a8b03db2 Merge pull request #15275 from atom/as-fix-scrollbar-cursor
Use default cursor on dummy scrollbars and make them 15px wide/tall
2017-08-12 13:30:41 -06:00
Nathan Sobo
feb0cddf5e Merge pull request #15265 from atom/ns-ime-workaround
Work around incorrect data on `compositionupdate` events in Chrome 56
2017-08-12 13:26:01 -06:00
Nathan Sobo
3c66a1efbd Merge pull request #15270 from atom/as-fix-extra-lines-rendering
Fix measuring lines in presence of pending autoscroll requests
2017-08-12 13:21:59 -06:00
Antonio Scandurra
8cbfcf6e2b Use default cursor on dummy scrollbars and make them 15px wide/tall 2017-08-12 15:56:19 +02:00
Antonio Scandurra
964f209c40 Don't throw an error when setting an incredibly small lineHeight
Instead, if the measured line height equals 0, default it to 1 so that
the editor component doesn't start computing `NaN` or `Infinity` values
due to e.g. dividing by 0.

We should probably consider sanitizing line heights smaller than a
certain threshold, but that's non trivial because line height is
expressed as a multiplier of the font size. Also, users may style the
`line-height` property via CSS, which may still throw errors when using
small values.
2017-08-12 15:38:32 +02:00
Antonio Scandurra
b4f029e9f0 Test both Chrome 56 and other Chrome versions IME behavior 2017-08-12 14:38:18 +02:00
Antonio Scandurra
fc1327eb22 Fix measuring lines in presence of pending autoscroll requests
Calling `pixelPositionForScreenPosition` was sometimes throwing an error
indicating that the requested position was not rendered and that, as
such, could not be measured.

This was caused by trying to measure a line that was visible at the
moment of the call while also having a pending autoscroll request that
would cause that line to go off-screen. Due to how the code was
structured, we would mistakenly detect that line as visible, autoscroll
to a different location, re-render a different region of the buffer and
then try to measure the now invisible line.

This commit fixes this issue by restructuring and simplifying the logic
for rendering extra lines in order to measure them. Now, every line for
which a measurement has been requested is stored in a `linesToMeasure`
map. During the first phase of the update process (after honoring
autoscroll requests), we detect which of these lines are currently
visible and if they're not, store them into the
`extraRenderedScreenLines` map, which is then used to render lines that
are invisible but need to be measured.
2017-08-12 12:31:50 +02:00
Antonio Scandurra
ca183dd693 Don't insert IME preview on next tick if composition has already ended 2017-08-12 10:06:56 +02:00
Damien Guard
3e0d790050 Remove language-typescript deprecation.
New package soon.
2017-08-11 17:01:34 -07:00
Damien Guard
2e048826fb ⬆️ apm 2017-08-11 15:58:55 -07:00
Nathan Sobo
54a6f0d29f Clear hidden input compositionstart on Chrome 56
We use the value of the hidden input to display a preview of the
composition, but it might already contain spaces from previous
keystrokes, since we don't call preventDefault when spaces are inserted.
2017-08-11 15:57:46 -06:00
Nathan Sobo
8667cfdd13 Work around incorrect data on compositionupdate events in Chrome 56 2017-08-11 15:47:37 -06:00
Jordan Eldredge
5a8b197db1 Ensure Pane.destroyItem always returns a promise
Fixes #15157
2017-08-11 13:29:27 -07:00
Linus Eriksson
b14c4a32c9 ⬆️ bracket-matcher@0.87.3 2017-08-11 21:26:31 +02:00
Nathan Sobo
b0622d224e Merge pull request #15244 from atom/ns-rows-per-page
Shim rowsPerPage property on Editor instances
2017-08-11 10:48:44 -06:00
Antonio Scandurra
a7358477d9 Merge pull request #15240 from atom/as-manual-highlight-updates
Create, update and destroy highlights manually
2017-08-11 11:26:15 +02:00
Nathan Sobo
7f8f184e96 Shim rowsPerPage property on Editor instances
Several packages were relying on a raw property rather than the getter
method. This isn't really supported, but may as well keep them working.
2017-08-10 12:55:41 -06:00
Wliu
e2ee2ee79d Merge pull request #15224 from atom/wl-multiline-is-important
Set multiline flags for out-of-Atom regex replacements
2017-08-10 14:15:50 -04:00
Wliu
8963cf4955 Only use multiline if the flag is passed in 2017-08-10 13:24:46 -04:00
Antonio Scandurra
00d27befe8 Create, update and destroy highlights manually
Etch's reconciliation routine causes elements to be sometimes
re-ordered. In order to move an element, however, Etch needs to first
detach it from the DOM and then re-append it at the right location.

This behavior is unacceptable for highlight decorations because it could
re-start CSS animations on a certain highlight decoration when a
completely different one is added or removed.

Even though we are still interested in restructuring etch's
reconciliation logic to prevent unwanted re-orderings, with this commit
we are switching to a custom routine to create/update/remove highlight
decorations that prevents unnecessary moves and, as a result, fixes the
undesired behavior described above.
2017-08-10 17:48:34 +02:00
Jason Rudolph
3967de1be2 Merge pull request #15234 from atom/jr-bring-master-up-to-speed-with-1-20-releases
Bring master up to date with recent changes in 1.20-release branch
2017-08-10 11:41:53 -04:00
Damien Guard
9fb4f0d9cd Create shorter temp path for Squirrel 2017-08-10 08:47:17 -04:00
Wliu
95b216f234 Add multiline spec 2017-08-09 23:15:33 -04:00
Wliu
2fa2feacaf Multiline is important, don't forget to set it 2017-08-09 22:52:39 -04:00
Ash Wilson
e48b980d41 Merge pull request #15208 from atom/aw-appveyor-matrix
Separate tests and installer creation on AppVeyor
2017-08-09 16:45:12 -04:00
Wliu
4876ae07e1 Merge pull request #15214 from atom/wl-update-language-javascript
Update language-javascript
2017-08-09 14:00:42 -04:00
Ash Wilson
ee0df014bc Less variable magic 2017-08-09 13:15:34 -04:00
Ash Wilson
ee12c1c7d2 Why does my brain always edit out the second % 2017-08-09 13:10:26 -04:00
Ash Wilson
0db8c9c3ec Don't build on non-release installer rows either 2017-08-09 13:01:40 -04:00
Wliu
2088143a90 Fix specs 2017-08-09 12:43:35 -04:00
Ash Wilson
4acd52a978 Skip installer build on non-release branches 2017-08-09 12:18:07 -04:00
Wliu
fbd4b688dd ⬆️ language-javascript@0.127.2 2017-08-09 11:17:48 -04:00
Ash Wilson
3a9872e809 YAML syntax tweaks 2017-08-09 10:02:24 -04:00
Ash Wilson
2d186820cf The matrix will be slightly prettier this way <_< >_> 2017-08-09 09:28:37 -04:00
Ash Wilson
1233bbccb0 Missing % 2017-08-09 09:20:52 -04:00
Ash Wilson
a09b634e1b Separate tests and installer creation on AppVeyor 2017-08-09 09:18:41 -04:00
Wliu
2f4c2fd45e Merge pull request #15198 from mrnonz/master
Update document with electron version
2017-08-09 09:14:47 -04:00
Nontawat Numor
9fe67290c5 Update document with electron version 🍵 2017-08-09 12:16:19 +07:00
Wliu
98296bf950 ⬆️ language-java@0.27.3 2017-08-08 21:29:22 -04:00
Ash Wilson
1b22c59c0c Merge pull request #15191 from smashwilson/aw-upgrade-github
Update github to 0.4.2
2017-08-08 19:43:14 -04:00
Ash Wilson
35a7ae6d2e ⬆️ github 2017-08-08 17:36:23 -04:00
Ian Olsen
099df7eacc Merge branch 'master' into pb-remove-unneeded-files-win 2017-08-08 14:10:51 -07:00
Ash Wilson
276fcb9e96 ⬆️ electron-link 2017-08-08 16:52:38 -04:00
Bryant Ung
87edc89815 Merge pull request #15186 from atom/b3-caps-lock-issues
Upgrade atom-keymap to fix caps lock issues on Windows
2017-08-08 13:43:24 -07:00
Ash Wilson
ff608ab524 ⬆️ github 2017-08-08 15:32:24 -04:00