mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-08 22:29:37 -05:00
Add comment explaining test-only workaround
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
// @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 ".".
|
||||
|
||||
const [replacementSpan] = test.ranges();
|
||||
verify.completionsAt("1", [
|
||||
{ name: "@a/b", replacementSpan },
|
||||
|
||||
Reference in New Issue
Block a user