aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/runnables.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove hir krate methodsAramis Razzaghipour2021-05-241-1/+1
|
* internal: fix naming polarityAleksey Kladov2021-04-301-3/+3
| | | | | Type Constructors have *parameters*, when they are substituted with type *arguments*, we have a type.
* Merge #8267bors[bot]2021-03-311-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8267: Adding gifs and screenshots for features in manual r=matklad a=MozarellaMan For #6539 This includes most of gif or screenshot examples of most items in the "Features" header. With the exceptions of: - **On Typing Assists** - couldn't get it to work for a demo, I'm probably missing something? - **Structural search and replace** - looked to be already a visual example of the feature - **Workspace symbol** - wasn't sure how best to show this, all of the examples maybe? Also wasn't sure of the best code example to show it off - **Semantic Syntax Highlighting** - seemed obvious enough to not need a screenshot, but I could easily add this All the gifs/pngs are hosted in this [comment](https://github.com/rust-analyzer/rust-analyzer/issues/6539#issuecomment-809574840). Please let me know if any of them aren't suitable (and why) and I'll improve it! Or if you don't like the theme/font Co-authored-by: Ayomide Bamidele <[email protected]>
| * Gifs and screenshots for features in manualAyomide Bamidele2021-03-311-0/+1
| |
* | Rename target_ty to self_tyLukas Wirth2021-03-291-1/+1
|/
* Ignore main functions not in root moduleivan7702021-03-261-1/+7
|
* Show item info when hovering intra doc linksLukas Wirth2021-03-231-27/+1
|
* Better handling of block doc commentsLukas Wirth2021-03-171-2/+46
|
* Upgrade rowanAleksey Kladov2021-03-161-2/+1
| | | | Notably, new rowan comes with support for mutable syntax trees.
* move Semantics::visit_file_defs to ide_db::helpersLukas Wirth2021-03-151-1/+2
|
* Introduce Semantics::visit_file_defsLukas Wirth2021-03-151-39/+20
|
* Don't drop type params in doc-test pathsLukas Wirth2021-03-141-4/+51
|
* Merge #7799bors[bot]2021-03-131-6/+338
|\ | | | | | | | | | | | | | | | | | | | | | | | | 7799: Related tests r=matklad a=vsrs ![tests](https://user-images.githubusercontent.com/62505555/109397453-a9013680-7947-11eb-8b11-ac03079f7645.gif) This adds an ability to look for tests for the item under the cursor: function, constant, data type, etc The LSP part is bound to change. But the feature itself already works and I'm looking for a feedback :) Co-authored-by: vsrs <[email protected]>
| * Add `Feature: Related Tests` commentvsrs2021-03-111-0/+13
| |
| * Apply review suggestionsvsrs2021-03-111-2/+5
| |
| * Remove erroneous commentvsrs2021-02-271-10/+0
| |
| * Add runnables::related_testsvsrs2021-02-271-6/+332
| |
* | Use upstream cov-markLaurențiu Nicola2021-03-081-4/+4
| |
* | Fix some warningsLaurențiu Nicola2021-03-051-1/+1
|/
* 7526: Rename crate assists to ide_assists.Chetan Khilosiya2021-02-221-1/+1
|
* Merge #7353bors[bot]2021-01-221-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7353: Add LifetimeParam and ConstParam to CompletionItemKind r=matklad a=Veykril Adds `LifetimeParam` and `ConstParam` to `CompletionItemKind` and maps them both to `TypeParam` in the protocol conversion as there are no equivalents, so nothing really changes there. `ConstParam` could be mapped to `Const` I guess but I'm split on whether that would be better? Additions were solely inspired by (the single) test output for const params. Also sorts the variants of `CompletionItemKind` and its to_proto match. Co-authored-by: Lukas Wirth <[email protected]>
| * Move SymbolKind to ide_dbLukas Wirth2021-01-201-2/+2
| |
* | Treat BlockExpr as a potential module originJonas Schievink2021-01-201-0/+1
| |
* | Avoid intermediate collectionsAleksey Kladov2021-01-201-26/+20
| |
* | Don't show runnable suggestions for other filesAleksey Kladov2021-01-201-3/+32
|/ | | | | It't be actually great to have these once we have run anything dialog, but for run the thing at point it makes sense to show a limited set.
* Support runnables in macrosEdwin Cheng2021-01-191-67/+135
|
* Goto for inner doc links works for module inner doc commentsAleksey Kladov2021-01-111-14/+23
|
* CleanupAleksey Kladov2021-01-101-35/+40
|
* Change <|> to $0 - RebaseKevaundray Wedderburn2021-01-071-9/+9
|
* More maintainable configAleksey Kladov2021-01-061-18/+17
| | | | | | | Rather than eagerly converting JSON, we losslessly keep it as is, and change the shape of user-submitted data at the last moment. This also allows us to remove a bunch of wrong Defaults
* Add support for Rust 2021.Mara Bos2021-01-011-1/+1
|
* Don't split path separators apart in doctest runnablesLukas Wirth2020-12-251-1/+39
|
* Align code_model name with ungrammarAleksey Kladov2020-12-201-1/+1
|
* Reduce test verbosityAleksey Kladov2020-12-181-169/+32
|
* NavTarget doesn't assume that it points to a symbolAleksey Kladov2020-12-181-22/+54
|
* Don't expose SyntaxKind from IDE APIAleksey Kladov2020-12-181-24/+28
| | | | | | SyntaxKind is somewhat of an internal type, but IDE is using it to basically specify an icon. Let's have a dedicated entity for this instead.
* Rewrite doctest runnablesAleksey Kladov2020-12-171-88/+83
| | | | Handle more cases in a generic way without copy-pasting code.
* Minor code styleAleksey Kladov2020-12-171-27/+19
|
* Make `Attrs::from_attrs_owner` privateJonas Schievink2020-12-171-11/+9
|
* Rename ImplDef -> ImplAleksey Kladov2020-12-171-1/+1
| | | | | | We used to have `Def` suffix for all symbols, but we moved off from that. `FunctionDef` isn't better than `Function`. Looks like we've forgot to change `Impl` though!
* Use Attrs::docs in runnables instead of DocCommentsOwnerLukas Wirth2020-12-111-9/+9
|
* Add **Ignore Test** assistAleksey Kladov2020-11-171-16/+3
|
* add doctest runnables on struct #6356Benjamin Coenen2020-10-271-1/+1
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* add doctest runnables on struct #6356Benjamin Coenen2020-10-271-3/+67
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* Emit better #[cfg] diagnosticsJonas Schievink2020-10-221-39/+45
|
* rename mock_analysis -> fixtureAleksey Kladov2020-10-021-2/+2
|
* Get rid of MockAnalysisAleksey Kladov2020-10-021-20/+20
|
* Do not show references CodeLens for tests.vsrs2020-09-291-1/+1
|
* Improve support for code block attributesLeón Orell Valerian Liehr2020-08-261-9/+99
|
* Omit lenses for not runnable doctestsKirill Bulatov2020-08-221-3/+23
|