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

[Bug]: "convert to an object value" code fix is not recursive #4613

Open
4 tasks done
Arithmomaniac opened this issue Oct 6, 2024 · 1 comment
Open
4 tasks done
Labels
feature New feature or request ide Issues for VS, VSCode, Monaco, etc. triaged:core

Comments

@Arithmomaniac
Copy link

Describe the bug

When using the "convert to an object value" code fix on a nested object, the fix should be recursive.

Reproduction

[Playground]

@example({Bar : {Baz : "Hello"}})
model Foo { Bar : Bar; }
model Bar { Baz : string }

Using the code fix in VSCode results in the following, requiring the code fix to be applied again to the inner object:

@example(#{Bar : {Baz : "Hello"}})

Checklist

@Arithmomaniac Arithmomaniac added the bug Something isn't working label Oct 6, 2024
@markcowl markcowl added the ide Issues for VS, VSCode, Monaco, etc. label Oct 14, 2024
@markcowl markcowl added feature New feature or request needs-area and removed bug Something isn't working labels Oct 14, 2024
@markcowl markcowl added this to the Backlog milestone Oct 14, 2024
@markcowl
Copy link
Contributor

est: 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request ide Issues for VS, VSCode, Monaco, etc. triaged:core
Projects
None yet
Development

No branches or pull requests

2 participants