Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Merge #6775 | bors[bot] | 2020-12-09 | 1 | -2/+3 | |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | 6775: Fix MissingFields DiagnosticFix trigger range r=lnicola a=Veykril Fixes #5950 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | Fix MissingFields DiagnosticFix trigger range | Lukas Wirth | 2020-12-09 | 1 | -2/+3 | |
| |/ | ||||||
* | | Merge #6774 | bors[bot] | 2020-12-09 | 1 | -2/+2 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 6774: Increment recursion count in Expander only on success r=lnicola a=Veykril Fixes #6764 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | Properly decrement recursion count in Expander | Lukas Wirth | 2020-12-09 | 1 | -2/+2 | |
| |/ | ||||||
* | | Fix `concat!` with integer literals | Jonas Schievink | 2020-12-08 | 1 | -8/+34 | |
| | | ||||||
* | | Better error when a proc macro panics | Jonas Schievink | 2020-12-08 | 1 | -1/+2 | |
| | | ||||||
* | | Merge #6761 | bors[bot] | 2020-12-08 | 5 | -112/+354 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6761: Make config.rs a single source of truth for configuration. r=matklad a=matklad Configuration is editor-independent. For this reason, we pick JSON-schema as the repr of the source of truth. We do specify it using rust-macros and some quick&dirty hackery though. The idea for syncing truth with package.json is to just do that manually, but there's a test to check that they are actually synced. I'll add something like `rust-analyzer --config-schema` in a follow-up commit. Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | | Make config.rs a single source of truth for configuration. | Aleksey Kladov | 2020-12-08 | 5 | -112/+354 | |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configuration is editor-independent. For this reason, we pick JSON-schema as the repr of the source of truth. We do specify it using rust-macros and some quick&dirty hackery though. The idea for syncing truth with package.json is to just do that manually, but there's a test to check that they are actually synced. There's CLI to print config's json schema: $ rust-analyzer --print-config-schema We go with a CLI rather than LSP request/response to make it easier to incorporate the thing into extension's static config. This is roughtly how we put the thing in package.json. | |||||
* | | Fix logic for determining macro calls | Jonas Schievink | 2020-12-08 | 1 | -9/+7 | |
| | | | | | | | | | | | | I believe this currently goes back all the way to the initial user-written call, but that seems better than the current broken behavior. | |||||
* | | Use `original_file_range` in `TestDB` | Jonas Schievink | 2020-12-08 | 1 | -9/+3 | |
| | | ||||||
* | | Make `original_range` a method on `InFile<&SyntaxNode>` | Jonas Schievink | 2020-12-08 | 5 | -89/+88 | |
| | | ||||||
* | | Add test for `$crate` in builtin macros | Jonas Schievink | 2020-12-08 | 1 | -0/+28 | |
| | | | | | | | | Fixes #6716 | |||||
* | | Handle macros in `TestDB::check_diagnostics` | Jonas Schievink | 2020-12-08 | 1 | -2/+9 | |
|/ | ||||||
* | Merge #6760 | bors[bot] | 2020-12-08 | 2 | -15/+17 | |
|\ | | | | | | | | | | | | | | | | | 6760: Open Cargo.toml opens more specific manifest r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | Open Cargo.toml opens more specific manifest | Aleksey Kladov | 2020-12-08 | 2 | -10/+12 | |
| | | ||||||
| * | cleanup: match over unwrap | Aleksey Kladov | 2020-12-08 | 1 | -5/+5 | |
| | | ||||||
* | | Merge #6750 | bors[bot] | 2020-12-08 | 12 | -213/+137 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6750: Remove documentation query, move doc handling to attributes r=matklad a=Veykril Fixes #3182 Removes the documentation query in favor of `Attrs::docs`. Attrs already handlded doc comments partially but the alloc saving check was wrong so it only worked when other attributes existed as well. Unfortunately the `new` constructor has to do an intermediate allocation now because we need to keep the order of mixed doc attributes and doc comments. I've also partially adjusted the `hover` module to have its tests check the changes, it still has some `HasSource` trait usage due to the `ShortLabel` trait usage, as that is only implemented on the Ast parts and not the Hir, should this ideally be implemented for the Hir types as well?(would be a follow up PR of course) Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | Simplify ast::Comment api surface | Lukas Wirth | 2020-12-08 | 1 | -10/+15 | |
| | | | ||||||
| * | | Escape string literals in Attr::from_src | Lukas Wirth | 2020-12-08 | 2 | -12/+6 | |
| | | | ||||||
| * | | Replace Arc<[str]> with String in attr::Documentation | Lukas Wirth | 2020-12-07 | 1 | -2/+2 | |
| | | | ||||||
| * | | Keep doc attribute order | Lukas Wirth | 2020-12-07 | 3 | -55/+61 | |
| | | | ||||||
| * | | Remove raw pre and suffixes from string attr literals | Lukas Wirth | 2020-12-07 | 1 | -2/+5 | |
| | | | ||||||
| * | | Remove hir_def/docs.rs module | Lukas Wirth | 2020-12-07 | 6 | -114/+63 | |
| | | | ||||||
| * | | Remove documentation query | Lukas Wirth | 2020-12-07 | 6 | -59/+26 | |
| | | | ||||||
* | | | Tweak the search query params for better lookup speed | Kirill Bulatov | 2020-12-08 | 2 | -32/+38 | |
| | | | ||||||
* | | | Better config name | Kirill Bulatov | 2020-12-08 | 5 | -13/+13 | |
| | | | ||||||
* | | | Disable the completion for no corresponding client resolve capabilities | Kirill Bulatov | 2020-12-07 | 11 | -160/+84 | |
| | | | ||||||
* | | | Document the feature | Kirill Bulatov | 2020-12-07 | 1 | -0/+43 | |
| | | | ||||||
* | | | Simplify | Kirill Bulatov | 2020-12-07 | 4 | -36/+35 | |
| | | | ||||||
* | | | Check lsp completions' edits for disjointness | Kirill Bulatov | 2020-12-07 | 2 | -1/+176 | |
| | | | ||||||
* | | | Less panic, more tests | Kirill Bulatov | 2020-12-07 | 3 | -11/+62 | |
| | | | ||||||
* | | | Fix the profiling label | Kirill Bulatov | 2020-12-07 | 1 | -1/+1 | |
| | | | ||||||
* | | | Use stateless completion resolve | Kirill Bulatov | 2020-12-07 | 6 | -71/+124 | |
| | | | ||||||
* | | | Remove the state | Kirill Bulatov | 2020-12-07 | 7 | -107/+37 | |
| | | | ||||||
* | | | Make completion resolve async | Kirill Bulatov | 2020-12-07 | 7 | -53/+116 | |
| | | | ||||||
* | | | Simplify import edit calculation | Kirill Bulatov | 2020-12-07 | 12 | -111/+114 | |
| | | | ||||||
* | | | Remove redundant code | Kirill Bulatov | 2020-12-07 | 8 | -103/+80 | |
| | | | ||||||
* | | | Refactor the code | Kirill Bulatov | 2020-12-07 | 11 | -34/+48 | |
| | | | ||||||
* | | | Add eager resolve capability | Kirill Bulatov | 2020-12-07 | 8 | -13/+43 | |
| | | | ||||||
* | | | Better support client completion resolve caps | Kirill Bulatov | 2020-12-07 | 5 | -105/+120 | |
| | | | ||||||
* | | | Properly fill client completion resolve capabilities data | Kirill Bulatov | 2020-12-07 | 5 | -5/+56 | |
| | | | ||||||
* | | | Resolve import inserts better | Kirill Bulatov | 2020-12-07 | 2 | -38/+91 | |
| | | | ||||||
* | | | Remove unnecessary leftovers | Kirill Bulatov | 2020-12-07 | 2 | -3/+0 | |
| | | | ||||||
* | | | Working resolve completion imports prototype | Kirill Bulatov | 2020-12-07 | 9 | -46/+78 | |
| | | | ||||||
* | | | Draft the new lsp handler | Kirill Bulatov | 2020-12-07 | 5 | -24/+52 | |
| |/ |/| | ||||||
* | | Apply environment set by build scripts | Jonas Schievink | 2020-12-07 | 2 | -2/+20 | |
| | | ||||||
* | | Merge #6752 | bors[bot] | 2020-12-07 | 1 | -0/+5 | |
|\ \ | |/ |/| | | | | | | | | | | | 6752: Pass `--target` when loading out dirs from check r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | Pass `--target` when loading out dirs from check | Jonas Schievink | 2020-12-07 | 1 | -0/+5 | |
| | | ||||||
* | | Merge #6719 | bors[bot] | 2020-12-07 | 5 | -23/+23 | |
|\ \ | |/ |/| | | | | | | | | | | | 6719: Use items can also have doc comments r=matklad a=Veykril Prior to this change modules show more docs than they have cause they inherit the docs from documented use items inside of them. Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Use items can also have doc comments | Lukas Wirth | 2020-12-04 | 5 | -23/+23 | |
| | |