Skip to content

Requesting new programmatic APIs of Local History in Timeline feature #155263

@magician-margatroid

Description

@magician-margatroid

Hi, I'm developing a form-based JSON Editor extension and want to utilize the builtin timeline feature of VSCode.

My initiative is to provide a custom view on it, not file-based but parsed-objects-based (In the JSONs, there're many domain-specific models). Since the local history of timeline by VSCode has already been excellent and I may not re-invent the wheels from scratch.

I did some searching and found the following Doc and APIs. But excuse me I wasn't able to find stable APIs to accomplish the following user story.

As a developer of JSON Editor extension, I'd like to:

  • Call an API to get the list of the local history in form of structured data for a specific TextDocument.
  • Call an API to make some queries on the local history, e.g., fetch last 10 items of them for a specific TextDocument.
  • Call an API to CRUD an entry with parameters supplied programmatically (In UI perspective, it's silent mode and non-interruptive).
  • Have the chance to subscribe to local history events of a specific TextDocument, e.g., new entries of it have been created.

Thanks for your ideas.
Best Regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions