From c4546c0a9c1c6b013e638804b844c5d14eaabb2a Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Sun, 6 Aug 2023 10:02:22 +0200 Subject: [PATCH] failing case for json4 completion --- src/__tests__/json-completion.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/__tests__/json-completion.spec.ts b/src/__tests__/json-completion.spec.ts index 5c83039..4c0a13b 100644 --- a/src/__tests__/json-completion.spec.ts +++ b/src/__tests__/json-completion.spec.ts @@ -32,4 +32,16 @@ describe("jsonCompletion", () => { }, ]); }); + // TODO: fix this failing case + it("should include insert text for nested object properties", async () => { + await expectCompletion(`{ "object": { '| } }`, [ + { + detail: "string", + info: "an elegant string", + label: "foo", + template: '"foo": "#{}"', + type: "property", + }, + ]); + }); });