Skip to content

import Suggestions don't work if typed before the interface declaration Typescript #48904

@tombohub

Description

@tombohub

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.66.2
  • OS Version: Windows 10

Steps to Reproduce:

  1. Create typescript file with minimal code and one import:
import { Accordion } from "@mui/material";


interface Props {
    opened: boolean;
    onClose: (ko: string) => void;
}


export { }
  1. start typing import something before the interface declaration and try auto complete. Says 'no suggestions':
    image

  2. try the same, but this time before the first import line you already have. Import is suggesting:
    image

  3. Try the same after the interface declaration. Also working:
    image

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: LS: Auto-importEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueHelp WantedYou can do thisRescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions