Skip to content

Commit

Permalink
Skip symbolic links when loading workspace files (#225)
Browse files Browse the repository at this point in the history
* Skip symbolic links while searching for workspace files

* 0.13.6
  • Loading branch information
rvanasa authored Jul 6, 2023
1 parent dfbc444 commit c77dde5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-motoko",
"displayName": "Motoko",
"description": "Motoko language support",
"version": "0.13.5",
"version": "0.13.6",
"publisher": "dfinity-foundation",
"repository": "https://github.com/dfinity/vscode-motoko",
"engines": {
Expand Down
3 changes: 3 additions & 0 deletions src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ function notifyPackageConfigChange(reuseCached = false) {
cwd,
ignore: ignoreGlobs,
dot: false,
followSymbolicLinks: false,
});
paths.forEach((path) => {
path = join(cwd, path);
Expand Down Expand Up @@ -529,6 +530,7 @@ function notifyWorkspace() {
cwd: folderPath,
dot: true,
ignore: ignoreGlobs,
followSymbolicLinks: false,
}).forEach((relativePath) => {
const path = join(folderPath, relativePath);
try {
Expand Down Expand Up @@ -610,6 +612,7 @@ function checkWorkspace() {
// cwd: folderPath,
// dot: false, // exclude directories such as `.vessel`
// ignore: ignoreGlobs,
// followSymbolicLinks: false,
// }).forEach((relativePath) => {
// const path = join(folderPath, relativePath);
// try {
Expand Down

0 comments on commit c77dde5

Please sign in to comment.