Skip to content

Allow Extensions To Contribute Language Specific Settings #26707

Closed
@mjbvz

Description

@mjbvz

Problem
To my knowledge, there is no well supported way for an extension to contribute language specific settings, like so:

    "[markdown]": {
           "amazingExtension.enableUnicornMode": false
     }

This actually works, but has some major issues:

  • There is no way to specify a language specific setting in the contributes section's schema
  • Entering the above configuration produces a warning for users
  • To retrieve the setting, you have to write:
workspace.getConfiguration().get('[markdown]')['amazingExtension.enableUnicornMode']

Proposals

  • Allow extensions to mark settings as being valid language specific settings.
  • Add apis for better working with language specific settings

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions