Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Use CARGO_MANIFEST_DIR for locating the grammar.ron file | Muhammad Mominul Huque | 2018-10-15 | 3 | -8/+7 | |
| | | ||||||
| * | Show how to generate code with error message | Muhammad Mominul Huque | 2018-10-14 | 3 | -6/+8 | |
| | | ||||||
| * | create cli.rs and make the tests passing | Muhammad Mominul Huque | 2018-10-14 | 3 | -59/+86 | |
| | | ||||||
* | | switch to salsa release | Aleksey Kladov | 2018-10-15 | 1 | -1/+1 | |
| | | ||||||
* | | Simplify | Aleksey Kladov | 2018-10-15 | 2 | -13/+0 | |
| | | ||||||
* | | remove clones | Aleksey Kladov | 2018-10-15 | 4 | -6/+5 | |
| | | ||||||
* | | make analysis sync | Aleksey Kladov | 2018-10-15 | 4 | -19/+37 | |
| | | ||||||
* | | Tweak writable root API | Aleksey Kladov | 2018-10-15 | 2 | -11/+8 | |
| | | ||||||
* | | remove resolver from world | Aleksey Kladov | 2018-10-15 | 1 | -2/+0 | |
| | | ||||||
* | | Drop dead code | Aleksey Kladov | 2018-10-15 | 4 | -401/+0 | |
| | | ||||||
* | | fix tests | Aleksey Kladov | 2018-10-15 | 4 | -12/+21 | |
| | | ||||||
* | | Switch to the master of salsa | Aleksey Kladov | 2018-10-15 | 3 | -7/+8 | |
| | | ||||||
* | | migrate modue map to salsa | Aleksey Kladov | 2018-10-15 | 5 | -165/+172 | |
| | | ||||||
* | | start salsa migration | Aleksey Kladov | 2018-10-15 | 7 | -92/+221 | |
| | | ||||||
* | | remove our own copy of salsa | Aleksey Kladov | 2018-10-15 | 3 | -471/+0 | |
| | | | | | | | | salsa-rs/salsa is faster and more type safe | |||||
* | | add salsa dep, break the world | Aleksey Kladov | 2018-10-15 | 1 | -2/+1 | |
| | | ||||||
* | | regenerate | Aleksey Kladov | 2018-10-15 | 1 | -1/+1 | |
| | | ||||||
* | | Parse crate paths in expressions | Aleksey Kladov | 2018-10-15 | 3 | -1/+45 | |
| | | ||||||
* | | migrate analysis and server to 2018 | Aleksey Kladov | 2018-10-15 | 21 | -36/+42 | |
| | | ||||||
* | | switch ra_cli to 2018 | Aleksey Kladov | 2018-10-15 | 1 | -0/+1 | |
| | | ||||||
* | | switch editor to 2018 | Aleksey Kladov | 2018-10-15 | 10 | -13/+14 | |
| | | ||||||
* | | switch base crates to 2018 | Aleksey Kladov | 2018-10-15 | 3 | -0/+3 | |
| | | ||||||
* | | Run cargo fix | Aleksey Kladov | 2018-10-15 | 24 | -44/+44 | |
| | | ||||||
* | | Merge #127 | bors[bot] | 2018-10-15 | 5 | -77/+185 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 127: Improve folding r=matklad a=aochagavia I was messing around with adding support for multiline comments in folding and ended up changing a bunch of other things. First of all, I am not convinced of folding groups of successive items. For instance, I don't see why it is worthwhile to be able to fold something like the following: ```rust use foo; use bar; ``` Furthermore, this causes problems if you want to fold a multiline import: ```rust use foo::{ quux }; use bar; ``` The problem is that now there are two possible folds at the same position: we could fold the first use or we could fold the import group. IMO, the only place where folding groups makes sense is when folding comments. Therefore I have **removed folding import groups in favor of folding multiline imports**. Regarding folding comments, I made it a bit more robust by requiring that comments can only be folded if they have the same flavor. So if you have a bunch of `//` comments followed by `//!` comments, you will get two separate fold groups instead of a single one. Finally, I rewrote the API in such a way that it should be trivial to add new folds. You only need to: * Create a new FoldKind * Add it to the `fold_kind` function that converts from `SyntaxKind` to `FoldKind` Fixes #113 Co-authored-by: Adolfo Ochagavía <[email protected]> | |||||
| * | | Improve tests | Adolfo Ochagavía | 2018-10-13 | 2 | -30/+63 | |
| | | | ||||||
| * | | Only fold groups of similar comments | Adolfo Ochagavía | 2018-10-13 | 2 | -28/+31 | |
| | | | ||||||
| * | | Cleanup fold code and split logic to fold single elements | Adolfo Ochagavía | 2018-10-12 | 4 | -40/+112 | |
| | | | ||||||
| * | | Fold multiline comments | Adolfo Ochagavía | 2018-10-12 | 1 | -19/+19 | |
| |/ | ||||||
* | | A FnDescriptor shouldn't exist without a name | Jeremy A. Kolb | 2018-10-12 | 3 | -49/+47 | |
| | | ||||||
* | | Regenerate | Jeremy A. Kolb | 2018-10-12 | 1 | -1/+2 | |
| | | ||||||
* | | Language Server: textDocument/signatureHelp | Jeremy A. Kolb | 2018-10-11 | 10 | -12/+316 | |
|/ | | | | | | | | | | Implements a pretty barebones function signature help mechanism in the language server. Users can use `Analysis::resolve_callback()` to get basic information about a call site. Fixes #102 | |||||
* | Merge #122 | bors[bot] | 2018-10-11 | 19 | -49/+56 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | 122: Use rustc-hash crate r=matklad a=mominul Replace std's HashMap, HashSet with FxHashMap and FxHashSet. Closes #121 Thanks! Co-authored-by: Muhammad Mominul Huque <[email protected]> | |||||
| * | Replace HashMap, HashSet with FxHashMap and FxHashSet | Muhammad Mominul Huque | 2018-10-11 | 19 | -49/+56 | |
| | | ||||||
* | | Merge #116 | bors[bot] | 2018-10-11 | 4 | -58/+199 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | 116: Collapse comments upon join r=matklad a=aochagavia Todo: - [x] Write tests - [x] Resolve fixmes - [x] Implement `comment_start_length` using the parser I left a bunch of questions as fixmes. Can someone take a look at them? Also, I would love to use the parser to calculate the length of the leading characters in a comment (`//`, `///`, `//!`, `/*`), so any hints are greatly appreciated. Co-authored-by: Adolfo Ochagavía <[email protected]> Co-authored-by: Adolfo Ochagavía <[email protected]> | |||||
| * | Remove smart multiline comment join | Adolfo Ochagavía | 2018-10-11 | 1 | -22/+23 | |
| | | ||||||
| * | Add tests | Adolfo Ochagavía | 2018-10-11 | 1 | -0/+56 | |
| | | ||||||
| * | Remove nesting | Adolfo Ochagavía | 2018-10-11 | 1 | -75/+68 | |
| | | ||||||
| * | Use Comment wrapper | Adolfo Ochagavía | 2018-10-11 | 4 | -36/+78 | |
| | | ||||||
| * | Collapse comments upon join | Adolfo Ochagavía | 2018-10-10 | 1 | -15/+64 | |
| | | ||||||
* | | Merge #118 | bors[bot] | 2018-10-11 | 1 | -15/+3 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 118: Remove error publishing through publishDecorations r=matklad a=aochagavia The errors are already reported by `publishDiagnostics` Closes #109 Co-authored-by: Adolfo Ochagavía <[email protected]> | |||||
| * | | Report errors only once | Adolfo Ochagavía | 2018-10-10 | 1 | -14/+3 | |
| | | | ||||||
| * | | Remove error publishing through publishDecorations | Adolfo Ochagavía | 2018-10-10 | 1 | -1/+0 | |
| |/ | ||||||
* | | Update crates/ra_syntax/src/ast/generated.rs | Reinier Maas | 2018-10-10 | 1 | -32/+64 | |
| | | | | | | | | effect of running cargo gen-kinds | |||||
* | | Update generated.rs.tera | Reinier Maas | 2018-10-10 | 1 | -2/+1 | |
|/ | | | Removing `-` for #114 | |||||
* | Merge #106 | bors[bot] | 2018-10-09 | 7 | -4/+169 | |
|\ | | | | | | | | | | | | | | | 106: Add on-enter handler r=matklad a=matklad Now, typing doc comments is much more pleasant Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | Add on-enter handler | Aleksey Kladov | 2018-10-09 | 7 | -4/+169 | |
| | | | | | | | | Now, typing doc comments is much more pleasant | |||||
* | | Switch to absolute offsets for extend comment word | Aleksey Kladov | 2018-10-09 | 1 | -4/+13 | |
|/ | ||||||
* | Prepare gen_lsp_server for publishing | Aleksey Kladov | 2018-10-09 | 4 | -17/+88 | |
| | ||||||
* | Attach comments smartly | Aleksey Kladov | 2018-10-08 | 4 | -24/+97 | |
| | ||||||
* | replace loop with iterators | Aleksey Kladov | 2018-10-08 | 1 | -6/+7 | |
| |