mirror of
https://github.com/lensapp/lens.git
synced 2024-09-21 14:27:46 +03: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
|
||||
}
|
||||
const absPath = path.resolve(folderPath, fileName);
|
||||
if (!fs.existsSync(absPath) || !fs.lstatSync(absPath).isDirectory()) { // skip non-directories
|
||||
continue;
|
||||
if (!fs.existsSync(absPath)) {
|
||||
continue
|
||||
}
|
||||
const lstat = await fs.lstat(absPath)
|
||||
if (!lstat.isDirectory() && !lstat.isSymbolicLink()) { // skip non-directories
|
||||
continue
|
||||
}
|
||||
const manifestPath = path.resolve(absPath, "package.json");
|
||||
const ext = await this.getExtensionByManifest(manifestPath).catch(() => null)
|
||||
|
Loading…
Reference in New Issue
Block a user