aboutsummaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-07-03 14:03:01 +0100
committerGitHub <[email protected]>2020-07-03 14:03:01 +0100
commit8b2a44dc3f40926c3893eb029480384227b36de5 (patch)
tree3bcfbdadffeb5d3bdf2be683b044daa5f3ec7c71 /docs/user
parentfd94a10be1e2656837b3b7c7d26f291c2c8cced6 (diff)
remove ---
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/manual.adoc10
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
344You can use "rust-analyzer.runnableEnv" setting to define runnable environment-specific substitution variables. 344You can use "rust-analyzer.runnableEnv" setting to define runnable environment-specific substitution variables.
345The simplest way for all runnables in a bunch: 345The 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
353Or it is possible to specify vars more granularly: 352Or 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
373You 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. 371You 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.