We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f25a39f commit afc6d8eCopy full SHA for afc6d8e
extensions/vscode/src/utils/dart-frog-project.ts
@@ -73,8 +73,10 @@ export function normalizeRoutePath(
73
export function nearestParentDartFrogProject(
74
filePath: string
75
): string | undefined {
76
+ const root = path.parse(filePath).root;
77
+
78
let currentPath = filePath;
- while (currentPath !== path.sep) {
79
+ while (currentPath !== root) {
80
if (isDartFrogProject(currentPath)) {
81
return currentPath;
82
}
0 commit comments