-
Notifications
You must be signed in to change notification settings - Fork 331
Add subdirectory names to debug script configurations in monorepos #2242
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
Conversation
Co-authored-by: connor4312 <[email protected]>
Co-authored-by: connor4312 <[email protected]>
Run |
Co-authored-by: connor4312 <[email protected]>
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:
|
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:
getFromNpmScripts
innodeDebugConfigurationProvider.ts
to detect multi-directory scenariosBefore:
After (monorepo):
After (single directory - unchanged):
The implementation follows the same pattern used in
debugNpmScript.ts
for 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.