Skip to content

Commit

Permalink
Update packages/language-server/src/nodeServer.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
  • Loading branch information
florian-lefebvre and Princesseuh authored Sep 11, 2024
1 parent 69a8067 commit cd9046f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/language-server/src/nodeServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ connection.onInitialize((params) => {
let config = server.fileSystem.readFile(
Utils.joinPath(folderUri, '.astro/astro/collections/collections.json'),
);
// If we couldn't find a config there, the project might be an Astro 4 project
if (!config) {
config = server.fileSystem.readFile(
Utils.joinPath(folderUri, '.astro/collections/collections.json'),
Expand Down

0 comments on commit cd9046f

Please sign in to comment.