Skip to content

Add support for new formatting options#105

Merged
mattwar merged 2 commits into
mainfrom
user/mattwar/NewFormattingOptions
May 6, 2026
Merged

Add support for new formatting options#105
mattwar merged 2 commits into
mainfrom
user/mattwar/NewFormattingOptions

Conversation

@mattwar

@mattwar mattwar commented May 6, 2026

Copy link
Copy Markdown
Contributor

Add support for new formatting options in kusto language library 12.4.0

Copilot AI review requested due to automatic review settings May 6, 2026 20:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the formatting configuration surface area for the Kusto VS Code extension by introducing new spacing-related formatter settings, adding a legacy placement-style alias, and wiring these settings through the server options pipeline.

Changes:

  • Added many new formatting spacing settings (single and dual-sided spacing) to both client configuration schema and server settings plumbing.
  • Added support for legacy placement-style value "none" as an alias (alongside "asIs").
  • Updated StringMappedSetting reverse-mapping behavior to allow multiple keys (aliases) to map to the same value, and added server-side tests for the new behaviors.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/ServerTests/Features/OptionsManagerTests.cs Adds tests for legacy placement aliases and new spacing settings propagation through OptionsManager.
src/Server/Settings/Setting.cs Updates StringMappedSetting reverse map building to tolerate alias keys mapping to the same value.
src/Server/Settings/OptionsManager.cs Wires new spacing-related settings into Kusto.Language.Editor.FormattingOptions construction.
src/Server/Settings/FormatSettings.cs Defines new spacing settings (and their string mappings) and includes them in the server’s settings retrieval list.
src/Server/Server.csproj Changes Kusto package references to floating versions (14.*, 12.*).
src/Client/package.json Adds new configuration schema entries for formatting spacing options and updates placement-style enums/descriptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Server/Settings/Setting.cs
Comment thread src/Server/Server.csproj Outdated
@mattwar mattwar merged commit 21d2536 into main May 6, 2026
5 checks passed
@mattwar mattwar deleted the user/mattwar/NewFormattingOptions branch May 6, 2026 21:44
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

Successfully merging this pull request may close these issues.

2 participants