microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.69k stars 767 forks source link

when config file is added, pylance doesn't detect it automatically #6078

Open heejaechang opened 1 month ago

heejaechang commented 1 month ago

Environment data

Repro Steps

open a folder in pylance.

create either pyrightconfig.json or pyproject.toml with somethings such as https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-config-file

see whether the setting is automatically detected and applied.

Expected behavior

settings such as include is automatically detected and applied.

Actual behavior

it is not detected.

...

it looks like if config file exists when the folder is opened, any change on it is automatically detected and applied, but if a folder is opened without it, and added later, it looks like pylance doesn't know the config file is added.

heejaechang commented 1 month ago

looks like our file watcher doesn't consider this case.