Closed ktfleming closed 3 years ago
Hello, thanks for the remark! I am aware of this problem, now it is happening because there are various complex cases of carriage position, like this (when your try to select name for example)
function testFuncWithBigSignature(
name: string,
age: number,
patronymic?: string,
): string {
return `${name} is ${age} years old.`
}
But now I will use a stack to count the pairwise brackets to better determine the insertion position, and I hope it will help solve this and similar problems.
It should be better now. Also I added support for disabling semicolon for console log, your can configure it with
(plist-put turbo-log--ecmascript-configs :include-semicolon nil)
😊
Looks like it's working fine, thanks for the quick improvement!
Cool package! Do you think it's possible to support the semicolon-less style, as found in Standard, for example? Currently if I have
and I select the
const foo = 1
line and runM-x turbo-log-print
, I get