diff --git a/.vscode/settings.json b/.vscode/settings.json index bf9da13..d4a7a5c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,7 +4,7 @@ "files.associations": { "**/templates/**/*.html": "jinja-html", }, - "rust-analyzer.check.extraEnv": { + "rust-analyzer.server.extraEnv": { "SQLX_OFFLINE": "false", }, diff --git a/README.md b/README.md index c48fc43..771565b 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ First, run `./meta/setup`. This creates or updates the dev database at `target/dev.db`. You will need to rerun this command whenever you change or add a migration. -Then, if you don't use VSCode, configure your `rust-analyzer` to run -`cargo check` with the environment variable `SQLX_OFFLINE=false` using the -[`rust-analyzer.check.extraEnv` option][ra-opt]. This signals to sqlx that it +Then, if you don't use VSCode, configure your `rust-analyzer` to run with the +with the environment variable `SQLX_OFFLINE=false` using the +[`rust-analyzer.server.extraEnv` option][ra-opt]. This signals to sqlx that it should use the dev database instead of `.sqlx/`, but only in your IDE. **Important:** Before committing any changed SQL query, you **must** run