Skip to content

Suggestion: Include alias in the "Quick Fix->Insert Import" #2011

@wyfok

Description

@wyfok

Describe the Bug

With the extension on VScode, when there is no proper import for an alias (e.g. pd for pandas) , the "Quick Fix -> Insert Import" will list out all possible imports. However, after selecting an import, the alias is not included at the end of the output. To properly fix the issue, user needs to go back to the top of the file and add the alias to the import. This somehow contradicts the benefit of "Inserting Import", at the very least the "Insert Import" cannot directly solve the missing import issue.

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

Version: 0.46.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedLarger than "good first issue", but still well-defined and ready for someone to pick uplanguage-serverIssues specific to our IDE integration rather than type checking

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions