Skip to content

fix(ts-plugin): find Astro.locals references#16936

Open
qybaihe wants to merge 1 commit into
withastro:mainfrom
qybaihe:fix-16078-ts-plugin-astro-locals
Open

fix(ts-plugin): find Astro.locals references#16936
qybaihe wants to merge 1 commit into
withastro:mainfrom
qybaihe:fix-16078-ts-plugin-astro-locals

Conversation

@qybaihe
Copy link
Copy Markdown

@qybaihe qybaihe commented Jun 1, 2026

Fixes #16078

Summary

  • include tsconfig-matched .astro files in the TypeScript plugin project
  • inject the installed Astro package's env.d.ts and astro-jsx.d.ts into the TS plugin host
  • add focused unit and VS Code fixture coverage for Astro.locals references

Verification

  • pnpm -C packages/language-tools/ts-plugin build
  • pnpm -C packages/language-tools/ts-plugin exec mocha --ui tdd --require tsx "test/units/**/*.test.mts"
  • pnpm -C packages/language-tools/vscode build && pnpm -C packages/language-tools/ts-plugin test

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 1, 2026

🦋 Changeset detected

Latest commit: 6c7ed4e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/ts-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@qybaihe qybaihe force-pushed the fix-16078-ts-plugin-astro-locals branch from d3eb984 to 6c7ed4e Compare June 1, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VSCode Go To References doesn't work with astro locals in astro files

1 participant