aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion/presentation.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-0/+676