Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing language ID via javascript #40337

Closed
AmitJoki opened this issue Dec 16, 2017 · 1 comment
Closed

Changing language ID via javascript #40337

AmitJoki opened this issue Dec 16, 2017 · 1 comment
Assignees
Labels

Comments

@AmitJoki
Copy link

I am trying to develop an extension which requires me to change the language id in javascript. I did:

doc = vscode.window.activeTextEditor.document
doc.languageId = "html"

But seems like the doc.languageId remains unchanged. I tried searching the documentation but couldn't find a way to change the language id of the file.

How would I go about this?

@jrieken
Copy link
Member

jrieken commented Jan 3, 2018

dupe of #1800

@jrieken jrieken closed this as completed Jan 3, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants