-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error for referencing referenced project input file
- Loading branch information
1 parent
1558c7f
commit 0d95ce2
Showing
8 changed files
with
1,376 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/baselines/reference/rewriteRelativeImportExtensionsProjectReferences1.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// === Syntax and Semantic Diagnostics === | ||
Syntactic Diagnostics for file '/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences1.ts': | ||
|
||
|
||
==== /tests/cases/fourslash/server/packages/common/src/index.ts (0 errors) ==== | ||
export {}; | ||
==== /tests/cases/fourslash/server/packages/main/src/index.ts (0 errors) ==== | ||
import {} from "../../common/src/index.ts"; | ||
|
||
Semantic Diagnostics for file '/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences1.ts': | ||
/tests/cases/fourslash/server/packages/main/src/index.ts(1,16): error TS2876: This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files. | ||
|
||
|
||
==== /tests/cases/fourslash/server/packages/common/src/index.ts (0 errors) ==== | ||
export {}; | ||
==== /tests/cases/fourslash/server/packages/main/src/index.ts (1 errors) ==== | ||
import {} from "../../common/src/index.ts"; | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
!!! error TS2876: This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files. |
16 changes: 16 additions & 0 deletions
16
tests/baselines/reference/rewriteRelativeImportExtensionsProjectReferences2.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// === Syntax and Semantic Diagnostics === | ||
Syntactic Diagnostics for file '/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences2.ts': | ||
|
||
|
||
==== /tests/cases/fourslash/server/src/compiler/parser.ts (0 errors) ==== | ||
export {}; | ||
==== /tests/cases/fourslash/server/src/services/services.ts (0 errors) ==== | ||
import {} from "../compiler/parser.ts"; | ||
|
||
Semantic Diagnostics for file '/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences2.ts': | ||
|
||
|
||
==== /tests/cases/fourslash/server/src/compiler/parser.ts (0 errors) ==== | ||
export {}; | ||
==== /tests/cases/fourslash/server/src/services/services.ts (0 errors) ==== | ||
import {} from "../compiler/parser.ts"; |
Oops, something went wrong.