Skip to content

Language mode not persisted correctly #130436

@xisui-MSFT

Description

@xisui-MSFT

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.59.0
  • OS Version: Windows 10, 19043.1110

Steps to Reproduce:

  1. Open a folder, and then open a file in it with identifiable language mode, such as json.
  2. Set language mode in the status bar, or by vscode.languages.setTextDocumentLanguage to some other language mode.
  3. Either close this document or switch to another document.
  4. Reopen this document or switch back to it.
  5. Notice that the language mode is not persisted.

However, in step (3), if we close the vs code window instead of the file, the language mode will be persisted when reopening vscode.

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions