Extract custom watch paths to specifications#7220
Draft
isaacroldan wants to merge 2 commits into04-08-use_extension_handle_to_identify_extensions_in_file-watcherfrom
Draft
Conversation
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
0748fb6 to
756d842
Compare
8658f96 to
e3a34f3
Compare
756d842 to
d70b812
Compare
4 tasks
d70b812 to
dbe5497
Compare
e3a34f3 to
b5640a9
Compare
dbe5497 to
d33c06d
Compare
b5640a9 to
8053877
Compare
4 tasks
4 tasks
Co-authored-by: Claude Code <claude-code@anthropic.com>
…onWatchConfig Co-authored-by: Claude Code <claude-code@anthropic.com>
8053877 to
cc5abaa
Compare
d33c06d to
1e0e9ea
Compare
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.

WHY are these changes introduced?
The current file watching system for dev sessions uses a hardcoded approach where function extensions have custom watch paths while other extensions watch everything. This creates inconsistent behavior and makes it difficult for different extension types to define their own watching requirements.
WHAT is this pull request doing?
Refactors the dev session file watching system to use a specification-based approach:
devSessionCustomWatchPathswith a newdevSessionWatchConfigmethod on extension specificationsDevSessionWatchConfiginterface that allows extensions to define both paths to watch and patterns to ignoreExtensionInstanceclass to the function specificationstatic_rootdirectory when configuredHow to test your changes?
build.watchconfiguration and verify it only watches the specified paths plus default files (locales, GraphQL, TOML)static_rootconfigured and verify it only watches files in that directoryChecklist
pnpm changeset add