Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Code: enable prettier trailing commas | Laurențiu Nicola | 2019-12-09 | 30 | -231/+231 |
| | |||||
* | Allow disabling sysroot | Aleksey Kladov | 2019-12-09 | 2 | -1/+7 |
| | | | | Might be helpful for debugging | ||||
* | Merge #2508 | bors[bot] | 2019-12-08 | 1 | -5/+9 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 2508: Code: don't check for ra_lsp_server on Windows r=matklad a=lnicola Workaround for https://github.com/rust-analyzer/rust-analyzer/pull/2503#issuecomment-562980020. ~~(not yet tested on Windows)~~ We can't run `ra_lsp_server --version` right now because the server doesn't seem to handle arguments (so it hangs). Co-authored-by: Laurențiu Nicola <[email protected]> | ||||
| * | Code: don't check for ra_lsp_server on Windows | Laurențiu Nicola | 2019-12-08 | 1 | -5/+9 |
| | | |||||
* | | Code: bump deps | Laurențiu Nicola | 2019-12-08 | 2 | -6/+8 |
|/ | |||||
* | Code: check whether the LSP binary is in PATH | Laurențiu Nicola | 2019-12-08 | 2 | -6/+17 |
| | |||||
* | rename ra_ide_api -> ra_ide | Aleksey Kladov | 2019-11-27 | 1 | -0/+0 |
| | |||||
* | Merge pull request #2297 from kiljacken/master | Aleksey Kladov | 2019-11-20 | 2 | -13/+2 |
|\ | | | | | Add fancy truncation of type hints. | ||||
| * | Move type inlay hint truncation to language server | Emil Lauridsen | 2019-11-19 | 2 | -13/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | This commit implements a general truncation framework for HirFormatter that keeps track of how much has been output so far. This information can then be used to perform truncation inside the language server, instead of relying on the client. Initial support is implemented for truncating types hints using the maxInlayHintLength server config option. The existing solution in the VSCode extension has been removed in favor of letting the server truncate type hints. | ||||
* | | Minor fix for outpu text formating | Edwin Cheng | 2019-11-19 | 1 | -1/+1 |
| | | |||||
* | | Use DocumentProvider instead of Hover | Edwin Cheng | 2019-11-19 | 2 | -33/+70 |
| | | |||||
* | | Change return type of expand_macro | Edwin Cheng | 2019-11-19 | 1 | -5/+8 |
| | | |||||
* | | Fix npm formatting | Edwin Cheng | 2019-11-19 | 2 | -14/+14 |
| | | |||||
* | | Add recursive expand in vscode | Edwin Cheng | 2019-11-19 | 3 | -5/+62 |
|/ | |||||
* | Fix format | oxalica | 2019-11-16 | 1 | -1/+3 |
| | |||||
* | Check exit code of `cargo watch` | oxalica | 2019-11-15 | 1 | -3/+3 |
| | |||||
* | Handle errors when `cargo watch` fails | oxalica | 2019-11-15 | 1 | -0/+5 |
| | |||||
* | Add link to the vscode VIM extension compatibility warning. | krk | 2019-10-30 | 1 | -1/+1 |
| | |||||
* | document feature flags | Aleksey Kladov | 2019-10-25 | 2 | -9/+0 |
| | |||||
* | Merge #1980 | bors[bot] | 2019-10-23 | 2 | -1/+23 |
|\ | | | | | | | | | | | | | | | 1980: Shorten inline type hints r=matklad a=detrumi Implements #1946 Co-authored-by: Wilco Kusee <[email protected]> | ||||
| * | Do not truncate the range | Wilco Kusee | 2019-10-23 | 1 | -30/+10 |
| | | |||||
| * | Make inlay hint length configurable | Wilco Kusee | 2019-10-18 | 2 | -14/+32 |
| | | |||||
| * | Truncate hints longer than 20 characters | Wilco Kusee | 2019-10-10 | 1 | -4/+28 |
| | | |||||
* | | Adds config option for cargo-watch `--ignore` flag | Roberto Vidal | 2019-10-17 | 2 | -2/+16 |
|/ | |||||
* | Fix | arsdragonfly | 2019-09-28 | 1 | -3/+1 |
| | |||||
* | Fix tests | arsdragonfly | 2019-09-27 | 2 | -6/+5 |
| | |||||
* | Support the new deprecated tag | arsdragonfly | 2019-09-27 | 1 | -1/+20 |
| | |||||
* | Replace watcher file existence check with vscode.fs version | Lucas Spits | 2019-09-09 | 1 | -11/+10 |
| | |||||
* | add option to disable notify | Aleksey Kladov | 2019-09-06 | 2 | -0/+5 |
| | |||||
* | Switch to `@types/vscode` and `vscode-test` | Bastian Köcher | 2019-08-26 | 4 | -23/+72 |
| | | | | | | The old `vscode` package is outdated and it is recommened to switch to these two new packages. This also solves a problem of a missing `.d.ts` for `vscode` in Nixos. | ||||
* | implement feature flags | Aleksey Kladov | 2019-08-22 | 2 | -1/+6 |
| | |||||
* | fix #1424 | xfoxfu | 2019-08-19 | 1 | -1/+9 |
| | | | | resolve "~" in raLspServerPath | ||||
* | Merge #1652 | bors[bot] | 2019-08-06 | 2 | -41/+55 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 1652: Improve type hints behavior r=matklad a=SomeoneToIgnore This PR fixed the following type hints issues: * Restructures the `InlayKind` enum contents based on the discussion here: https://github.com/rust-analyzer/rust-analyzer/pull/1606#issuecomment-515968055 * Races described in #1639 * Caches the latest decorations received for each file to show them the next time the file is opened (instead of a new server request) Co-authored-by: Kirill Bulatov <[email protected]> | ||||
| * | Avoid shared mutable state | Kirill Bulatov | 2019-08-05 | 2 | -71/+55 |
| | | |||||
| * | Cache decorations before the first change only | Kirill Bulatov | 2019-08-05 | 1 | -20/+21 |
| | | |||||
| * | Use WeakMap to avoid memory leaks | Kirill Bulatov | 2019-08-05 | 1 | -10/+12 |
| | | |||||
| * | Style and test fixes | Kirill Bulatov | 2019-08-04 | 1 | -6/+17 |
| | | |||||
| * | Query less hints on file open | Kirill Bulatov | 2019-08-04 | 1 | -18/+34 |
| | | |||||
* | | allow to exclude certain files and directories | Aleksey Kladov | 2019-08-06 | 2 | -1/+6 |
|/ | |||||
* | Style fixes | Kirill Bulatov | 2019-07-29 | 1 | -1/+4 |
| | |||||
* | Ignore cancelled inlay hints responses | Kirill Bulatov | 2019-07-29 | 1 | -6/+8 |
| | |||||
* | npm run fix | Kirill Bulatov | 2019-07-25 | 2 | -10/+22 |
| | |||||
* | Code review fixes | Kirill Bulatov | 2019-07-25 | 2 | -13/+13 |
| | |||||
* | Remove unnecessary hacks | Kirill Bulatov | 2019-07-25 | 1 | -29/+0 |
| | |||||
* | Fix linter issues | Kirill Bulatov | 2019-07-25 | 3 | -32/+72 |
| | |||||
* | Simplify the hints display | Kirill Bulatov | 2019-07-25 | 2 | -54/+6 |
| | |||||
* | Show type decorators | Kirill Bulatov | 2019-07-25 | 4 | -1/+161 |
| | |||||
* | underline mutable bindings | Aleksey Kladov | 2019-07-19 | 1 | -27/+34 |
| | |||||
* | highlight mutable variables differently | Ekaterina Babshukova | 2019-07-18 | 1 | -0/+1 |
| | |||||
* | Merge #1459 | bors[bot] | 2019-06-30 | 3 | -1/+70 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1459: Include primary span label in VS Code diagnostics r=matklad a=etaoins In most cases the primary label span repeats information found elsewhere in the diagnostic. For example, with E0061: ```json { "message": "this function takes 2 parameters but 3 parameters were supplied", "spans": [{"label": "expected 2 parameters"}] } ``` However, with some mismatched type errors (E0308) the expected type only appears in the primary span's label, e.g.: ```json { "message": "mismatched types", "spans": [{"label": "expected usize, found u32"}] } ``` I initially added the primary span label to the message unconditionally. However, for most error types the child diagnostics repeat the primary span label with more detail. `rustc` also renders the duplicate text but because the span label and child diagnostics appear in visually distinct places it's not as confusing. This takes a heuristic approach where it will only add the primary span label if there are no child message lines. For most error types the child messages repeat the primary span label with more detail. Co-authored-by: Ryan Cumming <[email protected]> |