fix: enforce .gz instead of json.gz in performance tools (#2305)
Closes https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/2303
This commit is contained in:
@@ -185,7 +185,7 @@ export type SupportedExtensions =
|
||||
| '.html'
|
||||
| '.txt'
|
||||
| '.csv'
|
||||
| '.json.gz';
|
||||
| '.gz';
|
||||
|
||||
/**
|
||||
* Only add methods used by tools/*.
|
||||
|
||||
@@ -205,7 +205,7 @@ async function stopTracingAndAppendOutput(
|
||||
const file = await context.saveFile(
|
||||
dataToWrite,
|
||||
filePath,
|
||||
filePath.endsWith('.gz') ? '.json.gz' : '.json',
|
||||
filePath.endsWith('.gz') ? '.gz' : '.json',
|
||||
);
|
||||
response.appendResponseLine(
|
||||
`The raw trace data was saved to ${file.filename}.`,
|
||||
|
||||
Reference in New Issue
Block a user