Feature Request: Add snowflake-sql language ID support for VS Code formatter

3 Posts
2 Users
0 Reactions
20 Views
Posts: 1
Topic starter
(@thorsten)
Member
Joined: 3 days ago
[#159]

Hey,

Long-time Pro license user here. Wanted to raise a feature request for the VS Code extension.

The Problem

When the official Snowflake VS Code extension (Snowflake.snowflake-vsc) is installed alongside SQLinForm, it registers .sql files under the language ID snowflake-sql instead of the standard sql.

This means SQLinForm is never offered as a formatter and VS Code shows:

"There is no formatter for 'snowflake-sql' files installed."

Setting the default formatter explicitly in settings.json does not help either — the setting is simply ignored because SQLinForm never registered support for the snowflake-sql language ID.

The Fix

SQLinForm's package.json currently only declares sql as a supported language ID in activationEvents and documentFormattingProvider. Adding snowflake-sql alongside sql would resolve this completely.

My Setup

  • VS Code: 1.134.0 (x64)
  • OS: Windows 11
  • Conflicting extension: Snowflake.snowflake-vsc

Given how widely adopted the Snowflake VS Code extension is, I imagine other users are hitting the same wall. Would love to see this in a future release!

Thanks for the great formater.

— Thorsten


2 Replies
Posts: 16
(@guidomarcel)
Member
Joined: 5 years ago

Hi Thorsten,

Thanks for the detailed report — you pinpointed it exactly.

The next SQLinForm release will register snowflake-sql as a supported language ID alongside sql, so the formatter is offered normally when the Snowflake extension owns your .sql files.

This covers the full integration, not just Format Document: the editor context menu, the Quick Fix action, and the profile indicator in the status bar all recognise Snowflake SQL files as well.

One note for afterwards: the SQL dialect still comes from your active SQLinForm profile rather than the language ID, so make sure the profile's Database is set to Snowflake.

Regards

Guido


Reply
Posts: 16
(@guidomarcel)
Member
Joined: 5 years ago

Hi Thorsten, please give the new Release 26.08.33 a try

Regards

Guido


Reply
Share: