Skip to content

More specific DocumentSelector/LanguageSelector should have higher precedence #143262

@ris58h

Description

@ris58h

For now LanguageSelector.score method gives the same score for both { language: 'xml' } and { language: 'xml', pattern: '**/pom.xml' }, but it feels like the second selector should have higher precedence because it's more specific. Even @alexdima assumed the same #129962 (comment)

I'm currently working on an extension for Maven (pom.xml files) and there is a collision with another XML extension because of the issue.

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Codelanguages-basicBasic language support issuesunder-discussionIssue is under discussion for relevance, priority, approach

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions