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

Code fix to extract an in-line type to a type declaration #14767

Open
Tracked by #14766
anthony-c-martin opened this issue Aug 7, 2024 · 0 comments
Open
Tracked by #14766

Code fix to extract an in-line type to a type declaration #14767

anthony-c-martin opened this issue Aug 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@anthony-c-martin
Copy link
Member

If the user writes:

param image {
  registry: string
  name: string
  tag: string
}

It would be nice to offer a code fix such as the following, where the cursor is on |, and typing changes both usages of |

type | {
  registry: string
  name: string
  tag: string
}

param image |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants