diff options
-rw-r--r-- | docs/user/manual.adoc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc index ede21ed9b..ee29be0bb 100644 --- a/docs/user/manual.adoc +++ b/docs/user/manual.adoc | |||
@@ -343,16 +343,14 @@ More about `when` clause contexts https://code.visualstudio.com/docs/getstarted/ | |||
343 | === Setting runnable environment variables | 343 | === Setting runnable environment variables |
344 | You can use "rust-analyzer.runnableEnv" setting to define runnable environment-specific substitution variables. | 344 | You can use "rust-analyzer.runnableEnv" setting to define runnable environment-specific substitution variables. |
345 | The simplest way for all runnables in a bunch: | 345 | The simplest way for all runnables in a bunch: |
346 | [source,jsonc] | 346 | ```jsonc |
347 | --- | ||
348 | "rust-analyzer.runnableEnv": { | 347 | "rust-analyzer.runnableEnv": { |
349 | "RUN_SLOW_TESTS": "1" | 348 | "RUN_SLOW_TESTS": "1" |
350 | } | 349 | } |
351 | --- | 350 | ``` |
352 | 351 | ||
353 | Or it is possible to specify vars more granularly: | 352 | Or it is possible to specify vars more granularly: |
354 | [source,jsonc] | 353 | ```jsonc |
355 | --- | ||
356 | "rust-analyzer.runnableEnv": [ | 354 | "rust-analyzer.runnableEnv": [ |
357 | { | 355 | { |
358 | // "mask": null, // null mask means that this rule will be applied for all runnables | 356 | // "mask": null, // null mask means that this rule will be applied for all runnables |
@@ -368,6 +366,6 @@ Or it is possible to specify vars more granularly: | |||
368 | } | 366 | } |
369 | } | 367 | } |
370 | ] | 368 | ] |
371 | --- | 369 | ``` |
372 | 370 | ||
373 | You can use any valid RegExp as a mask. Also note that a full runnable name is something like *run bin_or_example_name*, *test some::mod::test_name* or *test-mod some::mod*, so it is possible to distinguish binaries, single tests, and test modules with this masks: `"^run"`, `"^test "` (the trailing space matters!), and `"^test-mod"` respectively. | 371 | You can use any valid RegExp as a mask. Also note that a full runnable name is something like *run bin_or_example_name*, *test some::mod::test_name* or *test-mod some::mod*, so it is possible to distinguish binaries, single tests, and test modules with this masks: `"^run"`, `"^test "` (the trailing space matters!), and `"^test-mod"` respectively. |