Skip to content

Setting a large tab_size value will cause the editor to open the file stuck. #228955

@ihavecoke

Description

@ihavecoke

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

  • VS Code Version: 1.93.1
  • OS Version: mac OS 15

Steps to Reproduce:

  1. command + , then change the tab size value to 99999999, and disable Detect Indentation

image

  1. Save user settings, open any file, and enter tab anywhere. At this time, there will be a period of software stuck, and the file content will become unreadable.
iShot_2024-09-18_12.52.43.mp4
  1. I think can refer to the jetbrains editor to limit the tab size to 16. If the value is too large, it is not convenient to read and format the document. If it is too large, it will also cause the file rendering to be stuck, resulting in poor input experience.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalityverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions