Skip to content

Expose 'change language' as command #1800

Closed
@ctlajoie

Description

I have a modelines plugin but it currently lacks the ability to set the language of the file. In order to implement this I would need an API to allow it to be set.

As an example, a Vagrantfile is a ruby script, but Code opens it as plain text. The API should allow plugins to determine the type of file by arbitrary means and set the language appropriately.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions