Fix document selector when `configFile` setting is a string (#693)
parent
eb40cfe5ca
commit
d0b4a3ecda
|
@ -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]) => {
|
||||||
|
|
Loading…
Reference in New Issue