Skip to content

Conversation

alan-agius4
Copy link
Collaborator

This commit integrates automatic Chrome DevTools workspace folder connection into the vite dev-server process, leveraging the experimental feature available in Chrome Canary, as described in the Chrome DevTools documentation https://chromium.googlesource.com/devtools/devtools-frontend/+/main/docs/ecosystem/automatic_workspace_folders.md

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release labels Mar 5, 2025
@alan-agius4 alan-agius4 requested a review from clydin March 5, 2025 09:30
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/build labels Mar 5, 2025
@alan-agius4 alan-agius4 force-pushed the chrome-workspaces branch 4 times, most recently from 40743e4 to 71386d4 Compare March 5, 2025 15:37
This commit integrates automatic Chrome DevTools workspace folder connection into the vite dev-server process, leveraging the experimental feature available in Chrome Canary, as described in the Chrome DevTools documentation https://chromium.googlesource.com/devtools/devtools-frontend/+/main/docs/ecosystem/automatic_workspace_folders.md
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 5, 2025
@alan-agius4 alan-agius4 merged commit 3c91721 into angular:main Mar 5, 2025
31 checks passed
@alan-agius4 alan-agius4 deleted the chrome-workspaces branch March 5, 2025 16:14

// We store the UUID and re-use it to ensure Chrome does not repeatedly ask for permissions when restarting the dev server.
try {
devtoolsConfig ??= readFileSync(devtoolsConfigPath, 'utf-8');
Copy link

Choose a reason for hiding this comment

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

Maybe I'm missing something, but what happens if you relocate the project folder? That doesn't seem to trigger deletion of the cached file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is correct, we could add a check here to validate that the path is the same otherwise we could re-generate the entry.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants