Hot-reload every installed plugin, not just local clones
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
19144983e5
commit
2050f28d55
@@ -668,9 +668,11 @@ QtObject {
|
||||
function localPluginIdForPath(filePath) {
|
||||
var base = pluginsDir.replace(/\/$/, "") + "/"
|
||||
var path = String(filePath || "").trim()
|
||||
if (path.indexOf(base + "local.") !== 0) return ""
|
||||
if (path.indexOf(base) !== 0) return ""
|
||||
|
||||
var relative = path.slice(base.length)
|
||||
// Hidden entries are not plugins: clone staging dirs, remove backups.
|
||||
if (relative.indexOf(".") === 0) return ""
|
||||
if (relative.indexOf("/.git/") !== -1 || relative.endsWith("/.git")) return ""
|
||||
|
||||
var slash = relative.indexOf("/")
|
||||
|
||||
Reference in New Issue
Block a user