Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use the extension with PL/SQL files #35

Open
jmevel opened this issue Jun 29, 2021 · 0 comments
Open

Unable to use the extension with PL/SQL files #35

jmevel opened this issue Jun 29, 2021 · 0 comments

Comments

@jmevel
Copy link

jmevel commented Jun 29, 2021

Because the activation event of the extension is set to onLanguage:sql we can't simply use this extension with other SQL languages (like PL/SQL). With a file that is using the PLSQL language mode when we execute the Format Document command it says that no formatter supporting this language is installed.

As a workaround we have to change the language of the file to SQL then format the document and finally set the document's language back to PLSQL.

That would be better to add multiple values to the onLanguage activation event so VS Code can recognize this extension as a valid formatter for other SQL flavors.

Note: it doesn't change anything that we set "sql-formatter.dialect":"pl/sql" in the settings or even "[plsql]":"editor.defaultFormatter": "adpyke.vscode-sql-formatter" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant