mirror of
https://github.com/atom/atom.git
synced 2026-01-25 23:08:18 -05:00
Add core setting for pending tabs configuration
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user