atom project open in their own windows and behave more sanely

This commit is contained in:
Philip Weiss
2018-02-23 17:38:36 -08:00
parent ad40ff9825
commit e2c480847c
4 changed files with 22 additions and 11 deletions

View File

@@ -630,7 +630,7 @@ class Config {
// Priority level for atom project settings.
if (this.hasCurrentProject) {
options.scope = (scope == null) ? [PROJECT] : scope.push(PROJECT)
options.scope = (!Array.isArray(scope)) ? [PROJECT] : scope.push(PROJECT)
options.sources = (options.sources == null ? [PROJECT] : options.sources.push(PROJECT))
priorities.push({ options, source: PROJECT })
}