Commit Graph

426 Commits

Author SHA1 Message Date
Jason Rudolph
677a46de40 Merge pull request #18116 from atom/dw-update-server-script
Add a simple server for testing Atom updates, enable Atom to use it via environment variable
2019-05-21 12:38:38 -04:00
Antonio Scandurra
52631bab98 Use fs-plus instead of fs in AtomProtocolHandler
This commit fixes some deprecation warnings we were observing in our 
test suite, as well as when opening packages that registered protocol 
handlers such as the `welcome` package.

The warnings were due to using the `fs.(l)statSyncNoException` API, 
which will be deprecated from Electron 4 onwards. We had already dealt 
with this by shipping https://github.com/atom/fs-plus/pull/46, which 
provided a shim on `fs-plus` to suppress the warning. However, 
`AtomProtocolHandler` was still using the standard `fs` module, which 
was causing the warning to be displayed whenever a package registered a 
URL opener.
2019-05-20 18:03:14 +02:00
Nathan Sobo
d5c84e5f4e Wait for config file to load before watching and prompting to restart 2019-05-17 05:18:24 -06:00
Nathan Sobo
770b8fdcf8 Revert "Merge pull request #19244 from atom/ns/notify"
This reverts commit b2ecabd527, reversing
changes made to c3bf95194a.
2019-05-17 04:10:17 -06:00
David Wilson
12b02448d8 Enable ATOM_UPDATE_URL_PREFIX env var to override update server URL 2019-05-15 15:46:46 -07:00
Rafael Oleza
e57e3ddb7e Always return a Disposable from the watch() method 2019-05-13 16:05:22 +02:00
Nathan Sobo
1d2878f92e Merge remote-tracking branch 'origin/master' into ns/notify 2019-05-10 15:38:36 -06:00
Rafael Oleza
db6031db03 Merge pull request #19297 from atom/startup-timing-markers
Add markers for more granular logging of startup time
2019-05-10 23:16:57 +02:00
Rafael Oleza
90bcdf4cba Add markers for more granular logging of startup time 2019-05-09 20:12:07 +02:00
Nathan Sobo
db40641a84 Merge remote-tracking branch 'origin/master' into ns/notify 2019-05-07 16:38:34 -06:00
Rafael Oleza
691c90e4b5 Fix atom.open() 2019-05-07 19:14:32 +02:00
Rafael Oleza
1efa4f36ea Decaffeinate src/initialize-application-window.js 2019-05-07 12:47:10 +02:00
Rafael Oleza
18a308de57 Fix atom --dev with JSON config files 2019-05-06 14:00:41 +02:00
Nathan Sobo
da52d167cc Prompt to restart Atom when the file system watcher setting changes
I experimented with just reloading the Window, but ran into problems. 
I'm also worried about a situation where there are multiple windows. 
Since this setting should be changed rarely, I think prompting for a 
restart is an expedient solution.
2019-05-02 15:10:10 -06:00
Rafael Oleza
84915c40d1 Explain why we don't use randomBytes on a comment 2019-05-02 11:59:19 +02:00
Rafael Oleza
966f002fa2 Add more explicit comment about Windows perf issue 2019-05-02 11:55:30 +02:00
Rafael Oleza
7eec855439 Merge branch 'master' into delay-waiting-for-watcher 2019-05-02 11:26:15 +02:00
Rafael Oleza
164d543364 Only delay the watcher on Windows 2019-05-02 11:25:55 +02:00
Winston Liu
e2d44ce5cc 🔥 win-powershell.coffee 2019-05-02 01:39:03 -04:00
Ash Wilson
3ee3641525 Merge pull request #19247 from atom/aw/drag-and-drop
Always use target window for drag-and-drop
2019-05-01 12:44:43 -04:00
Ash Wilson
61377b843c Support a "here" option in the "open" IPC message handler 2019-05-01 09:02:02 -04:00
Rafael Oleza
350d5ef3a7 Do not wait until config watcher is ready in order to launch the Atom
window
2019-05-01 11:02:43 +02:00
Rafael Oleza
2b6d70a525 Avoid using randomBytes() when encrypting options
This way we avoid delaying the opening of a project when reusing an
existing Atom window.
2019-04-30 19:16:05 +02:00
Rafael Oleza
3fcdcde74d Use async randomBytes API to speedup Windows startup 2019-04-30 19:14:54 +02:00
Ash Wilson
896ebfd97d Skip spec windows when finding an existing window to open paths 2019-04-28 17:22:14 -04:00
Ash Wilson
c8beb6ffab Open loaded window options *first* 2019-04-24 15:22:32 -04:00
Ash Wilson
2988226370 Set {newWindow: true} for options recovered from application.json 2019-04-24 15:22:03 -04:00
Ash Wilson
a53addbf78 Update AtomWindow::projectRoots synchronously on openLocations() 2019-04-24 15:04:59 -04:00
Ash Wilson
2b1aaa7a13 Save application state with a version-tagged schema
Load application state from the current or previous application.json 
schema. Filter out file paths when loading old state.
2019-04-24 10:18:47 -04:00
Jason Rudolph
9747f747c6 Update src/main-process/atom-application.js
Co-Authored-By: smashwilson <smashwilson@github.com>
2019-04-23 16:37:03 -04:00
Ash Wilson
8a933d879c Document why 'open-file' is there 2019-04-23 11:53:25 -04:00
Ash Wilson
213f3b28b3 Rework and test IPC events that create windows 2019-04-23 11:18:53 -04:00
Ash Wilson
c719dc8aa2 Test empty command-line cases 2019-04-19 17:37:23 -04:00
Ash Wilson
96e6403573 Remove unused forceAddToWindow 2019-04-19 17:36:33 -04:00
Ash Wilson
cc1ddf1011 Use hasOpenFiles to flag a window that will receive openLocations() 2019-04-19 15:50:03 -04:00
Ash Wilson
28116828a1 Consistently operate on result.pathToOpen 2019-04-19 14:37:26 -04:00
Ash Wilson
d3bb28f1a4 File under "how did this ever work" 2019-04-19 14:33:22 -04:00
Ash Wilson
a303e31c1b Consistently return an AtomWindow from openPackageUriHandler 2019-04-19 12:02:36 -04:00
Ash Wilson
a1e3598648 Default devMode, safeMode, and window to predictable false values 2019-04-19 12:02:11 -04:00
Ash Wilson
9d8ae2aa82 Return a Promise that resolves once the server has started listening 2019-04-19 12:01:51 -04:00
Ash Wilson
8b1827bea7 Return an all-Promise for windows opened by urlsToOpen 2019-04-19 12:01:22 -04:00
Ash Wilson
ca2f8db022 Inject an application creation function to AtomApplication::open
This lets me call open() and create properly stubbed-out AtomApplication 
instances.
2019-04-19 12:01:03 -04:00
Ash Wilson
ab1bc2e173 Save window options when opening a window 2019-04-18 22:56:57 -04:00
Ash Wilson
40c2f5b073 'did-change-paths' is never broadcast
This event is handled by AtomWindow::setProjectRoots() now.
2019-04-18 22:56:46 -04:00
Ash Wilson
b903dc2506 Save .projectRoots, not .initialProjectRoots which is undefined 2019-04-18 22:56:12 -04:00
Ash Wilson
b1d6e42aa9 Add preserveFocus flag to keep main process tests from stealing focus 2019-04-18 21:10:41 -04:00
Ash Wilson
c6652e1b29 Don't restore state when --new-window is passed and other paths 2019-04-18 17:09:55 -04:00
Ash Wilson
2914b1c58e Don't append launch options to the deserialized ones?? 2019-04-18 17:06:20 -04:00
Ash Wilson
80f8d92565 Don't require urlsToOpen 2019-04-18 17:05:56 -04:00
Ash Wilson
9eb259ce20 Guarantee the window opening order 2019-04-18 17:03:43 -04:00