Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Incorrect deprecate warning when MarkerLayer::markRange passed persistent options #154

@t9md

Description

@t9md

I'm working on Atom master branch to catch-up display-layer.
cc @as-cii

Then I noticed this warning.

  Assigning custom properties to a marker when creating/copying it is
  deprecated. Please, consider storing the custom properties you need in
  some other object in your package, keyed by the marker's id property.

Only following code shows warning.

  editor.markBufferRange editor.getSelectedBufferRange(),
    invalidate: 'never'
    persistent: false

As far as I check, persistent option is for MarkerLayer but this options is validated by Marker's Marker.extractParams(options).
Should delete options.persitent before passing Marker.extractParams()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions