How to set the root directory for Visual Studio Code Python Extension? : <p>I have no trouble running and debugging my project with VSCode Python Extension (<code>ms-python.python</code>), but since python sub-project root directory is not the whole project directory, all imports from my sources are underlined with red color and are listed in the <code>problems</code> and so <code>Go to definition</code> and some similar features don't work properly.
How can I tell the IDE where's the start point of my project:</p>

<pre><code>Whole Project path:
  docs
  server
    entities
      user.py
      customer.py
  env
  viewer
  db
</code></pre>

<p>The <code>server</code> directory is where the imports path are started from:</p>

<pre><code>from entities.user import User
</code></pre>
