TypeScript/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral5.ts
Andrew Branch 96cc9b96fe
Make object literal properties new identifier locations when not contextually typed (#42612)
* Make object literal properties new identifier locations when not contextually typed

* Fix completions after comma in object literal

* Update other test
2021-02-02 16:17:55 -08:00

16 lines
350 B
TypeScript

// @module: esnext
// @Filename: /a.ts
//// export const exportedConstant = 0;
// @Filename: /b.ts
//// const foo = 'foo'
//// const obj = { exp/**/
verify.completions({
marker: "",
exact: completion.globalsPlus(["foo"]),
isNewIdentifierLocation: true,
preferences: { includeCompletionsForModuleExports: true },
});