Skip to content

Intermittent small printWidth? #451

@wmertens

Description

@wmertens

I seem to have something similar to #300 but I don't use Eslint integration.

What happens is that sometimes, formatting results in breaking open all single-line objects, as if the printWidth is suddenly much lower.

It used to be that I could just undo the formatting, format a few different files until it stopped doing it, and then do the formatting correctly, but lately it seems that only reloading the window will get it out of this state.

This is my user config:

	"prettier.singleQuote": true,
	"prettier.trailingComma": "es5",
	"prettier.bracketSpacing": false,
	"prettier.printWidth": 80,
	"prettier.semi": false,
	"prettier.useTabs": true,

I have no idea why it does that, prettier never does it from the command line. It used to do it just after loading a window, but now it seems to be the reverse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lockedLocked due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions