You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6fe3571
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/trust/path-trust.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ export async function revokePathPlugin(
175
175
176
176
/**
177
177
* One-shot migration: seed the global store from `settings.pluginPaths` when
178
-
* no valid store file exists yet. Every registered entry that resolves to a
178
+
* the store file is missing (first launch). Every registered entry that resolves to a
179
179
* plugin on disk is granted — pluginPaths lives in the user's global settings,
180
180
* so each entry was put there by the user (add-by-path or a hand edit) and
181
181
* registration is taken as consent at the moment the store is created, even
@@ -208,7 +208,9 @@ export async function migratePathTrustFromPluginPaths(
208
208
returnexisting.store;
209
209
}
210
210
if(existing.state==="invalid"){
211
-
logger.warn`refusing path-trust migration from a corrupt store at ${pathTrustPath(home)}: delete the file to re-seed from settings.pluginPaths or re-consent through add-by-path`;
211
+
if(pluginPaths.length>0){
212
+
logger.warn`refusing path-trust migration from a corrupt store at ${pathTrustPath(home)}: delete the file to re-seed from settings.pluginPaths or re-consent through add-by-path`;
0 commit comments