Commit Graph

29925 Commits

Author SHA1 Message Date
Nathan Sobo
9341e59786 ⬆️ markdown-preview 2016-09-09 17:08:11 -06:00
Nathan Sobo
2487eda369 Revert "⬇️ scandal"
This reverts commit a2d3f7d489.
2016-09-09 17:04:33 -06:00
Nathan Sobo
4f1833ad36 ⬆️ markdown-preview. Fixes #8652 2016-09-09 16:06:12 -06:00
Max Brunsfeld
2dfa06f24c Merge pull request #12501 from atom/fb-as-add-observe-buffers
Add atom.project.observeBuffers
2016-09-09 13:45:46 -07:00
Antonio Scandurra
3880df22ab Merge pull request #12646 from atom/as-run-main-process-tests-everywhere
Run main process tests on CircleCI, Travis and AppVeyor
2016-09-09 17:59:16 +02:00
Antonio Scandurra
5c3bad077d Run platform-specific specs without mocking process.platform 2016-09-09 17:58:23 +02:00
Antonio Scandurra
924ca8ecf6 Run main process tests on Windows 2016-09-09 17:58:23 +02:00
Antonio Scandurra
6841babc4a Run main process tests on Linux 2016-09-09 17:58:23 +02:00
Antonio Scandurra
ccd381b8ad Merge pull request #12645 from atom/as-fix-app-not-quitting-on-windows-and-linux
Fix app not quitting on win32 and linux when closing the last window
2016-09-09 17:57:57 +02:00
Antonio Scandurra
e2a3b75db2 Fix app not quitting on win32 and linux when closing the last window
This regression was caused by a nuance in the way we maintain state in
`AtomApplication` for open windows. Specifically, when closing the last
window on Windows and Linux, we were explicitly calling `app.quit`
*before* removing such window from the list of open ones. In turn, this
caused the new `before-quit` behavior introduced in #12619 to work
improperly because it made the application wait on saving the state of a
stale window before exiting.

With this commit we are fixing that by making sure the stale window is
removed before calling `app.quit` in `removeWindow`.
2016-09-09 10:51:40 +02:00
Damien Guard
6ebd1ad582 Remove accidental logging statements checked in 3eb55d7d 2016-09-08 21:49:48 -07:00
Damien Guard
3eb55d7db0 Add Windows file.ico lost in move to new build 2016-09-08 21:16:55 -07:00
Damien Guard
604aac782c Merge pull request #12643 from atom/dg-fix-shell-menu-upgrades
Windows shell upgrade fixes #12642
2016-09-08 16:26:19 -07:00
Damien Guard
7c48b947d7 Windows shell upgrade fixes #12642 2016-09-08 15:58:27 -07:00
Nathan Sobo
a2d3f7d489 ⬇️ scandal 2016-09-08 14:43:43 -06:00
Nathan Sobo
acfced29e9 ⬆️ scandal 2016-09-08 14:15:20 -06:00
Nathan Sobo
6d76608e76 Merge pull request #12562 from atom/jf-patch-linux-environment
Simplify Environment Patching
2016-09-08 13:55:19 -06:00
Joe Fitzgerald
d4d05244b3 ATOM_SUPPRESS_ENV_PATCHING > ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT 2016-09-08 12:24:33 -06:00
Joe Fitzgerald
36291f6a8f Combine Check
- The additional (!process.env[key] && envToAssign[key]) check allows “preserved” variables to be set for the first time if they are currently unset
2016-09-08 11:18:28 -06:00
Joe Fitzgerald
3c7a89ec93 Add Spec To Validate Updating An Existing Env Var
- 🎨 Update spec description to more accurately reflect the intent
2016-09-08 11:17:42 -06:00
Joe Fitzgerald
b321ab6a38 Prevent Regression For Common Shells
- Fix lint warnings
2016-09-08 10:56:01 -06:00
Joe Fitzgerald
10270609d8 Use ATOM_SUPPRESS_ENV_PATCHING Environment Variable
- Stop using shell whitelist
2016-09-08 10:56:01 -06:00
Joe Fitzgerald
c570e14420 Get Environment From Shell On Linux 2016-09-08 10:56:01 -06:00
Antonio Scandurra
c397bcd46e Merge pull request #12300 from atom/tj-upgrade-electron
Upgrade Electron
2016-09-07 17:52:32 +02:00
Antonio Scandurra
bb7ff6d535 🎨 2016-09-07 16:36:01 +02:00
Thomas Johansen
905ba7becf ⬆️ electron@1.3.5 2016-09-07 16:36:01 +02:00
simurai
0dced47183 🎨 Remove test background 2016-09-07 16:36:01 +02:00
simurai
191a50bf2d Fix position of atom-pane-resize-handle
As of Chromium 52 absolutely positioned flexbox items are taken out of the flow. See https://developers.google.com/web/updates/2016/06/absolute-positioned-children?hl=en

To keep it in the flow, we use an absolutely positioned pseudo-element instead.
2016-09-07 16:36:00 +02:00
Max Brunsfeld
ecb262b586 Add deprecated shim for removed electron remote requires 2016-09-07 16:36:00 +02:00
Max Brunsfeld
052cf0dbda Add shims for deprecated shell, clipboard requires 2016-09-07 16:36:00 +02:00
Max Brunsfeld
1ddce8b4a0 Expect double quotes for multi-word font names in spec
getComputedStyle seems to return font families this way in Chrome 52
2016-09-07 16:36:00 +02:00
Max Brunsfeld
6ca1676bcb Access auto-updater through new electron API in AtomEnvironment spec 2016-09-07 16:36:00 +02:00
Max Brunsfeld
c928b9eb2c ⬆️ oniguruma and all dependent modules/packages
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-07 16:35:53 +02:00
Max Brunsfeld
5eea3dd4eb ⬆️ electron to 1.3.4 2016-09-07 16:33:53 +02:00
Max Brunsfeld
db022e7779 Return void from beforeunload handler to allow window unload
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-07 16:33:53 +02:00
Max Brunsfeld
09a296fc0e Detect headless environment using process.type
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-07 16:33:53 +02:00
Max Brunsfeld
937e595091 ⬆️ electron to 1.2.8
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-07 16:33:52 +02:00
Max Brunsfeld
c876fd76f8 Add deprecated shims for invalid args to node path functions
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-07 16:33:52 +02:00
Max Brunsfeld
e7444b1ebe Add shims for legacy electron APIs
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-07 16:33:52 +02:00
Max Brunsfeld
874b555fde ⬆️ autocomplete-plus 2016-09-07 16:33:38 +02:00
Thomas Johansen
e2210722f4 ⬆️ electron@1.1.3 2016-09-07 16:31:25 +02:00
Thomas Johansen
4a58f9d730 ⬆️ electron@1.0.2 2016-09-07 16:31:25 +02:00
Antonio Scandurra
549e65cb10 Merge pull request #12619 from atom/as-save-window-state-before-closing-window-or-app
Wait for windows' state to be saved before closing the app or any window
2016-09-07 16:02:56 +02:00
Antonio Scandurra
e6c15ee10b onSaveWindowState -> onSaveWindowStateRequest 2016-09-07 15:47:23 +02:00
Wliu
aecea6d2f3 Merge pull request #12502 from atom/wl-update-languages
Update languages
2016-09-07 09:28:53 -04:00
Antonio Scandurra
34a99f9c82 Write tests to ensure quitting the application works as expected 2016-09-07 14:18:52 +02:00
Antonio Scandurra
0f6eadcfce Wait for windows' state to be saved before closing the app or any window
Previously, we used to save the window's state in the renderer process
`beforeunload` event handler: because of the synchronous nature of event
handlers and the asynchronous design of IndexedDB, this could
potentially not save anything if windows close fast enough to prevent
IndexedDB from committing the pending transaction containing the state.
(Ref.: https://mzl.la/2bXCXDn)

With this commit, we will intercept the `before-quit` events on
`electron.app` and the `close` event on `BrowserWindow` (which will fire
respectively before quitting the application and before closing a
window), and prevent them from performing the default action. We will
then ask each renderer process to save its state and, finally, close the
window and/or the app.
2016-09-07 13:03:33 +02:00
Antonio Scandurra
db76b9fb39 Improve test coverage for #12610
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-06 19:24:57 +02:00
Antonio Scandurra
f01f75898c Merge pull request #12610 from atom/as-tokenized-buffer-iterator-regression
Clip to next boundary when seeking iterator to the middle of a text tag
2016-09-06 18:57:54 +02:00
Antonio Scandurra
581790760b Clip to next boundary when seeking iterator to the middle of a text tag
Previously, when calling `TokenizedBufferIterator.seek` with a position
that lied within a text tag, we advanced the iterator by the extent of
that tag without, however, consuming it. Hence, when calling
`moveToSuccessor` afterward, we would consume that tag and advance the
iterator again, thus effectively moving it twice and making its position
inaccurate.

An option could be to clip to the left of the textual tag without
consuming it. However, this would be a little odd with respect to the
current contract between (`DisplayLayer` and) `seek`, whose promise is
to move the iterator to a position that is greater or equal than the one
asked by the caller.

Therefore, with this commit, we are changing the behavior of `seek` in
this particular scenario to consume the tag in question and process all
its siblings until a tag boundary is finally found. This ensures that
the above contract is always respected, while still preserving the "seek
to leftmost tag boundary" semantics (i.e. notice how in the changed test
case, calling `seek` with `Point(0, 1)` is the same as calling it with
`Point(0, 3)`).
2016-09-06 18:12:05 +02:00