Skip to content

Commit

Permalink
fix: windooooows
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Aug 8, 2024
1 parent 4b86b00 commit ed0443b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion packages/language-server/src/core/frontmatterHolders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export function getFrontmatterLanguagePlugin(
scriptId.fsPath.replace(/\\/g, '/'),
languageId,
snapshot,
getCollectionName(collectionConfigs, scriptId.toString()),
getCollectionName(
collectionConfigs,
decodeURIComponent(scriptId.toString()).toLowerCase(),
),
);
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/language-server/test/fixture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "astro-language-server-test",
"private": true,
"devDependencies": {
"astro": "0.0.0-content-collections-intellisense-20240808220438"
"astro": "0.0.0-content-collections-intellisense-20240808223933"
},
"scripts": {
"sync": "astro sync"
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-plugin/src/frontmatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function getFrontmatterLanguagePlugin(
fileName,
languageId,
snapshot,
getCollectionName(collectionConfigs, pathToFileURL(fileName).toString()),
getCollectionName(collectionConfigs, pathToFileURL(fileName).toString().toLowerCase()),
);
}
},
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

0 comments on commit ed0443b

Please sign in to comment.