Skip to content

fix: node.js auto-configuration not supporting multiple projects #431

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AkibaAT
Copy link
Collaborator

@AkibaAT AkibaAT commented Apr 30, 2025

The Problem/Issue/Bug:

Currently, the Node.js auto-configuration does nothing if it finds at least one configured interpreter. Additionally, it doesn't ensure that the available interpreters include one for the current DDEV project.

How this PR Solves the Problem:

Update the check to iterate over the available configurations, and verify that they include the expected docker-compose config for the current project.

Manual Testing Instructions:

  • Make sure that no docker-compose remote interpreter is currently configured for node.js
  • Open a DDEV project
  • Verify that the config got added
  • Open a second DDEV project
  • Verify that an additional configuration got added

Related Issue Link(s):

@AkibaAT AkibaAT requested a review from wazum April 30, 2025 23:18
@AkibaAT AkibaAT added bug Something isn't working confirmed The issue is confirmed to be caused by the plugin labels Apr 30, 2025
@AkibaAT AkibaAT self-assigned this Apr 30, 2025
@AkibaAT AkibaAT force-pushed the bug/nodejs-autoconfigure branch from 13d102a to 27b2017 Compare April 30, 2025 23:30
@rfay
Copy link
Member

rfay commented May 1, 2025

Thanks for working on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed The issue is confirmed to be caused by the plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants