Add core setting for pending tabs configuration

This commit is contained in:
Katrina Uychaco
2016-02-16 14:16:28 -08:00
parent cfab689de1
commit ae26e6c8ca
2 changed files with 7 additions and 0 deletions

View File

@@ -108,6 +108,10 @@ module.exports =
description: 'Automatically update Atom when a new release is available.'
type: 'boolean'
default: true
openPendingPaneItems:
description: 'Open pane items in pending state, such that only one pending item is open per pane.'
type: 'boolean'
default: true
editor:
type: 'object'

View File

@@ -414,6 +414,9 @@ class Workspace extends Model
split = options.split
uri = @project.resolvePath(uri)
if not atom.config.get('core.openPendingPaneItems')
options.pending = false
# Avoid adding URLs as recent documents to work-around this Spotlight crash:
# https://github.com/atom/atom/issues/10071
if uri? and not url.parse(uri).protocol?