Skip to content

Commit

Permalink
Fix bug in step function
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesrosiers committed Mar 29, 2024
1 parent 943d3f5 commit 10a53fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language-server/src/jsonc-instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 10a53fb

Please sign in to comment.