IntelliSense for Search Paths doesn't work when import folder outside the workspace.
Open
@AdamYoblick is already working on this.
Since Feb 17, 2024.
bug
- Dominant language
- C#
- Stars
- 2.6k
- Forks
- 680
- Avg merge
- 39m
- Merged PRs (30d)
- 1
Description
Environment
Steps to Reproduce
- Open a folder as workspace in SE.
- Add new python file in SE named WholsRunningMe.py.
- Select a python environment from the python toolbar to open PythonSettings.json and you can check “Show All Files” on the toolbar to reveal local settings.
- Create a folder named folder1 in your local, such like : C:\Users\vyizh12\source\repos\python-azure-web-app-cookiecutter\folder1
- Add init.py in folder1 and type some code in
__init__.py
def FOLDER1_MSG(): print("hello world!") - Add searchpaths in PythonSettings.json.
- Type code below in WholsRunningMe.py
import folder1
folder1.FOLDER1_MSG()
- Make sure IntelliSense should show squiggles on the import statement
Expected behavior
Make sure IntelliSense should show when import statement
Additional context and screenshots
No IntelliSense when import folder1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.