Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Load language integrations from the user project#332

Merged
Princesseuh merged 7 commits into
mainfrom
external-language-integrations
Jul 13, 2022
Merged

Load language integrations from the user project#332
Princesseuh merged 7 commits into
mainfrom
external-language-integrations

Conversation

@Princesseuh
Copy link
Copy Markdown
Member

@Princesseuh Princesseuh commented Jul 8, 2022

Changes

Editor tooling part of withastro/astro#3864

This deprecate both @astrojs/svelte-language-integration and @astrojs/vue-language-integration

This makes the language-server about 600 files lighter and about 10mb~ less. Since we need those integrations in dev, this only affects users and not developers, but that's okay

Testing

Our current tests already cover importing and doing stuff with Vue and Svelte components. Adding the integrations as dev dependencies is enough to have them inside fixtures

Not sure if anything more is needed here, testing the package imports would be testing that Node's require work

Docs

Will tell people in my announce message. I'll monitor #support-threads after to see if we need to document this more heavily or not, it shouldn't technically affect many people (if you're using Svelte, you're likely to have the Svelte integration, I think?)

@Princesseuh Princesseuh requested a review from a team as a code owner July 8, 2022 20:07
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 8, 2022

🦋 Changeset detected

Latest commit: 7a25698

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

This PR includes changesets to release 2 packages
Name Type
@astrojs/language-server Minor
astro-vscode Minor

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

@Princesseuh Princesseuh changed the title Load language integrations from the user project instead of having them as dependency Load language integrations from the user project Jul 8, 2022
@Princesseuh Princesseuh self-assigned this Jul 8, 2022
Comment thread .eslintignore
@@ -1,5 +1,6 @@
.github
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is unrelated to this specific PR, just something I missed in #334


if (diagnostic.message.includes('.vue')) {
diagnostic.message +=
'\n\nIs the `@astrojs/vue` package installed? You can add it to your project by running the following command: `astro add vue`. If already installed, restarting the language server might be necessary in order for the change to take effect';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

like these suggestions!

@matthewp
Copy link
Copy Markdown
Collaborator

Just needs a changeset.

@Princesseuh Princesseuh merged commit 4b73c21 into main Jul 13, 2022
@Princesseuh Princesseuh deleted the external-language-integrations branch July 13, 2022 13:57
@Princesseuh Princesseuh restored the external-language-integrations branch July 13, 2022 13:59
Princesseuh added a commit that referenced this pull request Jul 13, 2022
Princesseuh added a commit that referenced this pull request Jul 13, 2022
@Princesseuh Princesseuh deleted the external-language-integrations branch May 10, 2023 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants