Open
Description
Bug Report
π Search Terms
completions return 'object literal shorthands'
π Version & Regression Information
- This changed between versions 4.2.0 and 4.2.3
β― Playground Link
Playground link with relevant code
π» Code
import { defineComponent } from '@vue/runtime-core'
export default defineComponent({
name: 'App',
setup () {
const waitingForAutocomplete = true;
const a = {
wait // get `waitingForAutocomplete`
}
return {
wait // don't get any completion
}
}
})
π Actual behavior
We can't get any completion for object literal shorthand in setup return.
π Expected behavior
Like common object literal shorthand.
Ref: #41259 #41539
From: vuejs/vetur#2544