mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user