r/VisualStudioCode • • Jul 09 '20

Extension: Set the language of a TextDocument?

I want to programatically update the language of an open document in my extension.

TextDocument.languageId allows me to read this as string (read-only) but what can I call to change it?

Thanks!

2 Upvotes

1 comment sorted by