TypeScript/tests/cases/fourslash/completionsPaths_pathMapping_topLevel.ts

21 lines
423 B
TypeScript

/// <reference path="fourslash.ts" />
// @Filename: /x/src/a.ts
////import {} from "/**/";
// @Filename: /x/tsconfig.json
////{
//// "compilerOptions": {
//// "baseUrl": ".",
//// "paths": {
//// "foo/*": ["src/*"]
//// }
//// }
////}
verify.completions({
marker: "",
exact: ["src", "foo/"].map(name => ({ name, kind: "directory" })),
isNewIdentifierLocation: true,
});