Add subdirectory names to debug script configurations in monorepos#2242
Merged
connor4312 merged 4 commits intomainfrom Jul 1, 2025
Merged
Add subdirectory names to debug script configurations in monorepos#2242connor4312 merged 4 commits intomainfrom
connor4312 merged 4 commits intomainfrom
Conversation
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Node.js monorepo - can the debug setup have the subdir name instead of just the same list?
Add subdirectory names to debug script configurations in monorepos
Jun 30, 2025
connor4312
approved these changes
Jun 30, 2025
Member
|
Run |
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
Contributor
Author
I attempted to run Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
connor4312
approved these changes
Jun 30, 2025
Tyriar
approved these changes
Jun 30, 2025
bpasero
approved these changes
Jul 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In monorepo setups with multiple packages containing npm scripts, the debug configuration dropdown shows identical entries like "Run Script: start" for each package, making it impossible to distinguish which script belongs to which subdirectory.
This change detects when npm scripts come from multiple directories and includes the directory basename in the configuration name to help users distinguish between them.
Changes:
getFromNpmScriptsinnodeDebugConfigurationProvider.tsto detect multi-directory scenariosBefore:
After (monorepo):
After (single directory - unchanged):
The implementation follows the same pattern used in
debugNpmScript.tsfor multi-directory detection and usespath.basename()to show clean directory names.Fixes #2241.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
plugins.dprint.dev/home/REDACTED/work/vscode-js-debug/vscode-js-debug/node_modules/dprint/dprint fmt OPTIONS.md(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.