From 10a53fbc14fadedf197cf8bc5657cb371116c076 Mon Sep 17 00:00:00 2001 From: Jason Desrosiers Date: Fri, 29 Mar 2024 15:17:28 -0700 Subject: [PATCH] Fix bug in step function --- language-server/src/jsonc-instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language-server/src/jsonc-instance.js b/language-server/src/jsonc-instance.js index 8833ac3..565853a 100644 --- a/language-server/src/jsonc-instance.js +++ b/language-server/src/jsonc-instance.js @@ -50,7 +50,7 @@ export class JsoncInstance { step(propertyName) { const pair = find(([key]) => key.value() === propertyName, this.entries()); - return pair ? pair[1] : new JsoncInstance(this.textDocument, this.root, undefined, JsonPointer.append(propertyName, this.pointer, this.annotations)); + return pair ? pair[1] : new JsoncInstance(this.textDocument, this.root, undefined, JsonPointer.append(propertyName, this.pointer), this.annotations); } * entries() {