The same goes for nullish assignments `??=`.
I'd flag this as more than minor because it messes with the Format Code functionality, making everything align oddly and sometimes locking up the CPUs in a lengthy formatting process. It just crashed now, and I lost quite a bit of code. Stupid of me not to save before trying to format when I know this is broken...
My current workaround is to include blank comments above the first line with a nullish assignment in each code block. For example:
{
let x = x || 'this is ok';
let y ??= 'please fix this',
z ??= 'so formatting can work again';
}
The same goes for nullish assignments `??=`.
I'd flag this as more than minor because it messes with the Format Code functionality, making everything align oddly and sometimes locking up the CPUs in a lengthy formatting process. It just crashed now, and I lost quite a bit of code. Stupid of me not to save before trying to format when I know this is broken...
My current workaround is to include blank comments above the first line with a nullish assignment in each code block. For example: