-
Notifications
You must be signed in to change notification settings - Fork 230
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
[Not Ready] [typespec-vscode] Add autocomplete of model properties for union type #5483
base: main
Are you sure you want to change the base?
[Not Ready] [typespec-vscode] Add autocomplete of model properties for union type #5483
Conversation
❌ There is undocummented changes. Run The following packages have changes but are not documented.
Show changes |
You can try these changes here
|
@@ -2617,7 +2617,7 @@ export function createChecker(program: Program, resolver: NameResolver): Checker | |||
|
|||
function getReferencedModel( | |||
propertyNode: ObjectLiteralPropertyNode | ModelPropertyNode, | |||
): Model | undefined { | |||
): Model | Model[] | undefined { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if it's a model union with other type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More discussion is needed
Fix : #4024
add code and tests