Closed CHRIBUR0309 closed 6 months ago
There are multiple problems here...
"sql"
dialectThis is generally not recommended. I don't know which actual SQL dialect your code is written in, but the default dialect has a very limited number of keywords and data type names (e.g. text
happens to not be among them and so is not upper-cased). Pick a more specific dialect if possible.
keywordCase
option.The default is preserve
. Therefore no keywords have been converted to uppercase.
expressionWidth
optionI now notice that the description of it in VSCode settings is misleading:
Number of characters allowed in each line before breaking
Actually that's not the case. What it really controls is the maximum number of characters between a pair of parenthesis before they get broken to multiple lines.
Although in this specific case, even the default value 50
will still keep the parenthesis on a single line.
I admit that this is a crappy and unintuitive behavior. Something I've been planning to fix for ages...
Not much to fix here. Closing.
Input data
Which SQL and options did you provide as input?
Expected Output
Actual Output
Usage
settings.json of VS Code:
sql
4.0.2