File tree Expand file tree Collapse file tree
tests/baselines/reference/tscWatch/programUpdates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46812,6 +46812,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4681246812 }
4681346813 if (checkExternalImportOrExportDeclaration(node)) {
4681446814 const importClause = node.importClause;
46815+ const moduleExisted = resolveExternalModuleName(node, node.moduleSpecifier);
4681546816 if (importClause && !checkGrammarImportClause(importClause)) {
4681646817 if (importClause.name) {
4681746818 checkImportBinding(importClause);
@@ -46824,11 +46825,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4682446825 checkExternalEmitHelpers(node, ExternalEmitHelpers.ImportStar);
4682546826 }
4682646827 }
46827- else {
46828- const moduleExisted = resolveExternalModuleName(node, node.moduleSpecifier);
46829- if (moduleExisted) {
46830- forEach(importClause.namedBindings.elements, checkImportBinding);
46831- }
46828+ else if (moduleExisted) {
46829+ forEach(importClause.namedBindings.elements, checkImportBinding);
4683246830 }
4683346831 }
4683446832 }
Original file line number Diff line number Diff line change 11currentDirectory:: / u s e r / username/ projects / myproject useCaseSensitiveFileNames : false
22Input::
33//// [/user/username/projects/myproject/a.ts]
4-
4+ export { } ;
55
66//// [/user/username/projects/myproject/b.ts]
77import "./a.ts" ;
@@ -47,7 +47,12 @@ DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_mod
4747Elapsed :: * ms DirectoryWatcher:: Added:: WatchInfo: / u s e r / username/ projects / myproject / node_modules / @types 1 undefined Type roots
4848DirectoryWatcher:: Added:: WatchInfo: / u s e r / username/ projects / node_modules / @types 1 undefined Type roots
4949Elapsed :: * ms DirectoryWatcher:: Added:: WatchInfo: / u s e r / username/ projects / node_modules / @types 1 undefined Type roots
50- [ [ 90 mHH :MM :SS AM [ 0 m ] Found 0 errors . Watching for file changes .
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 .
5156
5257DirectoryWatcher :: Added :: WatchInfo : / user / username / projects / myproject 1 undefined Wild card directory
5358Elapsed :: * 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