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

Add VS code setting for custom extension repository #180

Conversation

Mateusz-Grzelinski
Copy link
Collaborator

@Mateusz-Grzelinski Mateusz-Grzelinski commented Aug 4, 2024

In this PR: playing aroud with ideas from #176

  • Add setting to specify to which repository install addons from VS code
  • Implement sending settings from VS code to blender addon
    image

TODO:

  • pass data as env var to simplify communication via http server
  • update changelog, readme
  • ensure repo name is valid python module path

Implement sending settings from VS code to blender addon
@Mateusz-Grzelinski Mateusz-Grzelinski changed the title Add setting for custom extension repository Add VS code setting for custom extension repository Aug 4, 2024
@Griperis
Copy link
Collaborator

Griperis commented Aug 5, 2024

Idea to make this simpler: What if the extension setting sets an ENV VAR, that you can read in bpy afterwards, so you don't have to send the data between python and js?

@Mateusz-Grzelinski Mateusz-Grzelinski added this to the 0.0.22 milestone Aug 12, 2024
@Mateusz-Grzelinski Mateusz-Grzelinski marked this pull request as ready for review August 14, 2024 14:45
…-extension-repo-setting

# Conflicts:
#	CHANGELOG.md
#	README.md
#	pythonFiles/include/blender_vscode/communication.py
#	pythonFiles/include/blender_vscode/load_addons.py
#	pythonFiles/include/blender_vscode/operators/addon_update.py
@Mateusz-Grzelinski
Copy link
Collaborator Author

works quite well, tested on windows, blender 2.8, 4.2.
If user changes name of repo it also works fine, but missing addons might be reported. Thanks to proper implementation of #172 we do not have duplicate links.
Also works fine when running multiple blender and the repo name was changed in a meantime.
If no feedback i will merge on the weekend

@Mateusz-Grzelinski Mateusz-Grzelinski merged commit ecaa827 into JacquesLucke:master Aug 24, 2024
@Mateusz-Grzelinski Mateusz-Grzelinski deleted the separate-extension-repo-setting branch August 24, 2024 10:46
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