aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Implement StatusBarAleksey Kladov2020-07-024-4/+35
| | | |
* | | | Merge #5189bors[bot]2020-07-022-9/+207
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 5189: Record and suggest assoc. items of traits via ImportMap r=matklad a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/5115 Co-authored-by: Jonas Schievink <[email protected]>
| * | | Use SmolStrJonas Schievink2020-07-021-3/+4
| | | |
| * | | Fix testsJonas Schievink2020-07-021-1/+27
| | | |
| * | | Record and suggest trait items via ImportMapJonas Schievink2020-07-022-8/+179
| | | |
| | | |
| \ \ \
| \ \ \
| \ \ \
| \ \ \
| \ \ \
*-----. \ \ \ Merge #5089 #5161 #5184 #5185 #5186bors[bot]2020-07-028-19/+222
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5089: Disable auto-complete on comments r=matklad a=BGluth Resolves #4907 by disabling any auto-completion on comments. As flodiebold [pointed out](https://github.com/rust-analyzer/rust-analyzer/issues/4907#issuecomment-648439979), in the future we may want to support some form of auto-completion within doc comments, but for now it was suggested to just disable auto-completion on them entirely. The implementation involves adding a new field `is_comment` to `CompletionContext` and checking if the immediate token we auto-completed on is a comment. I couldn't see a case where we need to check any of the ancestors, but let me know if this is not sufficient. I also wasn't sure if it was necessary to add a new field to this struct, but I decided it's probably the best option if we want to potentially do auto-completion on doc comments in the future. Finally, the three tests I added should I think ideally not filter results by `CompletionKind::Keyword`, but if I want to get unfiltered results, I need access to a non-public function [get_all_completion_items](https://github.com/rust-analyzer/rust-analyzer/blob/9a4d02faf9c47f401b8756c3f7fcab2198f5f9cd/crates/ra_ide/src/completion/test_utils.rs#L32-L39) which I don't know if I should make public just for this. 5161: SSR: Add initial support for placeholder constraints r=matklad a=davidlattimore 5184: Always install required nightly extension if current one is not nightly r=matklad a=Veetaha This is weird, but having switched back to stable by uninstalling the extension appears that vscode doesn't destroy the `PersistentState` and thus changing to `nightly` channel doesn't work because the last check for nightly extension was less than 1 hour ago. The simple solution is to skip this check if we know that the current extension version is not nightly. 5185: Force showing extension activation error pop-up notification r=matklad a=Veetaha Fixes https://github.com/rust-analyzer/rust-analyzer/issues/5091 5186: fix: correct pd/ppd/tfn/tmod completion doc r=matklad a=fannheyward https://github.com/rust-analyzer/rust-analyzer/blob/a33eefa3b26000b3018e6bb873f18dbe15ab4ab7/crates/ra_ide/src/completion/complete_snippet.rs#L23-L24 Co-authored-by: BGluth <[email protected]> Co-authored-by: David Lattimore <[email protected]> Co-authored-by: Veetaha <[email protected]> Co-authored-by: Heyward Fann <[email protected]>
| | | | * | | | fix: correct pd/ppd/tfn/tmod completion docHeyward Fann2020-07-021-4/+4
| |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | https://github.com/rust-analyzer/rust-analyzer/blob/a33eefa3b26000b3018e6bb873f18dbe15ab4ab7/crates/ra_ide/src/completion/complete_snippet.rs#L23
| | * | | | | SSR: Use T! instead of SyntaxKind::* where possibleDavid Lattimore2020-07-021-11/+11
| | | | | | |
| | * | | | | SSR: Add initial support for placeholder constraintsDavid Lattimore2020-07-015-6/+155
| | | | | | |
| * | | | | | Auto-completion no longer occurs on commentsBGluth2020-07-011-1/+5
| | | | | | |
| * | | | | | Added tests for no auto-completion on commentsBGluth2020-07-011-0/+50
|/ / / / / /
* | | | | | Merge #5149bors[bot]2020-07-018-71/+140
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5149: Implement Chalk variable kinds r=flodiebold a=flodiebold This means we need to keep track of the kinds (general/int/float) of variables in `Canonical`, which requires some more ceremony. (It also exposes some places where we're not really dealing with canonicalization correctly -- another thing to be cleaned up when we switch to using Chalk's types directly.) Should fix the last remaining issue of #2534. Co-authored-by: Florian Diebold <[email protected]>
| * | | | | Implement Chalk variable kindsFlorian Diebold2020-07-018-71/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This means we need to keep track of the kinds (general/int/float) of variables in `Canonical`, which requires some more ceremony. (It also exposes some places where we're not really dealing with canonicalization correctly -- another thing to be cleaned up when we switch to using Chalk's types directly.) Should fix the last remaining issue of #2534.
* | | | | | Merge #5179bors[bot]2020-07-012-1/+25
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5179: ItemTree: Lower fields despite invalid type r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/5147 bors r+ Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | | ItemTree: Lower fields despite invalid typeJonas Schievink2020-07-012-1/+25
| | | | | | |
* | | | | | | Merge #5174bors[bot]2020-07-016-71/+71
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5174: Colorize more test fixtures r=matklad a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]>
| * | | | | | Colorize more test fixturesLaurențiu Nicola2020-07-016-71/+71
| | | | | | |
* | | | | | | Merge #5175bors[bot]2020-07-018-128/+148
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5175: More memory-efficient impl collection r=matklad a=jonas-schievink This saves roughly 90 MB in `ImplsFromDepsQuery`, which used to copy the list of all impls from libcore into *every* crate in the graph. It also stops collecting inherent impls from dependencies entirely, as those can only be located within the crate defining the self type. Co-authored-by: Jonas Schievink <[email protected]>
| * | | | | | | Split `CrateImplDefs` in inherent and trait implsJonas Schievink2020-07-017-118/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the intention of inherent vs. trait impls somewhat more clear and also fixes (?) an issue where trait impls with an unresolved trait were added as inherent impls instead (hence the test changes).
| * | | | | | | Don't recursively call `impls_from_deps`Jonas Schievink2020-07-011-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It creates a big map and duplicates lots of impls that are then left lying around
| * | | | | | | Add a transitive deps iterator to `CrateGraph`Jonas Schievink2020-07-011-0/+17
| | | | | | | |
* | | | | | | | Merge #5178bors[bot]2020-07-014-318/+329
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5178: Fold multiline calls r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | | | | Fold multiline callsAleksey Kladov2020-07-013-105/+114
| | | | | | | |
| * | | | | | | Update file structure testsAleksey Kladov2020-07-011-213/+215
| | | | | | | |
* | | | | | | | Update expand macro testsAleksey Kladov2020-07-011-126/+115
|/ / / / / / /
* | | | | | | Merge #5167bors[bot]2020-07-017-39/+39
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5167: Reuse Semantics instances r=matklad a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]>
| * | | | | | | Reuse Semantics instancesLaurențiu Nicola2020-07-017-39/+39
| | | | | | | |
* | | | | | | | Merge #5173bors[bot]2020-07-013-5/+8
|\ \ \ \ \ \ \ \ | | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5173: Automatically reload project on config change r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | | | | Automatically reload project on config changeAleksey Kladov2020-07-013-5/+8
| | | | | | | |
* | | | | | | | Merge #5171bors[bot]2020-07-012-6/+8
|\| | | | | | | | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5171: Better account for project reload r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | | | Better account for project reloadAleksey Kladov2020-07-012-6/+8
| | | | | | |
* | | | | | | Merge #5169bors[bot]2020-07-012-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5169: Add reload workspace command r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | | | Add reload workspace commandAleksey Kladov2020-07-012-4/+4
| |/ / / / /
* / / / / / Log flycheck commandAleksey Kladov2020-07-011-0/+1
|/ / / / /
* | | | | Use the selection range when resolving call hierarchy itemsJeremy Kolb2020-07-012-2/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a test in call_hierarchy that already passed Fixes #5103
* | | | | Merge #5162bors[bot]2020-07-012-57/+204
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5162: Try to reduce Semantics monomorphisations r=matklad a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]>
| * | | | | Make less code genericLaurențiu Nicola2020-07-011-69/+47
| | | | | |
| * | | | | Try to reduce Semantics monomorphisationsLaurențiu Nicola2020-07-012-24/+193
| | | | | |
* | | | | | Dont show empty progress for empty workspacesAleksey Kladov2020-07-011-16/+18
| | | | | |
* | | | | | Unify magic env var nameAleksey Kladov2020-07-011-1/+1
| | | | | |
* | | | | | Move parser specific tests utils to parser testsAleksey Kladov2020-07-012-102/+104
| | | | | |
* | | | | | Merge #5159bors[bot]2020-07-019-34/+87
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5159: Don't fail expect tests in rewrite mode r=matklad a=matklad bors r+ Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | | Move test data to test_data directoryAleksey Kladov2020-07-018-7/+7
| | | | | |
| * | | | | Add file support to expectAleksey Kladov2020-07-013-21/+63
| | | | | |
| * | | | | CleanupAleksey Kladov2020-07-011-13/+23
| | | | | |
| * | | | | Don't fail tests when updating snapshotAleksey Kladov2020-07-011-8/+9
| | | | | |
* | | | | | Use the existing Semantics in auto_importLaurențiu Nicola2020-07-012-52/+48
| |_|/ / / |/| | | |
| | | | |
| \ \ \ \
*-. \ \ \ \ Merge #5154 #5157bors[bot]2020-07-0110-169/+291
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5154: Structured search debugging r=matklad a=davidlattimore Adds a "search" mode to the rust-analyzer binary that does structured search (SSR without the replace part). This is intended primarily for debugging why a bit of code isn't matching a pattern. 5157: Use dynamic dispatch in AstDiagnostic r=matklad a=lnicola Co-authored-by: David Lattimore <[email protected]> Co-authored-by: Laurențiu Nicola <[email protected]>
| | * | | | Use dynamic dispatch in AstDiagnosticLaurențiu Nicola2020-07-012-6/+6
| | | | | |
| * | | | | Structured search debuggingDavid Lattimore2020-07-018-163/+285
| | | | | |