Skip to content

Switch doc cursor to more generic mark #18199

@fisker

Description

@fisker

It can be useful to trace more positions, maybe rangeStart, rangeEnd can be useful, if we do #16292

  1. Add a new doc (description: string) => {type: 'mark', description: string}
  2. Make cursor alias of {type: 'mark', description: 'cursor'}
  3. Deprecate cursor in v4
  4. Remove cursor in v5

Alternatively, we can consider reuse label or use Symbol.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs discussionIssues needing discussion and a decision to be made before action can be takentype:refactorIssues about tackling technical debt

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions