mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Throw when Config::set is called w/ source and no scope
This commit is contained in:
@@ -541,6 +541,9 @@ class Config
|
||||
scopeSelector = options?.scopeSelector
|
||||
source = options?.source
|
||||
|
||||
if source and not scopeSelector
|
||||
throw new Error("::set with a 'source' and no 'sourceSelector' is not yet implemented!")
|
||||
|
||||
source ?= @getUserConfigPath()
|
||||
|
||||
unless value is undefined
|
||||
|
||||
Reference in New Issue
Block a user