about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-01-01Simplify completion config path resolutionsLukas Wirth-94/+49
2025-01-01Reduce the default autoimport exclusion listLukas Wirth-186/+90
2025-01-01Allow flyimporting excluded trait items if there is an exact match in the nameChayim Refael Friedman-3/+51
I.e. with `fn foo()`, don't complete at `x.fo|`, but complete (with imports) for `x.foo|`, since this is less likely to have false positives. I opted to only do that for flyimport, even though for basic imports there can also be snippet completion (completing the params list for a method), since this is less universally applicable and seems not so useful.
2025-01-01Allow excluding specific traits from completionChayim Refael Friedman-82/+1011
To be accurate, only their methods are excluded, the trait themselves are still available. I also excluded a bunch of std traits by default. Some less opinionated, like `AsRef`, which should never be used directly except in generic scenarios (and won't be excluded there), some more opinionated, like the ops traits, which I know some users sometimes want to use directly. Either way it's configurable. It should be pretty easy to extend support to excluding only specific methods, but I didn't do that currently. Traits configured to be excluded are resolved in each completion request from scratch. If this proves too expensive, it is easy enough to cache them in the DB.
2024-12-31Merge pull request #18802 from roife/fix-18800Lukas Wirth-2/+1
fix: incorrect file_id used for ranges in outgoing calls
2024-12-31Merge pull request #18805 from Veykril/push-pzurvxvoolxsLukas Wirth-18/+12
internal: Implement `<RaSpanServer as SourceFile>::eq`
2024-12-31fix: incorrect file_id used for ranges in outgoing callsroife-2/+1
2024-12-31Implement `<RaSpanServer as SourceFile>::eq`Lukas Wirth-9/+9
2024-12-31Remove recursion_limit special casing in testsLukas Wirth-9/+3
2024-12-31Merge pull request #18758 from mgsloan/scip-unique-symbolsLukas Wirth-323/+618
Improve SCIP symbols
2024-12-31Merge pull request #18801 from roife/fix-18799Lukas Wirth-3/+57
feat: show go-to-type-def actions for subst when hovering
2024-12-31feat: show go-to-type-def actions for subst when hoveringroife-3/+57
2024-12-30Move `container_to_definition` function into `enclosing_definition`Michael Sloan-19/+15
2024-12-30Remove erroneous omit of inherent implsMichael Sloan-9/+0
Should have been included in 34dc94bb2d05def8b88739a9382b127feb1a35a0
2024-12-30TODO -> FIXMEMichael Sloan-10/+12
2024-12-30Make `impl HirDisplay for TraitRef` provide just the trait typeMichael Sloan-68/+24
2024-12-30Merge pull request #18795 from dfireBird/fix-hover-renderLukas Wirth-24/+65
Fix render of literal to be rendered in codeblock
2024-12-30Fix render of literal to be rendered in codeblockdfireBird-24/+65
2024-12-30Merge pull request #18790 from ChayimFriedman2/proper-makeLukas Wirth-60/+1672
internal: Create a quoting mechanism instead of textual AST make
2024-12-30Merge pull request #18794 from 1hakusai1/fix_fill_match_arm_in_tokio_mainLukas Wirth-9/+7
Fix bug of "fill match arm" action in tokio::main macro
2024-12-30Merge pull request #18793 from ChayimFriedman2/fixupLukas Wirth-14/+14
minor: Remove unneeded conversions
2024-12-30Fix bug of "fill match arm" action in tokio::main macro1hakusai1-9/+7
https://github.com/rust-lang/rust-analyzer/issues/18027
2024-12-30Remove unneeded conversionsChayim Refael Friedman-14/+14
2024-12-30Merge pull request #18792 from Veykril/push-wonkvzozmmwzLukas Wirth-315/+345
Decouple proc-macro server protocol from the server implementation
2024-12-30Merge pull request #18791 from roife/fix-18786Lukas Wirth-91/+126
fix: avoid generating colliding names in extract_variable
2024-12-30Move proc-macro protocol into legacy moduleLukas Wirth-33/+38
2024-12-30Cleanup proc-macro dylib handlingLukas Wirth-74/+74
2024-12-30Decouple proc-macro server protocol from the server implementationLukas Wirth-218/+243
2024-12-30fix: avoid generating colliding names in extract_variableroife-91/+126
2024-12-30Move some more AST makers to the quote macroChayim Refael Friedman-53/+58
And implement addons as necessary. There are many more makers to be moved, and I'm not completely satisfied with this (due to the ease of making a mistake in the AST structure, and slightly less but also because of the need to remember whitespaces), but this is already enough to see how this will look like.
2024-12-30Create a `quote!`-like API for crafting AST nodesChayim Refael Friedman-9/+182
Instead of messing with textual `make`. And port one `make` helper to it, for the sake of testing.
2024-12-30Add a function to convert a SyntaxKind to its text, where possibleChayim Refael Friedman-0/+341
This will also help for the make's quote macro.
2024-12-30Generate a method for static retrieval of the SyntaxKind of a node, where ↵Chayim Refael Friedman-0/+1093
possible This will help for the quote macro for `ast::make`.
2024-12-29Merge pull request #18789 from Veykril/push-sypxzqsvmzzpLukas Wirth-2/+23
fix: Fix invalid `-O` flag used by cfg discovery
2024-12-29fix: Fix invalid `-O` flag used by cfg discoveryLukas Wirth-2/+23
2024-12-29Merge pull request #18785 from Veykril/push-uvsqposqyvmoLukas Wirth-436/+438
Cleanup toolchain info fetching
2024-12-29Merge pull request #18787 from Veykril/push-uymlpukspxqrLukas Wirth-1/+5
Automatically cancel CI checks on new push to same PR
2024-12-29Inline toolchain_info moduleLukas Wirth-17/+19
2024-12-29Automatically cancel CI checks on new push to same PRLukas Wirth-1/+5
2024-12-29Merge pull request #18774 from Veykril/push-ysppqxpuknnwLukas Wirth-129/+1335
Implement parameter variance inference
2024-12-29Force a current dir to be supplied for rustc info fetchingLukas Wirth-25/+37
2024-12-29Split out `ProjectWorkspace::load_cargo`Lukas Wirth-142/+139
2024-12-29Enforce a current directory being set for spawned commandsLukas Wirth-75/+99
2024-12-29Cleanup toolchain info fetchingLukas Wirth-230/+197
2024-12-29Merge pull request #18784 from Veykril/push-pqtwsvquxotyLukas Wirth-1/+1
fix: Do not merge spans if they have different anchors
2024-12-29fix: Do not merge spans if they have different anchorsLukas Wirth-1/+1
2024-12-29Merge pull request #18779 from ChayimFriedman2/enum-variantLukas Wirth-39/+66
fix: Consider `Enum::Variant` even when it comes from a different crate
2024-12-29Describe variance resolution approach differences to rustcLukas Wirth-36/+27
2024-12-28Consider `Enum::Variant` even when it comes from a different crateChayim Refael Friedman-39/+66
2024-12-28Show variance of parameters on hoverLukas Wirth-12/+69