0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] yarn format

This commit is contained in:
matthewp 2021-05-20 19:15:34 +00:00 committed by GitHub Actions
parent 4834c090f8
commit 5c1f949953
3 changed files with 6 additions and 8 deletions

View file

@ -109,11 +109,9 @@ export class AstroPlugin implements CompletionsProvider, FoldingRangeProvider {
const tsFragment = await tsDoc.getFragment(); const tsFragment = await tsDoc.getFragment();
const startRange: Range = Range.create(Position.create(0, 0), Position.create(0, 0)); const startRange: Range = Range.create(Position.create(0, 0), Position.create(0, 0));
const links = defs.map(def => { const links = defs.map((def) => {
const defFilePath = ensureRealFilePath(def.fileName); const defFilePath = ensureRealFilePath(def.fileName);
return LocationLink.create( return LocationLink.create(pathToUrl(defFilePath), startRange, startRange);
pathToUrl(defFilePath), startRange, startRange
);
}); });
return links; return links;