Johannes Rieken
2025-02-18 19:53:44 +01:00
committed by GitHub
parent 32ecac6780
commit b14a80cb7f
2 changed files with 2 additions and 2 deletions

View File

@@ -618,7 +618,7 @@ class LanguageServiceHost {
});
// (2) import-require statements
info.importedFiles.forEach(ref => {
if (!ref.fileName.startsWith('.') || path_1.default.extname(ref.fileName) === '') {
if (!ref.fileName.startsWith('.')) {
// node module?
return;
}

View File

@@ -702,7 +702,7 @@ class LanguageServiceHost implements ts.LanguageServiceHost {
// (2) import-require statements
info.importedFiles.forEach(ref => {
if (!ref.fileName.startsWith('.') || path.extname(ref.fileName) === '') {
if (!ref.fileName.startsWith('.')) {
// node module?
return;
}