-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
Labels
Domain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsExperimentation NeededSomeone needs to try this out to see what happensSomeone needs to try this out to see what happensSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
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
Metadata
Metadata
Assignees
Labels
Domain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsExperimentation NeededSomeone needs to try this out to see what happensSomeone needs to try this out to see what happensSuggestionAn idea for TypeScriptAn idea for TypeScript