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

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

Nobody has claimed this yet.

Assessment

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

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.

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?

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

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.

More from microsoft/node-jsonc-parser

All issues in microsoft/node-jsonc-parser

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.