Skip to content

The green wavy line exists after importing new item. #8609

Description

@linette-zyy

Environment
Build of Visual Studio: 18.11.0 Canary [12110.251.main]
Build of Python Package: 18.0.26223.1
Version of Pylance: 2026.2.109
OS version: Windows 11 Enterprise, version 25H2

Steps to Reproduce

  1. Create a new python application
  2. Right click in SE, Add new item, Python module, module1.py
  3. Enter some code in the new file:
    MSG = 'hello'
  4. In PythonApplication.py:
    import module1
  5. Check for completions:
    module1.MSG
  6. Observes

Expected behavior
It should import successfully without any error.

Additional context and screenshots
The green wavy line exists after importing new item.
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions