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
3876deddf3
Merge branch 'master' into ns-alternative-test-env
2015-10-13 17:59:46 -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
ed1c37cdbf
Bind confirm when deserializing panes
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2015-10-13 17:29:41 -06:00
Nathan Sobo
919571f328
Use ApplicationDelegate in WindowEventHandler
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2015-10-13 17:29:41 -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
Nathan Sobo
e92cb86335
Introduce ApplicationDelegate to AtomEnvironment
...
All external actions are performed via this delegate for test-isolation
purposes.
2015-10-13 15:42:57 -06:00
Max Brunsfeld
10b8de6fc4
Merge pull request #8533 from ssorallen/notification-manager-options-docs
...
Document all options for creating Notifications
2015-10-13 13:56:41 -07:00
Nathan Sobo
a8ca3165a0
Remove dead code
2015-10-13 14:46:28 -06:00
Martin Rodalgaard
5b37d3e1aa
📝 Better workspace scan and replace docs
2015-10-13 20:29:24 +02:00
Max Brunsfeld
47961a8e6b
Fix setting default values in config
2015-10-13 11:00:53 -07:00
Jacek Kopecky
d04769907c
prevent use of socket in apm test
2015-10-13 17:36:57 +01:00
Antonio Scandurra
6459891c89
💚 Make sure to destroy AtomEnvironment in specs
2015-10-13 15:30:45 +02:00
Dave Rael
4312f76ed7
Added command line parameter to set portable
...
If parameter included, home directory will be copied to the portable
location to make this a portable install
2015-10-13 05:43:01 -06:00
Antonio Scandurra
e51bad5618
🐛 Install WindowEventHandler in ctor
2015-10-13 12:38:45 +02:00
Antonio Scandurra
3ac0656a26
Reset Workspace before Project
...
Otherwise some paths will be leaked.
2015-10-13 11:29:51 +02:00
Antonio Scandurra
cf5d94f084
Return a promise in test runners
2015-10-13 09:02:37 +02:00
Antonio Scandurra
4a59da9194
Express timeout in seconds
2015-10-13 08:35:02 +02:00
Max Brunsfeld
0b6a695cc0
Merge pull request #9122 from ForNeVeR/coffee-source-maps
...
Fix coffeescript source maps on Windows
2015-10-12 16:00:48 -07:00
Nathan Sobo
f7a3e6c425
Don’t load base style sheets until config is loaded
...
We need to know what themes are active in order to load the correct LESS
variables.
2015-10-12 16:12:46 -06:00
Nathan Sobo
d4c88cc7fd
Merge branch 'master' into ns-alternative-test-env
2015-10-12 15:55:28 -06:00
Nathan Sobo
93de5ccb79
Assign window.onbeforeunload instead of addEventListener
...
This allows us to cancel the unloading if the user doesn’t confirm the
save dialog.
2015-10-12 15:32:36 -06:00
Nathan Sobo
69e8b0cfb1
Prevent title change during specs
2015-10-12 15:19:55 -06:00
abe33
45a3dbca4e
🐛 Fix folds not preserved when moving multiple selections down
...
When two or more selections span the rows immediately before a fold,
the `did-change` event dispatched on the deletion will trigger a merge
of the selections, which in turn trigger an unfold at the buffer
position of the new selection, which is now the position of the fold.
Consolidating the selections at the begin of the transaction will
prevent the merge and will keep the fold untouched.
2015-10-12 22:05:25 +02:00
Kevin Sawicki
21d11daf0c
Merge pull request #9101 from atom/tj-fix-dragging-and-dropping-files
...
Fix #4300 by preventing 'will-navigate' event from firing
2015-10-12 12:01:41 -07:00
Antonio Scandurra
3ee0be33d5
🐎 Speed up test suite by disposing Project::emitter
2015-10-12 19:46:12 +02:00
abe33
4d44016eb1
🎨 Remove unnecessary branching
2015-10-12 19:40:23 +02:00
Ross Allen
41984a2317
Add onDidStopChangingActivePaneItem for async callbacks
...
`onDidChangeActivePaneItem` is called synchronously when the active pane
item changes, and several non-critical actions preform work on that
event. Critical UI feedback, like changing the active tab, needs to
happen synchronously, but most other functionality should be run
asynchronously.
2015-10-12 10:24:07 -07:00
Friedrich von Never
b19db0f0c0
Fix coffeescript source maps.
...
The file paths on Windows should be URLs with proper slashes and starting with file:///
2015-10-12 21:22:34 +06:00
Antonio Scandurra
304d35a300
Shim process stdout and stderr
2015-10-12 15:39:56 +02:00
Antonio Scandurra
56e13bba69
Reset Workspace in AtomEnvironment
2015-10-12 15:01:00 +02:00
Antonio Scandurra
612664fd4d
📝 Remember how/when to reset AtomEnviroment::workspace
2015-10-12 09:00:58 +02:00
Antonio Scandurra
aebc1229f1
Always install uncaught error handler
2015-10-12 08:29:43 +02:00
Antonio Scandurra
e1a1474b8d
🐛 Clear views after resetting everything else
...
This prevents a bug where calling `::getView` returns two different instances if
such method is invoked after views are cleared out (e.g. packages deactivation
in `packageManager.reset()`).
2015-10-11 19:27:19 +02:00
Antonio Scandurra
f77f62625e
Add activateItem config to Workspace::open
...
Now that we have deleted `Project::open(...)`, all the methods that previously
used it need to switch to `Workspace::open(...)` instead. These two methods,
however, are not idempotent because the latter performs additional operations.
Since some specs relied on not activating an item after opening it, this commit
adds a parameter to prevent such activation.
Refs: 1ebcf166c7
2015-10-11 18:24:42 +02:00
abe33
9ee89a1f31
🎨 Fix bad indentation
2015-10-11 18:15:22 +02:00
abe33
09ffa8bec9
🐛 Fix moving multiple selections down locked at wrapped line
2015-10-11 18:15:06 +02:00
abe33
f4f4b9fdef
Merge branch 'master' into pr/8232
2015-10-11 14:23:36 +02:00
joseramonc
84e723a723
autoindent lines in moveLineUp/moveLineDown
...
#7546
2015-10-10 13:15:05 -05:00
Max Brunsfeld
74c0836be5
🔥 Duplicate devMode/inDevMode parameter to Package, PackageManager
2015-10-09 17:34:22 -07:00
Max Brunsfeld
75463829f9
Pass inDevMode to package-manager as a boolean value
...
Rather than as a bound function
2015-10-09 17:26:19 -07:00
Max Brunsfeld
369f3d2648
Don't use atom.{notifications,config,deserializers,confirm} in Pane
...
Still need to get rid of one use of showSaveDialogSync
2015-10-09 17:18:26 -07:00
Thomas Johansen
af36a23e95
🐛 Fix #4300 by preventing 'will-navigate'
2015-10-10 01:21:49 +02:00
Max Brunsfeld
778023c78b
Make factory for StylesElements on atom.styles
2015-10-09 13:46:32 -07:00
Dave Rael
b8a153781e
Implement Portable Mode
...
According to these specifications:
Portable mode only applies to Windows (for now)
Portable mode only applies if ATOM_HOME is not set
If there is a .atom directory as sibling to directory with running process
use that as ATOM_HOME
2015-10-09 11:20:41 -06:00
Antonio Scandurra
1a8beef74f
🐛 Load config schema before loading base stylesheets
2015-10-09 19:10:55 +02:00
Antonio Scandurra
4ce814320d
Call side effects methods after instantiating instance variables
...
This prevents a 🐛 where the `onDidLoadBundledKeymaps` was fired before
`MenuManager` had the chance to listen to it thereby not showing the appropriate
menu entries.
2015-10-09 17:41:33 +02:00