remove ---

This commit is contained in:
vsrs 2020-07-03 16:03:01 +03:00 committed by GitHub
parent fd94a10be1
commit 8b2a44dc3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -343,16 +343,14 @@ More about `when` clause contexts https://code.visualstudio.com/docs/getstarted/
=== Setting runnable environment variables === Setting runnable environment variables
You can use "rust-analyzer.runnableEnv" setting to define runnable environment-specific substitution variables. You can use "rust-analyzer.runnableEnv" setting to define runnable environment-specific substitution variables.
The simplest way for all runnables in a bunch: The simplest way for all runnables in a bunch:
[source,jsonc] ```jsonc
---
"rust-analyzer.runnableEnv": { "rust-analyzer.runnableEnv": {
"RUN_SLOW_TESTS": "1" "RUN_SLOW_TESTS": "1"
} }
--- ```
Or it is possible to specify vars more granularly: Or it is possible to specify vars more granularly:
[source,jsonc] ```jsonc
---
"rust-analyzer.runnableEnv": [ "rust-analyzer.runnableEnv": [
{ {
// "mask": null, // null mask means that this rule will be applied for all runnables // "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:
} }
} }
] ]
--- ```
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. 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.