Skip to content

Commit d5eba6e

Browse files
committed
docs: distinguish update consent from plugin activation
1 parent c65f5d5 commit d5eba6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/plugins/capability-consent.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ async function resolvePluginArtifactCapabilityConsent(params: {
273273
resolveAcceptedSurfaceCurrent(params.previousRecord, params.previousDeclared) &&
274274
resolvePluginInstallRecordIntegrity(params.previousRecord) !== undefined;
275275
acceptanceCurrent = !hasWidening && priorAcceptanceCurrent;
276-
// Reinstalls preserve authored disablement but still require consent before commit.
276+
// Reinstalls preserve authored disablement; required consent still precedes commit.
277277
// Only update-only flows defer it in preparePluginUpdateCapabilityConsent.
278278
}
279279
const acknowledgment =
@@ -329,7 +329,7 @@ export function createManagedPluginArtifactConsentHandler(params: {
329329
beforePersistentEffect?: () => void | Promise<void>;
330330
previousRecords?: Record<string, PluginInstallRecord>;
331331
previousPluginOwners?: ReadonlyMap<string, string>;
332-
/** Update-only flows preserve disablement; ordinary installs activate the package. */
332+
/** Update-only flows may defer consent while every known package entry is disabled. */
333333
updatingPluginIds?: readonly string[];
334334
}): {
335335
onBeforePluginArtifactCommit: PluginInstallArtifactConsentHandler;

0 commit comments

Comments
 (0)