Don't try tacking on a tsconfig.json if the file already has a json ext

This commit is contained in:
Matt Bierner
2022-02-03 09:45:28 -08:00
parent 92616196f8
commit 571a3c3a55

View File

@@ -178,8 +178,10 @@ async function getTsconfigPath(baseDirUri: vscode.Uri, extendsValue: string): Pr
// Otherwise resolve like a module
return resolveNodeModulesPath(baseDirUri, [
extendsValue,
...extendsValue.endsWith('.json') ? [] : [`${extendsValue}.json`],
`${extendsValue}/tsconfig.json`,
...extendsValue.endsWith('.json') ? [] : [
`${extendsValue}.json`,
`${extendsValue}/tsconfig.json`,
]
]);
}