mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Load symlinked extension folders (#1207)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
e570f6ac3b
commit
3ed7d93e91
@ -144,8 +144,12 @@ export class ExtensionManager {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const absPath = path.resolve(folderPath, fileName);
|
const absPath = path.resolve(folderPath, fileName);
|
||||||
if (!fs.existsSync(absPath) || !fs.lstatSync(absPath).isDirectory()) { // skip non-directories
|
if (!fs.existsSync(absPath)) {
|
||||||
continue;
|
continue
|
||||||
|
}
|
||||||
|
const lstat = await fs.lstat(absPath)
|
||||||
|
if (!lstat.isDirectory() && !lstat.isSymbolicLink()) { // skip non-directories
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
const manifestPath = path.resolve(absPath, "package.json");
|
const manifestPath = path.resolve(absPath, "package.json");
|
||||||
const ext = await this.getExtensionByManifest(manifestPath).catch(() => null)
|
const ext = await this.getExtensionByManifest(manifestPath).catch(() => null)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user