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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert missing comma or colon before completion #185

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zardoy
Copy link
Contributor

@zardoy zardoy commented Mar 24, 2023

Inspired by microsoft/TypeScript#52899
Fixes microsoft/vscode#69545 (but I don't know what to do with *when " is typed)

Though when I just implemented it, I was thinking of why do we need "insert missing colon" behavior: if property has suggestions : will be added as insert text anyway (but not always e.g. doesn't work with oneOf). But if property doesn't have suggestions, there is no way to trigger such behavior. So I think we should make property completions to always include : as insert case (there are no shorthands in JSON 馃槂)

@zardoy
Copy link
Contributor Author

zardoy commented Aug 5, 2023

@aeschli I've removed colon insertion, so I do hope the pr will be easier to review :)

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.

[json] add commas automatically
1 participant