File tree 2 files changed +7
-10
lines changed
tests/baselines/reference/tscWatch/programUpdates 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -46812,7 +46812,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
46812
46812
}
46813
46813
if (checkExternalImportOrExportDeclaration(node)) {
46814
46814
const importClause = node.importClause;
46815
- const moduleExisted = resolveExternalModuleName(node, node.moduleSpecifier);
46816
46815
if (importClause && !checkGrammarImportClause(importClause)) {
46817
46816
if (importClause.name) {
46818
46817
checkImportBinding(importClause);
@@ -46825,8 +46824,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
46825
46824
checkExternalEmitHelpers(node, ExternalEmitHelpers.ImportStar);
46826
46825
}
46827
46826
}
46828
- else if (moduleExisted) {
46829
- forEach(importClause.namedBindings.elements, checkImportBinding);
46827
+ else {
46828
+ const moduleExisted = resolveExternalModuleName(node, node.moduleSpecifier);
46829
+ if (moduleExisted) {
46830
+ forEach(importClause.namedBindings.elements, checkImportBinding);
46831
+ }
46830
46832
}
46831
46833
}
46832
46834
}
Original file line number Diff line number Diff line change 1
1
currentDirectory:: / u s e r / username/ projects / myproject useCaseSensitiveFileNames : false
2
2
Input::
3
3
//// [/user/username/projects/myproject/a.ts]
4
- export { } ;
4
+
5
5
6
6
//// [/user/username/projects/myproject/b.ts]
7
7
import "./a.ts" ;
@@ -47,12 +47,7 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod
47
47
Elapsed :: * ms DirectoryWatcher:: Added:: WatchInfo: / u s e r / username/ projects / myproject / node_modules / @types 1 undefined Type roots
48
48
DirectoryWatcher:: Added:: WatchInfo: / u s e r / username/ projects / node_modules / @types 1 undefined Type roots
49
49
Elapsed :: * ms DirectoryWatcher :: Added :: WatchInfo : / u s e r / username/ projects / node_modules / @types 1 undefined Type roots
50
- [ 96 mb . ts [ 0 m :[ 93 m1 [ 0 m :[ 93 m8 [ 0 m - [ 91 merror [ 0 m [ 90 m TS5097 : [ 0 mAn import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled .
51
-
52
- [ 7 m1 [ 0 m import "./a.ts" ;
53
- [ 7 m [ 0 m [ 91 m ~ ~ ~ ~ ~ ~ ~ ~ [ 0 m
54
-
55
- [ [ 90 mHH :MM :SS AM [ 0 m ] Found 1 error . Watching for file changes .
50
+ [ [ 90 mHH :MM :SS AM [ 0 m ] Found 0 errors . Watching for file changes .
56
51
57
52
DirectoryWatcher :: Added :: WatchInfo : / user / username / projects / myproject 1 undefined Wild card directory
58
53
Elapsed :: * ms DirectoryWatcher :: Added :: WatchInfo : / user / username / projects / myproject 1 undefined Wild card directory
You can’t perform that action at this time.
0 commit comments