Skip to content

fix: require .heapsnapshot (or .heaptimeline) as file extension - #2579

Merged
dinfuehr merged 1 commit into
ChromeDevTools:mainfrom
dinfuehr:di/enforce-file-extension
Aug 17, 2026
Merged

dinfuehr merged 1 commit into
ChromeDevTools:mainfrom
dinfuehr:di/enforce-file-extension

Conversation

@dinfuehr

Copy link
Copy Markdown
Collaborator

This makes it harder to pass wrong arguments to the CLI tools.

@dinfuehr dinfuehr changed the title Require .heapsnapshot (or .heaptimeline) as file extension feat: Require .heapsnapshot (or .heaptimeline) as file extension Aug 14, 2026
@Lightning00Blade

Copy link
Copy Markdown
Collaborator

@OrKoN Do you think we should make this part of the verifyFilesSchema and have {extensions: Array<.${string}>}`?

@OrKoN

OrKoN commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

I think we could do that, but I think we currently only have this one instance of requiring extension validation? or do we have more?

@Lightning00Blade

Lightning00Blade commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

I think we could do that, but I think we currently only have this one instance of requiring extension validation? or do we have more?

We have this check in the Memory tools and Screencast tools. And some places where we use context.saveFile but those need to be tracked per place.

@Lightning00Blade Lightning00Blade changed the title feat: Require .heapsnapshot (or .heaptimeline) as file extension feat: require .heapsnapshot (or .heaptimeline) as file extension Aug 17, 2026
@Lightning00Blade Lightning00Blade changed the title feat: require .heapsnapshot (or .heaptimeline) as file extension fix: require .heapsnapshot (or .heaptimeline) as file extension Aug 17, 2026
@dinfuehr

Copy link
Copy Markdown
Collaborator Author

Thanks for the review!

@dinfuehr
dinfuehr added this pull request to the merge queue Aug 17, 2026
Merged via the queue into ChromeDevTools:main with commit b750168 Aug 17, 2026
37 of 43 checks passed
@dinfuehr
dinfuehr deleted the di/enforce-file-extension branch August 17, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants