Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] add ${VAR} variables in paths #112

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Louciole
Copy link
Member

@Louciole Louciole commented Jan 25, 2024

This PR is intended to be merged AFTER the migration to python Extension (#85)
It adds :

  • ${workspaceFolder}
  • ${userHome}
    the user can put two variables in their odoo path to make their configuration simpler and dynamic.
    This also implements a helper to inform the user of this feature.

Changes:
- Remove pythonPath field from Config view
- Integrate Python extension
- Properly use async/await in the code.
- Use of global.d.ts for Global variables.
- Wait for LanguageClient to stop before starting it again
- Queue Configuration change when LanguageClient is still stopping
- Properly hide Crash notification test command in Production
- outputChannel is now stored globally instead of being passed to all
functions
- Logging is now done through LanguageClient
- Add a Bash shebang to build_package.sh

Co-authored by Solan (sode)
… python extension

Changes:
- check if python extension is ready and save it in global
- display python path in config when relevant
- check and prepare the environment without python extension
The main goal of this commit is to be able not to set pythonPath when the extension is disabled
/!\ there's probably still a bug on windows
@Louciole Louciole added the enhancement New feature or request label Jan 25, 2024
@Louciole Louciole added this to the 0.2.5 milestone Jan 25, 2024
@Louciole Louciole changed the title Master py ext add dynamic config loha [IMP] add ${VAR} variables in paths Jan 25, 2024
@Louciole Louciole self-assigned this Jan 25, 2024
goal :
odooPath processing must be accessible in utils,
It must be generic
/!\ changing structure of configuration from :
- odooPath
to
- rawOdooPath - path saved in the configuration
- odooPath - path evaluated (default to path saved in configuration to preserve back compatibility)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant