-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Help WantedYou can do thisYou can do this
Milestone
Description
Bug Report
π Search Terms
autocomplete typedef
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about
autocomplete
β― Playground Link
Playground link with relevant code
π» Code
/**
* @typedef {Object} MyObject
* @property {} <-- place your cursor in between the brackets and press ctrl + space, it doesn't work
*/
/** @type {} */ // <-- it works fine here
const x = null;
π Actual behavior
Autocomplete only list words from the file, no types.
This is also doesn't work when importing something, i.e.:
/**
* @typedef {Object} MyObject
* @property {import("./someFile.js"). <-- no autocomplete
*/
π Expected behavior
Autocomplete shows a list of useful types just like what happens for @type
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Help WantedYou can do thisYou can do this