Skip to content

Commit ff102da

Browse files
committed
Refine explanatory comment
1 parent 8275bed commit ff102da

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tests/cases/fourslash/completionListInImportClause05.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
/// <reference path='fourslash.ts' />
22

33
// @Filename: app.ts
4-
//// import * as A from "[|/*1*/|]";
4+
////import * as A from "[|/*1*/|]";
55

66
// @Filename: /node_modules/@types/a__b/index.d.ts
77
////declare module "@e/f" { function fun(): string; }
88

99
// @Filename: /node_modules/@types/c__d/index.d.ts
1010
////export declare let x: number;
1111

12-
// NOTE: When performing completion, the "current directory" appears to be "/",
13-
// which is well above "." (i.e. the directory containing "app.ts"). This issue
14-
// is specific to the virtual file system, so just work around it by putting the
15-
// node modules folder in "/", rather than ".".
12+
// NOTE: The node_modules folder is in "/", rather than ".", because it requires
13+
// less scaffolding to mock. In particular, "/" is where we look for type roots.
1614

1715
const [replacementSpan] = test.ranges();
1816
verify.completionsAt("1", [

0 commit comments

Comments
 (0)