Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Preview Enhancements: Clear cache and telemetry logging #1088

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

priyanshu92
Copy link
Contributor

@priyanshu92 priyanshu92 commented Jan 16, 2025

This pull request enhances the PreviewSite functionality by adding error handling, cache clearing, and telemetry logging. The changes include updates to constants, imports, and the PreviewSite class to support these new features.

Error handling and telemetry logging:

Cache clearing functionality:

@priyanshu92 priyanshu92 changed the title Clear cache before showing site preview Site Preview Enhancements: Clear cache and telemetry logging Jan 16, 2025
@priyanshu92 priyanshu92 marked this pull request as ready for review January 16, 2025 13:20
@priyanshu92 priyanshu92 requested review from a team as code owners January 16, 2025 13:20
@priyanshu92 priyanshu92 enabled auto-merge (squash) January 16, 2025 13:52
await PreviewSite.launchBrowserAndDevToolsWithinVsCode(this._websiteUrl);
}

private static async handleEmptyWebsiteUrl(pacTerminal: PacTerminal, telemetry: ITelemetry): Promise<boolean> {
private static async clearCache(telemetry: ITelemetry, orgDetails: IOrgDetails): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to reuse the implementation done for web?

Copy link
Contributor Author

@priyanshu92 priyanshu92 Jan 17, 2025

Choose a reason for hiding this comment

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

The web implementation is tightly coupled to WebExtensionContext and will require lot of refactoring to make it reusable. We can do it in a separate PR.

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.

2 participants