mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-08 22:29:37 -05:00
Refine explanatory comment
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @Filename: app.ts
|
||||
//// import * as A from "[|/*1*/|]";
|
||||
////import * as A from "[|/*1*/|]";
|
||||
|
||||
// @Filename: /node_modules/@types/a__b/index.d.ts
|
||||
////declare module "@e/f" { function fun(): string; }
|
||||
@@ -9,10 +9,8 @@
|
||||
// @Filename: /node_modules/@types/c__d/index.d.ts
|
||||
////export declare let x: number;
|
||||
|
||||
// NOTE: When performing completion, the "current directory" appears to be "/",
|
||||
// which is well above "." (i.e. the directory containing "app.ts"). This issue
|
||||
// is specific to the virtual file system, so just work around it by putting the
|
||||
// node modules folder in "/", rather than ".".
|
||||
// NOTE: The node_modules folder is in "/", rather than ".", because it requires
|
||||
// less scaffolding to mock. In particular, "/" is where we look for type roots.
|
||||
|
||||
const [replacementSpan] = test.ranges();
|
||||
verify.completionsAt("1", [
|
||||
|
||||
Reference in New Issue
Block a user