Commit e4d83e7
committed
Fix isLocalFolder() to allow symlinks to directories
I'm trying to layer in a local feature for my developers to apply custom
preferences to their devcontainers without polluting eachother's
devcontainers.
I want to use a symlink from `~/.devcontainer/personal-config` to the
local repository's `.devcontainer/personal-config` and add:
```
{
...
"features": {
"./personal-config": {}
}
}
```
To the local repository's `.devcontainer/devcontainer.json`.
Unfortunately, the current `isLocalFolder()` chokes on symlinks. This
patch should allow symlinked directories for local features.
I'm not a TypeScript programmer, and I'm not sure this is the exact
implementation. I'm not a fan of async programming, especially for
command line utilities with linear workflows, but the world lost it's
mind and uses callback non-sense for straight forward problems, so here
we are.1 parent f4ee5d0 commit e4d83e7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments