Skip to content

Plain Text KDL overrides that native theme when its main syntax is hidden #95

@eugenesvk

Description

@eugenesvk

This is the same as #56, but fails even after I've fixed the scoping mismatch in #94

Expected Behavior

Opening a .kdl file should select KDL as the syntax

Current Behavior

Opening a .kdl file selects Plain Text (KDL) as the syntax instead

Possible Solution

(potential root cause, not a solution)
The main syntax file in the KDL package is marked as hidden since it's only a stub to select either v1 or v2 and to reduce confusion in the manual syntax selection. So is AFileIcon's, and I think that since your package has a sneaky zzz A File Icon zzz name that is the last name alphabetically, it overrides the syntax from the main package

Does your package only consider non-hidden themes when creating empty dupes? Maybe then the fix could be to consider hidden ones as well?

Steps to Reproduce (for bugs)

  1. Install KDL package (v2) https://packagecontrol.io/packages/KDL
  2. Open any .kdl file
  3. Observe no syntax highlighting and the syntax set to Plain Text (KDL) instead of KDL

Context

Your Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions