microsoft / microsoft/node-jsonc-parser

Feature request: `modify` and `applyEdits` on parsed AST

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
759
Forks
66
Avg merge
5d 10h
Merged PRs (30d)
7

Description

I'm trying to keep a JSON datastructure in sync with its text representation for a custom VS Code editor.

I was thinking maybe it'd make sense to directly apply edit operations on the parsed tree rather than reparsing JSON every time?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by reviewing the parser's existing AST and edit-operation APIs, then define how parsed-tree changes should stay synchronized with the JSON text; done requires an agreed scope and tests for the proposed modify and applyEdits behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.