Commit Graph

96 Commits

Author SHA1 Message Date
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
Antonio Scandurra
6a53034a12 Move GrammarRegistry reset after Workspace
...as some elements could still use grammars upon Workspace destruction.
2015-10-14 17:48:47 +02:00
Antonio Scandurra
789af9fc69 Use params instead of loadSettings 2015-10-14 13:01:54 +02:00
Antonio Scandurra
b25d3e944b Parameterize configDirPath and move config.load in ctor 2015-10-14 12:41:36 +02:00
Antonio Scandurra
ed201d41cd 💚 Clear CommandRegistry on AtomEnvironment destruction 2015-10-14 10:11:53 +02:00
Antonio Scandurra
57f6fc5772 Observe core.autoHideMenuBar in AtomEnvironment ctor 2015-10-14 09:56:46 +02:00
Antonio Scandurra
f5f2d5dcd6 Remove remaining references to window global 2015-10-14 09:50:50 +02:00
Antonio Scandurra
0ea84ab192 Register default target for keymaps in ctor 2015-10-14 09:31:50 +02:00
Antonio Scandurra
a3190e4551 Use @window when (un)installing uncaught error handler 2015-10-14 09:18:54 +02:00
Nathan Sobo
974743d46c Attach CommandRegistry to window in constructor 2015-10-13 20:11:52 -06:00
Nathan Sobo
74d644ac73 Clear GrammarRegistry in AtomEnvironment::reset 2015-10-13 20:09:56 -06:00
Nathan Sobo
3ef6a9b63b Remove workspaceParentSelector and always attach to document body
Tests never call startEditorWindow anyway.
2015-10-13 19:54:29 -06:00
Nathan Sobo
903ecca1f7 Parameterize document on AtomEnvironment 2015-10-13 19:48:56 -06:00
Nathan Sobo
5941d9464a Don’t use window global in AtomEnvironment 2015-10-13 19:39:34 -06:00
Nathan Sobo
54ce749578 Remove unused local 2015-10-13 19:38:02 -06:00
Nathan Sobo
99b06e149b Remove AtomEnvironment::requireWithGlobals 2015-10-13 19:37:26 -06:00
Nathan Sobo
65ae175e72 Pass explicit window global into AtomEnvironment on construction 2015-10-13 19:35:51 -06:00
Nathan Sobo
c8407167ee Pass specific parameters to registerDefaultCommands 2015-10-13 19:20:06 -06:00
Nathan Sobo
f9a269ed99 Prompt about checking out head revision in TextEditor, not GitRepository
This allows us not to inject confirm or ApplicationDelegate into
Project, GitRepositoryProvider, and GitRepository.
2015-10-13 19:11:55 -06:00
Nathan Sobo
306ddf5491 Use ApplicationDelegate in CommandInstaller instead of bound confirm 2015-10-13 19:10:56 -06:00
Nathan Sobo
84aa8471b4 Pass AppDelegate to Workspace, Pane instead of bound functions
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-13 18:54:48 -06:00
Nathan Sobo
20e07649d4 Move confirm into ApplicationDelegate
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-13 18:09:35 -06:00
Nathan Sobo
cc0bf23f78 Add setRepresentedDirectoryPaths to ApplicationDelegate
Also, use it to provide the default path in showSaveDialog
2015-10-13 17:57:48 -06:00
Nathan Sobo
432a59b8e5 Move tests from window-event-handler-spec for moved functionality
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-13 17:53:01 -06:00
Nathan Sobo
f989ed65e1 Move ipc handling from WindowEventHandler to ApplicationDelegate
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-13 16:57:02 -06:00
Nathan Sobo
83a0cf28cd 🎨
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-13 15:47:45 -06:00