Skip to content

fix(language-server): previewFeatures = "" suggestion results in "[]" value.#1924

Merged
igalklebanov merged 1 commit intomainfrom
fix-preview-features-empty-string-suggestions
Nov 4, 2025
Merged

fix(language-server): previewFeatures = "" suggestion results in "[]" value.#1924
igalklebanov merged 1 commit intomainfrom
fix-preview-features-empty-string-suggestions

Conversation

@igalklebanov
Copy link
Copy Markdown
Contributor

@igalklebanov igalklebanov commented Nov 4, 2025

Hey 👋

closes #757.

The [] suggestion for previewFeatures = "" results in previewFeatures = "[]" which is invalid and makes life worse.

The fix is to wrap "" like [""] and make another suggestion for the string inside. This PR achieves that.

https://www.loom.com/share/35c12658cca8433cb331c8de9b5be4d9

@igalklebanov igalklebanov added the bug/2-confirmed Bug has been reproduced and confirmed. label Nov 4, 2025
@igalklebanov igalklebanov modified the milestones: 7.0.0, 6.19.0 Nov 4, 2025
Copy link
Copy Markdown
Member

@aqrln aqrln left a comment

Choose a reason for hiding this comment

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

💯

@igalklebanov igalklebanov merged commit 91a4f60 into main Nov 4, 2025
6 checks passed
@igalklebanov igalklebanov deleted the fix-preview-features-empty-string-suggestions branch November 4, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug/2-confirmed Bug has been reproduced and confirmed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong autocompletion [] for previewFeatures = "" inside quotes

2 participants