Commit Graph

121 Commits

Author SHA1 Message Date
Katrina Uychaco
f6ced98be8 Fix bug from merge with PR#10743 2016-02-11 11:43:41 -08:00
Katrina Uychaco
baa2c32a51 Merge branch 'master' into ku-crash-recovery 2016-02-10 11:10:57 -08:00
Max Brunsfeld
b0cf440f9c Handle database connection errors gracefully
When opening a second Atom instance (e.g. when running the integration specs)
indexedDB connections will fail. In this case, StateStore.prototype.save
and StateStore.prototype.load will become noops.

Signed-off-by: Katrina Uychaco <kuychaco@github.com>
2016-02-09 14:30:10 -08:00
joshaber
7695c20e39 De-lint. 2016-02-08 23:13:43 -05:00
joshaber
6131beef66 Document @isFirstLoad. 2016-02-08 21:24:41 -05:00
joshaber
03e33b4474 Use default dimensions the first time we load a window, but saved dimensions after that. 2016-02-08 21:20:36 -05:00
Katrina Uychaco
656cac8814 Merge branch 'master' into ku-crash-recovery 2016-02-08 15:24:00 -08:00
Katrina Uychaco
dc35562962 Remove empty parameter list in order to pass linter 2016-02-08 15:12:46 -08:00
joshaber
f9ec7b5691 Save window dimensions before reloading. 2016-02-08 17:02:50 -05:00
Katrina Uychaco
6e0328b048 Refactor to use StateStore instead of StorageFolder 2016-02-04 21:45:00 -08:00
Max Brunsfeld
19349edc7a Only add local paths to recent documents list
Also, add them in Workspace::open and not AtomEnvironment::openLocations
so that files opened in an existing window will also be added to the
list
2016-02-02 11:16:14 -08:00
Katrina Uychaco
81f30d4908 Only call package serialize methods once on quit 2016-02-01 16:49:21 -08:00
Katrina Uychaco
224b51d17c Add disposable for removing debouncedSaveState listener 2016-01-28 22:49:46 -07:00
Katrina Uychaco
9cec10d9c0 Remove atom environment state instance variable 2016-01-28 22:48:31 -07:00
Katrina Uychaco
c9012a2288 Call AtomEnvironment::deserialize in AtomEnvironment::loadStateSync 2016-01-28 15:48:45 -07:00
Katrina Uychaco
92bd5051b3 Add env version and window dimensions to serialized state 2016-01-28 15:47:37 -07:00
Katrina Uychaco
dff4aa8e84 Use method name store rather than storeAsync 2016-01-28 14:03:10 -07:00
Katrina Uychaco
29deb61d4e Remove AtomEnvironment state instance variable. Tests WIP 2016-01-28 01:29:46 -07:00
Katrina Uychaco
54a03516bf Save state asynchronously on mousedown and keydown events. Tests WIP 2016-01-28 00:58:58 -07:00
Katrina Uychaco
5148b8ca3d Save state on keydown rather than on keypress 2016-01-28 00:47:21 -07:00
Katrina Uychaco
a2f9a8d32e Rename StorageFolder::store to ::storeSync 2016-01-27 23:52:41 -07:00
Katrina Uychaco
126baafda3 Assign debounce interval to property 2016-01-27 15:11:40 -07:00
Katrina Uychaco
e09c7a9911 Avoid binding method before it’s spied upon when debouncing 2016-01-27 14:58:19 -07:00
Katrina Uychaco
df83078d74 Save state on mousedown or keypress events (debounce 1s). Tests WIP 2016-01-27 11:15:02 -07:00
Katrina Uychaco
82d584bac6 Serialize in saveStateSync. Separate deserialization from deactivation. 2016-01-26 23:01:44 -07:00
Douwe Maan
2f78a274a1 Only add explicitly opened files/folders as recent documents 2015-12-01 11:07:10 +01:00
Douwe Maan
948aaa0652 Add opened files and folders to recent documents menu 2015-12-01 11:07:10 +01:00
Max Brunsfeld
d058814957 Merge remote-tracking branch 'origin/master' into mb-deprecate-load-time-package-code
Conflicts:
	package.json
2015-11-30 10:20:31 -08:00
Antonio Scandurra
b3738cfc34 Interact with DevTools on process.nextTick
Using any of the DevTools synchronous methods causes the bad character input
issue.
2015-11-24 12:51:13 +01:00
Antonio Scandurra
6b5ef9a0aa 🔥 2015-11-24 12:45:15 +01:00
Antonio Scandurra
9e931b15c3 Switch to a Promise-based version of DevTools interaction 2015-11-24 12:21:16 +01:00
Max Brunsfeld
cb2b068d77 Load view providers from files specified in package.json 2015-11-19 16:58:20 -08:00
Nathan Sobo
e475065b45 Merge branch 'stable' into beta 2015-11-17 16:57:19 -08:00
Nathan Sobo
6e72ebb886 Load packages before deserializing workspace
This ensures that package-defined deserializers work.
2015-11-17 16:28:53 -08:00
Antonio Scandurra
1a8e2c6f8d 🎨 2015-11-13 16:23:32 -07:00
Antonio Scandurra
62de930b03 Set initialLoadComplete to true only in test mode 2015-11-13 16:23:24 -07:00
Antonio Scandurra
7c6fcea441 Set initialLoadComplete to true only in test mode 2015-11-13 16:00:54 -07:00
Kevin Sawicki
de7cf162f9 Merge pull request #8442 from atom/portable-mode
Enable Portable Mode
2015-11-03 12:49:54 -08:00
Antonio Scandurra
b5226ad420 🎨 2015-11-03 09:55:29 +01:00
Antonio Scandurra
6290822067 Export a function in windowInitializationScript
...so that we can pass BlobStore to AtomEnvironment
2015-11-03 09:51:08 +01:00
Antonio Scandurra
e1087acf9e Save BlobStore only when unloading editor window 2015-11-02 19:49:14 +01:00
Dave Rael
810f0e4583 Fix merge problem and missing function call
Merge resulted in a missing require and change to remove unused function
parameters resulted in not calling function
2015-10-21 09:47:33 -06:00
Dave Rael
e0697ecc7f Merge branch 'master' into portable-mode
Conflicts:
	src/atom-environment.coffee
2015-10-20 20:58:14 -06:00
Nathan Sobo
badba2810e Add disablePinchToZoom to ApplicationDelegate 2015-10-16 11:08:52 -06:00
Cheng Zhao
a5c9fcec2c Disable pinch-to-zoom, fixes #8850 2015-10-16 11:08:51 -06:00
Nathan Sobo
b58b3504f4 Only load/save AtomEnvironment state if persistence is enabled 2015-10-14 22:10:51 -06:00
Nathan Sobo
dc44d11a2c Don’t load/save config if enablePersistence option is false 2015-10-14 20:05:06 -06:00
Nathan Sobo
a85a8d20de Don’t register defaultTarget for keymaps in constructor after all
We’re clearing the views on reset, so this view will end up being
different between test runs. Also, we didn’t previously always create
the workspace view in many cases, and it makes sense to apply that here.

We may want to get the default target for the keymap via a function so
we can defer view creation until one is needed.
2015-10-14 15:57:45 -06:00
Nathan Sobo
c1d5cdcd64 Group requires at the top of atom-environment.coffee 2015-10-14 15:57:45 -06:00
Nathan Sobo
df66ca8d73 Remove unused params 2015-10-14 15:57:45 -06:00