aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/render
Commit message (Collapse)AuthorAgeFilesLines
* Show qualified variant pattern completionsLukas Wirth2021-02-091-1/+5
|
* Make `ModPath`'s representation privateJonas Schievink2021-02-041-2/+2
|
* More useful fn detail in completionAleksey Kladov2021-01-221-3/+4
| | | | | | | | | | | | | Detail should be rendered as shtort one line, just dumping fn header there is not useful, despite the fact that TS does this. The fact that this is a function should be indicated by the icon, the same goes for pub/const/async etc qualitfiers name is already present in the lable (and arg list should be a part of that, as in idea) But the return type is the small genuinerlly useful bit of info we can show here
* Partially unify SymbolKind and CompletionItemKindLukas Wirth2021-01-205-9/+14
|
* Show deprecated completions for deprecated traitsKirill Bulatov2021-01-183-3/+11
|
* Change <|> to $0 - RebaseKevaundray Wedderburn2021-01-073-16/+16
|
* Align config's API with usageAleksey Kladov2021-01-062-6/+4
| | | | The config now is mostly immutable, optimize for that.
* Handle case where detail doesn't exist without giving up on completionNick Spain2021-01-021-1/+1
| | | Co-authored-by: Aleksey Kladov <[email protected]>
* Make the result of Const, FunctionRender and TypeAliasRender constructors ↵Nick Spain2021-01-023-16/+13
| | | | | | optional They use source() which now returns an Option so they need to too.
* HasSource::source_old -> HasSource::source for places where proc-macros were ↵Nick Spain2021-01-021-12/+4
| | | | | | | | | | | | special cased In #6901 some special case handling for proc-macros was introduced to prevent panicing as they have no AST. Now the new HasSource::source method is used that returns an option. Generally this was a pretty trivial change, the only thing of much interest is that `hir::MacroDef` now implements `TryToNav` not `ToNav` as this allows us to handle `HasSource::source` now returning an option.
* Mark HasSource::source_old as deprecated but allow at all call sitesNick Spain2021-01-024-0/+4
|
* HasSource::source -> HasSource::source_oldNick Spain2021-01-024-4/+4
| | | | To start migrating HasSource::source to return an Option.
* Reduce some more code duplicationLukas Wirth2020-12-223-85/+41
|
* Insert snippet positions after fields names in record patternsLukas Wirth2020-12-211-1/+1
|
* Create non-exhaustive patterns for non_exhaustive attributed itemsLukas Wirth2020-12-201-3/+5
|
* Reduce code duplication in pattern completionLukas Wirth2020-12-201-34/+29
|
* Emit snippets for struct pattern completion if enabledLukas Wirth2020-12-201-10/+31
|
* Add completions for patternsLukas Wirth2020-12-201-0/+128
|
* Align code_model name with ungrammarAleksey Kladov2020-12-201-17/+9
|
* Temp fixes panic caused by no ast for proc-macroEdwin Cheng2020-12-181-0/+1
|
* Move to upstream `macro_rules!` modelJonas Schievink2020-12-151-3/+3
|
* Remove some redundant allocationsJeremy Kolb2020-12-121-1/+1
|
* Disable the completion for no corresponding client resolve capabilitiesKirill Bulatov2020-12-073-6/+3
|
* Simplify import edit calculationKirill Bulatov2020-12-073-12/+15
|
* Remove redundant codeKirill Bulatov2020-12-073-12/+3
|
* Refactor the codeKirill Bulatov2020-12-073-3/+12
|
* Add eager resolve capabilityKirill Bulatov2020-12-073-3/+3
|
* Place cursor correctly when completing assoc fns with selfAleksey Kladov2020-12-012-11/+43
|
* Fix typoAleksey Kladov2020-12-011-2/+2
|
* Type-safer API for dealing with parameter lists with optional selfAleksey Kladov2020-12-011-6/+10
|
* Group import data in a structKirill Bulatov2020-11-273-30/+17
|
* Extract the import code into the shared moduleKirill Bulatov2020-11-273-3/+4
|
* Profile completions betterKirill Bulatov2020-11-273-0/+3
|
* Avoid turning completion objects into buildersKirill Bulatov2020-11-163-8/+26
|
* Reuse existing element renderingKirill Bulatov2020-11-161-40/+32
|
* Add braces to functions and macrosKirill Bulatov2020-11-161-32/+40
|
* Get rid of do-er antipatternIgor Aleksanov2020-11-035-19/+54
|
* Add doc-comments to the new filesIgor Aleksanov2020-11-035-1/+15
|
* Move rendering tests to the render moduleIgor Aleksanov2020-11-033-0/+374
|
* Add TypeAliasRenderIgor Aleksanov2020-11-032-2/+47
|
* Add ConstRenderIgor Aleksanov2020-11-033-10/+53
|
* Introduce render moduleIgor Aleksanov2020-11-034-0/+392