aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion/presentation.rs
Commit message (Collapse)AuthorAgeFilesLines
* More consistent usage of fixturesAleksey Kladov2020-06-241-107/+110
|
* Trim at presentation layerYuki Kodama2020-05-251-1/+1
|
* Fix test to consider multiple underscoresYuki Kodama2020-05-251-7/+7
|
* Separate assertionsYuki Kodama2020-05-251-7/+65
|
* Reflect test caseYuki Kodama2020-05-251-7/+7
|
* Switch to new magic marksAleksey Kladov2020-05-201-12/+12
|
* Prioritize locals with correct typesAleksey Kladov2020-05-141-4/+54
|
* Better filtering of qualified enum variants in completionAleksey Kladov2020-04-291-8/+38
|
* Precompute expected type during completionAleksey Kladov2020-04-261-1/+1
|
* Fix broken testJonas Schievink2020-04-251-1/+1
|
* Don't add call parens when an fn type is expectedJonas Schievink2020-04-251-0/+56
|
* Rename StructField -> FieldAleksey Kladov2020-04-251-6/+1
|
* Convert tests to text-sizeAleksey Kladov2020-04-251-100/+100
|
* Better label for macros completionAleksey Kladov2020-04-241-34/+45
|
* Make sure that adding a snippet requires corresponding capabilityAleksey Kladov2020-04-241-19/+28
|
* Add test marksAleksey Kladov2020-04-241-0/+4
|
* Introduce ActiveParameterAleksey Kladov2020-04-241-3/+2
|
* Move tests to where they belongAleksey Kladov2020-04-241-0/+231
|
* RefactorAleksey Kladov2020-04-241-24/+18
|
* Restore CompletionItem immutabilityAleksey Kladov2020-04-241-25/+22
|
* More functionalAleksey Kladov2020-04-241-9/+16
|
* Merge branch 'master' of github.com:rust-analyzer/rust-analyzerBenjamin Coenen2020-04-211-0/+6
|\
| * Ignore proc-macro in completionEdwin Cheng2020-04-181-0/+6
| |
* | Improve autocompletion by looking on the type and nameBenjamin Coenen2020-04-211-4/+44
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
* | feat: improve dot completions with scoringBenjamin Coenen2020-04-171-0/+1
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
* | feat: improve dot completions with scoringBenjamin Coenen2020-04-161-1/+1
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
* | Improve autocompletion by looking on the type and nameBenjamin Coenen2020-04-111-1/+1
|/ | | | Signed-off-by: Benjamin Coenen <[email protected]>
* Don't insert !() if there's already someAleksey Kladov2020-04-071-3/+40
|
* Add parens for enumsAleksey Kladov2020-04-031-36/+158
|
* Generalize call parenthesis insertionAleksey Kladov2020-04-031-27/+46
|
* Better names for config structsAleksey Kladov2020-03-311-6/+6
|
* Start stdxAleksey Kladov2020-03-281-24/+21
| | | | This crate will hold everything to small to be worth publishing
* Don't use generic DB where a concrete one will doAleksey Kladov2020-03-131-3/+6
|
* Fix completion of HashMap::newFlorian Diebold2020-03-131-2/+4
| | | | | | | | | | | | | | | The `ty` function in code_model returned the type with placeholders for type parameters. That's nice for printing, but not good for completion, because placeholders won't unify with anything else: So the type we got for `HashMap` was `HashMap<K, V, T>`, which doesn't unify with `HashMap<?, ?, RandomState>`, so the `new` method wasn't shown. Now we instead return `HashMap<{unknown}, {unknown}, {unknown}>`, which does unify with the impl type. Maybe we should just expose this properly as variables though, i.e. we'd return something like `exists<type, type, type> HashMap<?0, ?1, ?2>` (in Chalk notation). It'll make the API more complicated, but harder to misuse. (And it would handle cases like `type TypeAlias<T> = HashMap<T, T>` more correctly.)
* Fix completion testsAleksey Kladov2020-03-121-0/+7
|
* Introduce completion test utilsAleksey Kladov2020-03-111-2/+2
|
* Add a test for disabled argument snippetsAleksey Kladov2020-03-111-2/+46
|
* Pull completion options up to the rust-analyzerAleksey Kladov2020-03-101-4/+1
|
* Introduce CompletionOptionsAleksey Kladov2020-03-101-9/+2
|
* Don't creat public APIs with typosAleksey Kladov2020-03-061-1/+1
|
* Trigger parameter info automaticallyAleksey Kladov2020-03-061-0/+1
| | | | See https://github.com/Microsoft/vscode/issues/64023
* Feature flag for arg snippetsAleksey Kladov2020-03-061-4/+13
|
* Fix comment orderAleksey Kladov2020-03-061-2/+2
|
* Skip self param when completing methodsAleksey Kladov2020-03-041-13/+45
|
* Support function's completion snippetAvishay Matayev2020-03-041-13/+21
| | | | | | | Note that `detail` was replced with `function_signature` to avoid calling `from` on FunctionSignature twice. I didn't add new tests because the current ones seem enough.
* Fix completion snippet for reexported functionsFlorian Diebold2020-03-031-4/+3
| | | | Fixes #3356.
* CleanupShotaro Yamada2020-02-191-5/+1
|
* add space before/after wrapping bracesadamrk2020-02-161-2/+2
|
* show names for record fields in enum completionadamrk2020-02-161-6/+95
|
* Use Name::missing consistentlyAleksey Kladov2019-11-271-4/+1
|