Set (and change) the language that is associated with the given document.
Note that calling this function will trigger the onDidCloseTextDocument event followed by the onDidOpenTextDocument event.
onDidCloseTextDocument
onDidOpenTextDocument
The document which language is to be changed
The new language identifier.
A thenable that resolves with the updated document.
Set (and change) the language that is associated with the given document.
Note that calling this function will trigger the
onDidCloseTextDocument
event followed by theonDidOpenTextDocument
event.