typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Format options + fourslash testing + fix formatting bugs

Open iisaduan opened this issue 2 weeks ago • 0 comments

Adds formatting options and links up the server's FormatCodeOptions with the formatting functions. Also adds in basic structure for js, javascript, ts, and typescript scoped settings.

Moves formatCodeSettings to lsutil

Formatting is now being tested in fourslash, although not all the commands are implemented due to non-formatting tests crashing on insertion. I've added a fourslashTest property to skip the check for those specific crashes, so that the rest of the test can proceed as normal. The flag(s) can easily be commented out if investigating these crashes.

Also fixes a formatting bug that was adding extra spaces after newlines.

iisaduan avatar Dec 12 '25 22:12 iisaduan