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

[cherry-pick] require 'prompt files' synchronization to be explicitly enabled by users #242586

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

legomushroom
Copy link
Member

Cherry pick of #242567 into the main.

@legomushroom legomushroom self-assigned this Mar 4, 2025
@vs-code-engineering vs-code-engineering bot added this to the March 2025 milestone Mar 4, 2025
@legomushroom legomushroom enabled auto-merge (squash) March 4, 2025 17:54
@legomushroom legomushroom changed the title require 'prompt files' synchronization to be explicitly enabled by users [cherry-pick] require 'prompt files' synchronization to be explicitly enabled by users Mar 4, 2025
return this.storageService.getBoolean(getEnablementKey(resource), StorageScope.APPLICATION, true);
isResourceEnabled(resource: SyncResource, defaultValue?: boolean): boolean {
const storedValue = this.storageService.getBoolean(getEnablementKey(resource), StorageScope.APPLICATION);
defaultValue = defaultValue ?? resource !== SyncResource.Prompts;
Copy link
Contributor

@rzhao271 rzhao271 Mar 4, 2025

Choose a reason for hiding this comment

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

I notice that userDataSync calls this function with defaultValue=true. Wouldn't defaultValue always stay true in this case?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a change made by @sandy081 who own the code in #242567 so cannot comment on that. This is a simply a cherry pick of that logic onto the main branch.

@legomushroom legomushroom requested a review from rzhao271 March 4, 2025 18:07
@legomushroom legomushroom merged commit a23f8ea into main Mar 4, 2025
8 checks passed
@legomushroom legomushroom deleted the aeschli/assistant-ptarmigan-163 branch March 4, 2025 18:17
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.

4 participants