mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Fixes #182526 The chat panel changes the language of a document. This revealed a bug in JS/TS about language changes. Normally changing a language should close and reopen a text document. However we added an optimization to not do this full flow if the open then close happens quickly However this causes issues if the file changes languages as TS gets into a state where its doc language id does not match VS Code's language id. To fix this, I've limited the optimization to only apply when the expected script kinds match
Language Features for TypeScript and JavaScript files
Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
Features
See TypeScript in Visual Studio Code and JavaScript in Visual Studio Code to learn about the features of this extension.