Skip to content

[1.2.1][FIX] vscode: improve launch/tasks configuration generation#5

Merged
sea-odoo merged 1 commit intobetafrom
fix-vscode-config-beta
Mar 31, 2026
Merged

[1.2.1][FIX] vscode: improve launch/tasks configuration generation#5
sea-odoo merged 1 commit intobetafrom
fix-vscode-config-beta

Conversation

@sea-odoo
Copy link
Copy Markdown

Summary

This Pull Request fixes several issues in the VSCode configuration generation (odev code command):

  • Corrected Template Path: Fixed the lookup of the .vscode templates directory.
  • Accurate Python Interpreter: Now correctly uses the virtualenv associated with the Odoo database instead of a generic fallback.
  • Clean JSON Output: Switched to write_text for writing JSON files, avoiding potential formatting or rich-character issues.
  • Overwrite Support: Removed the early-exit checks for existing files, allowing the configuration to be regenerated and kept in sync with the current database settings.

Targeted at the beta branch.

This commit fixes several issues in the VSCode configuration generation:
- Corrected the template directory lookup path.
- Updated the Python interpreter path to use the actual virtualenv of the Odoo database instead of a generic fallback.
- Switched to Path.write_text for writing JSON configuration files to avoid formatting issues.
- Enabled overwriting of existing .vscode configurations to ensure they stay in sync with database settings.
@sea-odoo sea-odoo requested a review from brinkflew March 27, 2026 20:15
@sea-odoo sea-odoo merged commit 91a7a3f into beta Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants