It doesn't work with partial text selection to format.
When using "Format Selection" and prettier-sql is your default formatter for sql I get the following warning/error:
"Visual Studio Code
Configure Default Formatter
Extension 'Prettier SQL VSCode' is configured as formatter but it cannot format 'SQL'-files
[Configure...] [Cancel]"
When using "Format Selection With..." The option to use "prettier-sql" don't show up in VSCode dialog to choose a formatter
To Reproduce
Steps to reproduce the behavior:
Set Prettier SQL as default formatter in VSCODE settings JSON:
"[sql]": {
"editor.defaultFormatter": "inferrinizzard.prettier-sql-vscode"
}
Open or create an SQL document
Select some text on the document
Click mouse right button for context menu
Select "Format Selection"
See Warning/error
Choose "Cancel"
Repeat step 3 and 4
Select "Format Selection With..."
check that "prettier-sql" don't show up in VSCODE dialog
Expected behavior
prettier-sql should be able to format selected text on the sql documet
Screenshots
N/A
Usage
What SQL language(s) does this apply to? any
What VSCode version are you using? 1.67.2
What are your currently configured VSCode settings for the prettier-sql extension, if relevant to the issue? Not relevant
Describe the bug
It doesn't work with partial text selection to format.
When using "Format Selection" and prettier-sql is your default formatter for sql I get the following warning/error: "Visual Studio Code Configure Default Formatter Extension 'Prettier SQL VSCode' is configured as formatter but it cannot format 'SQL'-files [Configure...] [Cancel]"
When using "Format Selection With..." The option to use "prettier-sql" don't show up in VSCode dialog to choose a formatter
To Reproduce Steps to reproduce the behavior:
Set Prettier SQL as default formatter in VSCODE settings JSON: "[sql]": { "editor.defaultFormatter": "inferrinizzard.prettier-sql-vscode" }
Open or create an SQL document
Select some text on the document
Click mouse right button for context menu
Select "Format Selection"
See Warning/error
Choose "Cancel"
Repeat step 3 and 4
Select "Format Selection With..."
check that "prettier-sql" don't show up in VSCODE dialog
Expected behavior prettier-sql should be able to format selected text on the sql documet
Screenshots N/A
Usage
prettier-sql
extension, if relevant to the issue? Not relevantAdditional context N/A