Skip to content

Speed up debug attach by setting outFiles#52584

Merged
jakebailey merged 3 commits into
microsoft:mainfrom
jakebailey:faster-debug-attach
Feb 3, 2023
Merged

Speed up debug attach by setting outFiles#52584
jakebailey merged 3 commits into
microsoft:mainfrom
jakebailey:faster-debug-attach

Conversation

@jakebailey

Copy link
Copy Markdown
Member

This improves the startup time of the debugger. This is a template, so everyone will have to manually copy this if they want it.

(I had this locally after it was suggested by @connor4312 and then proceeded to entirely forget to send this.)

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 3, 2023
"NODE_ENV": "testing"
},
"outFiles": [
"${workspaceFolder}/built/**/*.js",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future proofing maybe {js,mjs,cjs} though...

@DanielRosenwasser DanielRosenwasser Feb 3, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If anyone seconds it:

Suggested change
"${workspaceFolder}/built/**/*.js",
"${workspaceFolder}/built/**/*.{js,mjs,cjs}",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, this syntax doesn't actually work in this position. I guess these globs are different?

@connor4312

Copy link
Copy Markdown
Member

Lgtm

@jakebailey jakebailey merged commit c828562 into microsoft:main Feb 3, 2023
@jakebailey jakebailey deleted the faster-debug-attach branch February 3, 2023 18:01
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants