Skip to content

fix: prevent config loading message in svelte-check --incremental#2974

Open
jasonlyu123 wants to merge 2 commits intomasterfrom
svelte-check-log
Open

fix: prevent config loading message in svelte-check --incremental#2974
jasonlyu123 wants to merge 2 commits intomasterfrom
svelte-check-log

Conversation

@jasonlyu123
Copy link
Member

#2972

Setting the log level should be enough for this. But the config won't be used here, so might as well add an option to skip loading. The default is to skip it since most tests won't use the config either.

@changeset-bot
Copy link

changeset-bot bot commented Mar 11, 2026

🦋 Changeset detected

Latest commit: 1b02436

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

This PR includes changesets to release 2 packages
Name Type
svelte-language-server Patch
svelte-check 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

public url: string,
public content: string
public content: string,
loadConfig = false
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we do it the other way around? load config by default. I think this would result in less changed code locations.

Copy link
Member Author

Choose a reason for hiding this comment

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

There are a lot of new Document calls in the test, and most of them don't need the config. But the performance difference in config loading during the test isn't very noticeable, so it's not that important. Would you prefer it to be skipLoadConfig instead?

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.

2 participants