diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-02 21:47:44 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-02 21:47:44 +0000 |
commit | a4c30d750411f09a999b201631000a08e88907fd (patch) | |
tree | 1034c83bd53ab42e916f58c73249678a04a0085f /crates/ra_analysis/tests | |
parent | 54efd8204ec05313007d42351fe4701061b06a67 (diff) | |
parent | 96f0683974406055e98ff88af3b01327aae8ba61 (diff) |
Merge #408
408: vscode problem matcher improvements r=matklad a=vemoo
The problem matcher wasn't working properly and looking at the rustc errors i realized it could be simplified.
I also added a new problem matcher that can be used with https://github.com/passcod/cargo-watch to get the errors in the editor on save. To use it one can create a tasks.json file with:
```json
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "cargo watch",
"command": "cargo",
"isBackground": true,
"args": [
"watch",
"-c"
],
"problemMatcher": [
"$rustc-watch"
]
}
]
}
```
I initially implemented it like this: https://github.com/rust-analyzer/rust-analyzer/commit/cff9f62d321a90c45e622f5304e60a248cbcf4f2 but i think there's a bug in vscode so i worked around it by copying the pattern for both problem matchers. The first commit can be used if https://github.com/Microsoft/vscode/pull/65840 is merged.
Co-authored-by: Bernardo <[email protected]>
Diffstat (limited to 'crates/ra_analysis/tests')
0 files changed, 0 insertions, 0 deletions