Files
vscode/extensions/typescript-language-features
Matt Bierner 1569f9d9d7 Don't cancel file reopen if language has changed (#182657)
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
2023-05-16 12:28:14 -07:00
..
2023-02-06 12:29:36 -08:00

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.