mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Ensure initial packages are loaded before dispatching URLs
This commit is contained in:
@@ -1074,7 +1074,12 @@ class AtomEnvironment extends Model
|
||||
@commands.dispatch(@contextMenu.activeElement, command, args)
|
||||
|
||||
dispatchUrlMessage: (uri) ->
|
||||
@urlHandlerRegistry.handleUrl(uri)
|
||||
if @packages.hasLoadedInitialPackages()
|
||||
@urlHandlerRegistry.handleUrl(uri)
|
||||
else
|
||||
sub = @packages.onDidLoadInitialPackages ->
|
||||
sub.dispose()
|
||||
@urlHandlerRegistry.handleUrl(uri)
|
||||
|
||||
openLocations: (locations) ->
|
||||
needsProjectPaths = @project?.getPaths().length is 0
|
||||
|
||||
Reference in New Issue
Block a user