vscode: vscode.languages.setTextDocumentLanguage does not work on notebook cells
- VS Code Version: 1.54.0-insider
- OS Version: Win10
When coediting, the command vscode.languages.setTextDocumentLanguage
does not work on notebook cells. It successfully updates the language services for the cell but does not change the label indicating the new language.
cc @rebornix
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (17 by maintainers)
Commits related to this issue
- Listen to language change on TextModel Fix #117936 — committed to microsoft/vscode by roblourens 3 years ago
- Listen to language change on TextModel Fix #117936 — committed to microsoft/vscode by roblourens 3 years ago
- Listen to language change on TextModel Fix #117936 — committed to microsoft/vscode by roblourens 3 years ago
- Listen to language change on TextModel Fix #117936 — committed to microsoft/vscode by roblourens 3 years ago
- Enable setTextDocumentLanguage (#119429) Change cell TextModel handling, fix #117936 — committed to microsoft/vscode by roblourens 3 years ago
- Don't remove the textmodel when closing the notebook editor, and cleanup how the textmodel ref is created Fix #117936 more — committed to microsoft/vscode by roblourens 3 years ago
@alyssajotice can you verify that this is fixed for you when you get a chance? 🙂
Hey @connor4312, Live Share support for notebooks is currently not working because it’s not caught up to the new VS Code APIs. I’m working on a fix and it should be done soon.