Skip to content

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

Open

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions