Commit Graph

14968 Commits

Author SHA1 Message Date
Nathan Sobo
e313bbe89c Ensure pane is added to container before invoking onDidAddPane listeners
Fixes #12654
2016-09-12 11:00:26 -06:00
Nathan Sobo
0ff0b269b1 Don't wait for spec windows to save state
Since spec windows don't register handlers for the IPC messages requested window state to be saved, the promise never resolves and the close button needs to be clicked twice. To avoid this, we'll just resolve the promise immediately in a spec window so we can proceed to close it.
2016-09-12 10:26:40 -06:00
Damien Guard
86e8af8bc2 Merge pull request #12653 from atom/dg-fix-sourcemaps-windows
Fix source maps for typescript and babel on Windows
2016-09-09 16:11:15 -07: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
Damien Guard
61c5f37e20 Make sourcemaps work for bable & typescript on Windows 2016-09-09 13:45:33 -07:00
Damien Guard
77a09a7447 Remove app load time console output 2016-09-09 13:08:00 -07: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
7c48b947d7 Windows shell upgrade fixes #12642 2016-09-08 15:58:27 -07: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
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
Max Brunsfeld
ecb262b586 Add deprecated shim for removed electron remote requires 2016-09-07 16:36:00 +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
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
Antonio Scandurra
e6c15ee10b onSaveWindowState -> onSaveWindowStateRequest 2016-09-07 15:47:23 +02: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
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
Alan
71ee729f84 Change Help->Documentation url from https to http (Fix #12583)
The flight manual page does not have a secure connection, so navigating
to the https link would result in a SSL_ERROR_BAD_CERT_DOMAIN error.

It might be better to add a secure connection to the server rather than
pulling this commit.
2016-09-01 14:14:17 -07:00
bene
66dd70d19d 📝 fix arugments not marked as such [ci skip] 2016-08-31 21:16:49 +02:00
Damien Guard
4a1b4cff23 Merge pull request #12560 from atom/dg-fix-toggle-line-numbers
Fix show/hide line numbers in editor
2016-08-30 13:43:25 -07:00
Damien Guard
9451ca0254 Fix show/hide line numbers in editor 2016-08-30 13:20:17 -07:00
Antonio Scandurra
059dbba290 Remove accidentally committed require
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-08-30 20:15:40 +02:00
Antonio Scandurra
ce24a2f1cf Use the correct Atom executable paths on the beta channel
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-08-30 19:25:09 +02:00
Antonio Scandurra
83daa09abc Remove buffer change event order assertion
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-08-29 17:58:38 +02:00
Antonio Scandurra
ac120cbb53 Merge branch 'master' into ns-modernize-build 2016-08-29 12:32:43 +02:00
Antonio Scandurra
880328bf6e Fix lint errors 2016-08-29 10:40:07 +02:00
Nathan Sobo
b3009f1387 Focus application on all code paths that open windows in main process
I think this should take the application out of “app nap” on macOS,
leading to better responsiveness when opening paths from the CLI.
2016-08-28 06:17:41 -06:00
Antonio Scandurra
194f927b87 Merge branch 'master' into ns-modernize-build
# Conflicts:
#	build/tasks/build-task.coffee
2016-08-26 13:25:02 +02:00
Damien Guard
aa3379ceee Merge pull request #12515 from atom/sm-windows-file-icon
[WIP] Add Windows file icon
2016-08-25 21:40:17 -07:00
Damien Guard
cf36ecf3ca Merge branch 'master' into sm-windows-file-icon 2016-08-25 18:20:51 -07:00
Damien Guard
0f88949832 Remove all redundant separators 2016-08-25 12:49:29 -07:00
Damien Guard
ba704cf29e Copy file icon and use as icon for Atom associated files 2016-08-25 11:31:17 -07:00
Damien Guard
d44dbb373d Remove trailing context menu separator fixing #5390 2016-08-24 21:45:21 -07:00
Damien Guard
922f44ff11 Color serialization fixes atom/settings-view#832 2016-08-24 18:08:25 -07:00
Damien Guard
b6a72b058d Set the app name in Windows file handler to handle beta 2016-08-23 13:32:42 -07:00
Andres Suarez
4ca6eaff34 Add atom.project.observeBuffers
This makes `onDidAddBuffer` symmetrical with other `onDidAddX` methods and their `observeXs`. It also documents `onDidAddBuffer` and adds tests for it.

Released under CC0.
2016-08-22 18:00:54 -07:00
Nathan Sobo
579e6b23cf Merge pull request #12426 from oggy/marker-count
Delegate TextEditor.getMarkerCount to default marker layer.
2016-08-20 14:19:44 -05:00
Antonio Scandurra
c667c77ff3 Copy auto{Width,Height} when copying an editor 2016-08-19 13:58:16 +02:00
Antonio Scandurra
1f4cd6e00d Merge branch 'master' into ns-fix-editor-auto-height
# Conflicts:
#	src/text-editor.coffee
2016-08-19 13:27:26 +02:00
Matthew Dapena-Tretter
fd29f96af9 Serialize active pane item using index instead of URI 2016-08-19 12:36:26 +02:00
Max Brunsfeld
d25f824020 Merge pull request #12469 from atom/mb-fix-tab-length-deserialization
Fix tab length deserialization
2016-08-18 21:46:20 -07:00
Max Brunsfeld
26c9e5ee78 Set editor's tokenized buffer's tab length on its display layer when deserializing 2016-08-18 17:06:26 -07:00
Wliu
af48a087c3 Merge pull request #12439 from remexre/master
Adds configuration option for large file warning threshold.
2016-08-18 17:32:36 -04:00
Nathan Sobo
a264eaa18a Serialize TextEditor autoHeight and autoWidth properties 2016-08-18 14:03:44 -06:00