Skip to content

Clash between two extensions using same language alias #2862

@gjsjohnmurray

Description

@gjsjohnmurray

Version: 1.30.2 (user setup)
OS: Windows_NT x64 10.0.16299

(also present in 1.31.0-insider)

I am developing a language extension (not yet published in Marketplace). It contributes three language IDs:
image

I have also installed a Marketplace extension intended for the same language, which contributes three different language IDs but assigns one of them the same name (ObjectScript) as one of mine:
image

When both extensions are enabled and I open the 'Select Language Mode' picker there is only one 'ObjectScript' entry despite every list entry also displaying the language ID in parentheses as a suffix, i.e.
image

Combined, the two extensions offer only five choices rather than six.

The documentation at https://code.visualstudio.com/docs/languages/identifiers didn't help me understand whether what I'm seeing is intentional. Nor does it say how the aliases array is supposed to function.

Metadata

Metadata

Assignees

Labels

extensibilityextension author content under /api

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions