Skip to content

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

Closed
@Arithmomaniac

Description

@Arithmomaniac

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

Metadata

Metadata

Assignees

Labels

featureNew feature or requestideIssues for VS, VSCode, Monaco, etc.triaged:core

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions