-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterHelp WantedYou can do thisYou can do this
Milestone
Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version:
1.86.0 - OS Version:
Linux Tastral 6.5.0-10022-tuxedo microsoft/vscode#26 SMP PREEMPT_DYNAMIC Thu Jan 18 02:29:42 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux(ubuntu-based - TuxedoOS 2)
Steps to Reproduce:
- Add an
importline - Break
importline into 2 lines from the inside of bracket - Format for first time, you'll see all brackets got new line and indented

- Format for second time, you'll see all brackets lose its indentation

I see 2 problems in here:
- Format 2 times with 2 different results is no good
- If the
fromkeyword got new line, it always get intended. I don't think it make sense. Can we just have like this:
import
{
ChallengeTier,
ChallengeLevel, ChallengeData
}
from './challenge.ts'This happens when I use TypeScript. I haven't tested it on JavaScript.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterHelp WantedYou can do thisYou can do this