File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
tests/cases/fourslash/server Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ /// <reference path="../fourslash.ts"/>
2+
3+ // @Filename : tsconfig.json
4+ ////{
5+ //// "compilerOptions": {
6+ //// "rootDir": "src",
7+ //// "outDir": "dist",
8+ //// "target": "ES2020",
9+ //// "module": "NodeNext",
10+ //// "strict": true
11+ //// },
12+ //// "include": ["src\\**\\*.ts"]
13+ //// }
14+
15+ // @Filename : package.json
16+ ////{
17+ //// "type": "module",
18+ //// "private": true
19+ //// }
20+
21+ // @Filename : src/index.ts
22+ ////// The line below should show a "Relative import paths need explicit file
23+ ////// extensions..." error in VS Code, but it doesn't. The error is only picked up
24+ ////// by `tsc` which seems to properly infer the module type.
25+ ////import { helloWorld } from './example'
26+ /////**/
27+ ////helloWorld()
28+
29+ // @Filename : src/example.ts
30+ ////export function helloWorld() {
31+ //// console.log('Hello, world!')
32+ //// }
33+
34+ goTo . marker ( ) ;
35+ verify . numberOfErrorsInCurrentFile ( 1 ) ;
You can’t perform that action at this time.
0 commit comments