TypeScript/tests/cases/fourslash/completionImportMetaWithGlobalDeclaration.ts
Sheon Han 96e8fbc657 Fix for issue #32528: Prevent meta property from appearing twice (#35844)
* fix meta property from appearing twice

* handle case where ImportMeta has props defined

* rename file

* use exclude instead of exact

* undo comment

* this file should have no change

* change file name back

* add more test cases

* remove comment and text validation

* fix formatting
2020-01-17 13:56:50 -08:00

42 lines
562 B
TypeScript

/// <reference path='fourslash.ts' />
// Module: esnext
// @Filename: a.ts
////import./*1*/
// @Filename: b.ts
////declare global {
//// interface ImportMeta {
//// url: string;
//// }
////}
////import.meta./*2*/
// @Filename: c.ts
////import.meta./*3*/url
// @Filename: d.ts
////import./*4*/meta
verify.completions(
{
marker: "1",
exact: "meta"
},
{
marker: "2",
includes: ["url"],
excludes: ["meta"]
},
{
marker: "3",
includes: ["url"],
excludes: ["meta"]
},
{
marker: "4",
exact: "meta"
}
);