We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79992f1 commit 2decf8dCopy full SHA for 2decf8d
server/src/utils.ts
@@ -67,7 +67,8 @@ export let findProjectRootOfFile = (
67
if (foundRootFromProjectFiles != null) {
68
return foundRootFromProjectFiles;
69
} else {
70
- const isDir = path.extname(source) === "";
+ const dirStat = fs.statSync(source);
71
+ const isDir = dirStat.isDirectory();
72
return findProjectRootOfFileInDir(
73
isDir && !allowDir ? path.join(source, "dummy.res") : source
74
);
0 commit comments