mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Don't try tacking on a tsconfig.json if the file already has a json ext
This commit is contained in:
@@ -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`,
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user