-
-
Notifications
You must be signed in to change notification settings - Fork 527
Labels
good reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstThis issue provides a good reproduction, we will be able to investigate it first🍰 p2-nice-to-have
Description
Vue - Official extension or vue-tsc version
3.2.5
VSCode version
1.109.5
Vue version
3.5.27
TypeScript version
5.9.3
System Info
package.json dependencies
Steps to reproduce
Suppose the following SFC's setup (simplified):
const { disabled } = defineProps<{ disabled: boolean }>()
// provideFormState() is a composable which returns an object with a { disabled } property
const { disabled: disabledInForm } = provideFormState({
disabled: computed(() => props.disabled ?? false),
});What is expected?
The second mention to disabled is a mention to the property as returned by provideFormState and, therefore, has no relation to props, so no inlay hint should be shown there.
What is actually happening?
The disabled property before the rename is being shown as being props.disabled with the inlay hint, which is wrong.
Link to minimal reproduction
No response
Any additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstThis issue provides a good reproduction, we will be able to investigate it first🍰 p2-nice-to-have