Fix document selector when `configFile` setting is a string (#693)

master
Brad Cornes 2023-01-05 14:28:04 +00:00 committed by GitHub
parent eb40cfe5ca
commit d0b4a3ecda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1617,7 +1617,9 @@ class TW {
} }
let configFiles = let configFiles =
typeof configFileOrFiles === 'string' ? { [configFileOrFiles]: '**' } : configFileOrFiles typeof configFileOrFiles === 'string'
? { [configFileOrFiles]: path.resolve(base, '**') }
: configFileOrFiles
workspaceFolders = Object.entries(configFiles).map( workspaceFolders = Object.entries(configFiles).map(
([relativeConfigPath, relativeDocumentSelectorOrSelectors]) => { ([relativeConfigPath, relativeDocumentSelectorOrSelectors]) => {