Commit Graph

33023 Commits

Author SHA1 Message Date
Antonio Scandurra
c1981ffb44 Correctly remove block decorations whose markers have been destroyed
In https://github.com/atom/atom/pull/15503 we mistakenly assumed
`marker.isValid` accounted only for the validity of the marker. However,
that method returns `false` also for markers that are valid but have
been destroyed. As a result, the editor component was mistakenly not
removing block decorations associated with such markers.

With this commit we will rely on the local `wasValid` variable instead.
If its value is `true`, it means that the block decoration has been
accounted for in the `lineTopIndex` and must, as a result, be cleaned up
in case the marker or the decoration gets destroyed.
2017-09-07 17:52:04 +02:00
Antonio Scandurra
4b3fa34d4e Merge pull request #15580 from atom/as-update-scrollbars-on-detach-reattach
Flush scroll position to dummy scrollbar components on re-attach
2017-09-07 16:39:16 +02:00
Antonio Scandurra
e90323765c Merge pull request #15577 from Ingramz/patch-4
Default re-used element class name to empty string
2017-09-07 15:06:42 +02:00
Antonio Scandurra
806b652da4 Flush scroll position to dummy scrollbar components on re-attach
This prevents the dummy scrollbars from resetting their position to `0`
when the editor element is moved elsewhere in the DOM (e.g. when
splitting a pane item).
2017-09-07 15:05:42 +02:00
Indrek Ardel
499ef16013 Default re-used element class name to empty string 2017-09-07 14:48:35 +03:00
Damien Guard
a53958e007 ⬆️ about 2017-09-06 22:55:23 -07:00
Damien Guard
45b0ce3d6d ⬆️ status-bar 2017-09-06 21:13:51 -07:00
Damien Guard
20420be7ae ⬆️ find-and-replace 2017-09-06 20:48:59 -07:00
Damien Guard
01d5822dd3 ⬆️ notifications 2017-09-06 20:47:21 -07:00
Wliu
11ad3f15d9 Merge pull request #15566 from atom/wl-update-docs
Update ScopeDescriptor links
2017-09-06 22:16:08 +02:00
Wliu
f00568bde5 Update ScopeDescriptor links 2017-09-06 20:56:22 +02:00
Damien Guard
3988ca2b99 Merge pull request #15557 from atom/as-use-electron-node-to-verify-snapshot-script
Use the Node version bundled in Electron to verify snapshot script
2017-09-06 10:11:12 -07:00
Antonio Scandurra
a3e82a54d1 ⬆️ find-and-replace 2017-09-06 14:52:01 +02:00
Antonio Scandurra
8c8d6f7ce4 🔥 Delete unused require 2017-09-06 11:28:19 +02:00
Antonio Scandurra
7bd2c670e1 Merge pull request #15546 from atom/as-never-autoscroll-when-clicking-on-content
Don't autoscroll when using the mouse to add, delete or move selections
2017-09-06 02:12:15 -07:00
Antonio Scandurra
9bbd71219d Merge pull request #15550 from atom/as-fix-rendering-out-of-range-decorations
Don't render block decorations located outside the visible range
2017-09-06 02:11:16 -07:00
Antonio Scandurra
2050f58a0e Don't override process.env variables 2017-09-06 11:08:58 +02:00
Antonio Scandurra
15d988d441 Use the Node version bundled in Electron to verify snapshot script
Previously, we used to verify the snapshot script by running it in a
new, empty context (similar to the one that `mksnapshot` creates when
generating the startup blob).

However, this context was being created using the Node version that
`script/build` was executed with. Such version may not match the Node
version shipped with Electron, and could thus cause the build script to
report "false negatives" when verifying the snapshot script. For
instance, running `script/build` with Node 4 would cause it to throw an
error when encountering keywords like `async`/`await`, even if they're
100% supported in Electron 1.6.9.

With this commit we are changing the snapshot verification code to use
the Node version bundled in Electron in order to avoid the
aforementioned mismatches.
2017-09-06 11:02:54 +02:00
Joe Fitzgerald
e6e28c19c3 ⬆️ spell-check 0.72.2 2017-09-05 14:51:42 -06:00
Linus Eriksson
409fc1a4b8 ⬆️ command-palette@0.41.1 2017-09-05 21:56:10 +02:00
Wliu
8442e9e73f Fix those specs 2017-09-05 20:36:24 +02:00
Antonio Scandurra
5958ab8d5f 1.21.0-dev
We are undoing the rolling of the railcars because we would like to
release a hotfix on beta.
2017-09-05 19:49:31 +02:00
Wliu
1226b204e5 Merge pull request #15551 from atom/wl-update-language-coffee-script
Update language-coffee-script to v0.49.0
2017-09-05 19:30:00 +02:00
Wliu
968c0ede26 Try again 2017-09-05 18:46:02 +02:00
Wliu
62875aefcf ⬆️ language-html@0.47.5 2017-09-05 18:17:50 +02:00
Damien Guard
38d9c07284 Add test coverage for package-manager initialize paths 2017-09-05 09:12:26 -07:00
Antonio Scandurra
20ea98ad41 Don't render block decorations located outside the visible range
Previously, when trying to use block decorations on non-empty markers,
Atom could sometimes throw an error if such markers ended or started at
a position that was not currently rendered.

In fact, even if we already restricted the decoration query to markers
that intersected the visible row range, markers that were only partially
visible would still be considered for rendering. If, depending on the
`reversed` property, we decided to render the tail or head of the marker
in question and this was outside the viewport, Atom would throw the
aforementioned exception.

This commit addresses the above issue by explicitly ignoring block
decorations that are located on rows that are not yet rendered.
2017-09-05 18:05:35 +02:00
Damien Guard
e4e758110a Load non-dev packages in dev mode too, found by @as-cii 2017-09-05 08:44:09 -07:00
Antonio Scandurra
91bb1e12c7 Don't autoscroll when using the mouse to add, delete or move selections 2017-09-05 15:26:54 +02:00
Wliu
700fdc5922 ⬆️ language-coffee-script@0.49.0 2017-09-05 00:18:40 +02:00
Wliu
0d9dc47ef9 ⬇️ language-coffee-script@0.48.9 2017-09-04 18:23:46 +02:00
Wliu
cb433acefc ⬆️ language-coffee-script@0.49.0 2017-09-04 17:38:52 +02:00
Antonio Scandurra
acdf3b20bd Merge pull request #15528 from atom/as-fix-remeasuring-invalid-block-decorations
Don't remeasure invalid block decorations
2017-09-02 11:41:58 +02:00
Antonio Scandurra
6e919e7acd Don't remeasure invalid block decorations
This fixes an uncaught exception that was being thrown after
invalidating a marker and resizing the editor.
2017-09-02 11:11:27 +02:00
Damien Guard
f3161b06f7 Merge pull request #15522 from atom/dg-async-package-deactivation
Convert package-manager from Coffeescript to JavaScript
2017-09-01 12:34:20 -07:00
Damien Guard
e0606d5e2f 🎨 2017-09-01 10:04:13 -07:00
Damien Guard
c7e56d6366 Avoid ES6 because we run use this code in apm from node 2017-09-01 08:47:24 -07:00
Nathan Sobo
34b230b1cd ⬆️ command-palette 2017-09-01 08:35:51 -06:00
Damien Guard
098231caf9 Convert package-manager from Coffeescript to JavaScript 2017-08-31 19:34:16 -07:00
Bryant Ung
96b3af143d Merge pull request #15163 from atom/fb-wb-modal-focus
Automatically manage focus for modal panels
2017-08-31 17:09:02 -07:00
Ash Wilson
2a37d1e1c9 ⬆️ spell-check 2017-08-31 15:12:20 -04:00
Max Brunsfeld
b69636b8f2 ⬆️ text-buffer 2017-08-31 09:54:52 -07:00
Antonio Scandurra
6f7814a0c5 Merge pull request #15515 from atom/as-dont-move-cursor-when-clicking-on-scrollbar
Don't move the cursor when clicking on a scrollbar
2017-08-31 14:29:25 +02:00
Antonio Scandurra
53135c5d0d Call this.didMouseDown instead of props.didMouseDown in dummy scrollbars 2017-08-31 14:23:11 +02:00
Antonio Scandurra
5c54825f2d ⬆️ tabs 2017-08-31 11:30:26 +02:00
Antonio Scandurra
3e10a84d49 Merge pull request #15506 from atom/as-honor-scrollbar-visible-only-when-scrolling
Honor macOS "Show scrollbars only when scrolling" setting
2017-08-31 11:29:26 +02:00
Antonio Scandurra
f85deec482 Merge pull request #15503 from atom/as-fix-invalidated-block-decoration-markers
Fix rendering of block decorations for invalid markers
2017-08-31 11:29:14 +02:00
Antonio Scandurra
12e6740c9c Merge pull request #15487 from atom/as-scroll-sensitivity
Always honor scroll intent on mousewheel
2017-08-31 11:28:16 +02:00
Antonio Scandurra
ac9cc72845 Merge pull request #15486 from atom/as-highlights-outside-of-tiles
Move highlight decorations outside of tiles
2017-08-31 11:26:15 +02:00
ungb
7111dd3f87 Fix Build error 2017-08-30 17:48:13 -07:00