odoo-ide / vscode-odoo

Visual Studio Code extension for Odoo
https://marketplace.visualstudio.com/items?itemName=trinhanhngoc.vscode-odoo
46 stars 3 forks source link

I use Pyright for other projects—do I have to enable and disable it every time? #29

Closed AaronBeaudoin closed 1 year ago

AaronBeaudoin commented 1 year ago

You suggest in the README to disable the regular Pyright extension when working with Odoo projects. However, sometimes I work with other Python projects that do not involve Odoo, so I need Pyright for those projects. Is there a way for me to avoid having to enable and disable the Pyright extension each time when switching between projects?

EDIT: I don't typically use a workspace—I just open my project directory in a new window in VS Code and rely on whatever is in the .vscode/ directory.

trinhanhngoc commented 1 year ago

Currently, VSCode doesn't provide any methods to programmatically enable or disable an extension. So I cannot make any improvements here.