Skip to content

Commit 15c7163

Browse files
committed
Use expandDirectories option for compatibility with fast-glob
1 parent c757840 commit 15c7163

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/language-tools/language-server/src/check.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export class AstroCheck {
170170
cwd: this.workspacePath,
171171
ignore: ['node_modules'],
172172
absolute: true,
173+
expandDirectories: false,
173174
});
174175
},
175176
undefined,

packages/language-tools/language-server/src/plugins/astro.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ function getGlobResultAsCodeLens(globText: string, dir: string, position: Positi
129129
const globResult = globSync(globText, {
130130
cwd: dir,
131131
onlyFiles: true,
132+
expandDirectories: false,
132133
});
133134

134135
return {

0 commit comments

Comments
 (0)