Skip to content

Commit

Permalink
Update branch with main
Browse files Browse the repository at this point in the history
  • Loading branch information
LightFLP committed Dec 14, 2023
2 parents ac057e8 + 8edcdd3 commit 3e12e46
Show file tree
Hide file tree
Showing 19 changed files with 737 additions and 357 deletions.
7 changes: 7 additions & 0 deletions src/extension/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ export class EditorProvider implements vscode.CustomTextEditorProvider {
} else if (e.type === 'saveRules') {
fs.writeFileSync(rulesFile, JSON.stringify(e.rules));
}
else if (e.type === 'exportData') {
const filename = document.fileName.split(".tracy")[0].split("_Tracy_export_")[0]
const _date = new Date().toISOString().slice(0,10).replace(/-/g, "");
const _time = new Date().toISOString().slice(11,19).replace(/:/g, "");
const exportFile = `${filename}_Tracy_export_${_date}_${_time}.tracy.json`;
fs.writeFileSync(exportFile, JSON.stringify(e.data));
}
});
}

Expand Down
Loading

0 comments on commit 3e12e46

Please sign in to comment.