Skip to content

[Bug] Autocomplete scans files that are not imported #757

@laurensvalk

Description

@laurensvalk

Describe the bug

Everything from all files appears to be scanned, and they are all suggested for autocomplete.

To reproduce

For example, if you define:

def my_useful_function(x, y):
    return x + y

in one file, it is suggested everywhere even if that module is not imported:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    software: pybricks-codeIssues with https://code.pybricks.com application

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions