Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(config): create a config file on the first run #15

Merged
merged 7 commits into from
Feb 18, 2023
Merged

fix(config): create a config file on the first run #15

merged 7 commits into from
Feb 18, 2023

Conversation

guilherssousa
Copy link
Contributor

This PR fixes a problem where users, after installing rspell and running it for the first time, receive an error saying they don't have a cspell.json on their default configuration paths.

The changes are adding the config file creation responsibility and renaming findConfig to findOrCreateConfig, also introducing tests for it.

src/config.ts Outdated Show resolved Hide resolved
test/index.test.ts Outdated Show resolved Hide resolved
test/index.test.ts Outdated Show resolved Hide resolved
test/index.test.ts Outdated Show resolved Hide resolved
src/display.ts Show resolved Hide resolved
@Lioness100 Lioness100 changed the title Fix: create a config file on the first run (+ tests) fix(config): create a config file on the first run Feb 18, 2023
@Lioness100 Lioness100 merged commit 0901fba into Lioness100:main Feb 18, 2023
@Lioness100
Copy link
Owner

Thanks for the contribution!!

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