Skip to content

Conversation

@jp-knj
Copy link
Member

@jp-knj jp-knj commented Oct 31, 2025

Changes

Closes #14641

  • Fix high CPU usage (110%) from VS Code extension on Apple Silicon
  • Add check to only run TypeScript plugin in Astro projects, returns empty plugins for non-Astro projects to save resources

Testing

  • To test the fix:
    • Open non-Astro project → CPU usage should be normal
    • Open Astro project → Extension should work as before

Docs

No docs needed. This fix only improves performance. Users don't need to change anything.

@changeset-bot
Copy link

changeset-bot bot commented Oct 31, 2025

⚠️ No Changeset found

Latest commit: f4c8892

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

@jp-knj jp-knj self-assigned this Nov 1, 2025
@jp-knj jp-knj added the pr preview Apply this label to a PR to generate a preview release label Nov 1, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 1, 2025

npm i https://pkg.pr.new/astro@14704

commit: f4c8892

@jp-knj
Copy link
Member Author

jp-knj commented Nov 1, 2025

@arunvisvajeetrs
Hi, Please install preview packages from the PR and test the fix 🙏🏿

@jp-knj jp-knj added the pkg: language-tools Related to language-tooling (scope) label Nov 1, 2025
if (ts.sys.readDirectory) {
const hasAstroConfig =
ts.sys.readDirectory(
currentDir,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest checking that this work inside monorepos!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: language-tools Related to language-tooling (scope) pr preview Apply this label to a PR to generate a preview release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 BUG: High CPU usage from Astro Language Support extension on Apple Silicon

2 participants