Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add tests | Kirill Bulatov | 2020-09-09 | 1 | -0/+153 |
| | |||||
* | Properly handle mod.rs imports | Kirill Bulatov | 2020-09-09 | 1 | -47/+40 |
| | |||||
* | Complete semicolon when needed | Kirill Bulatov | 2020-09-09 | 6 | -26/+30 |
| | |||||
* | Properly reacto to keywords | Kirill Bulatov | 2020-09-09 | 6 | -4/+28 |
| | |||||
* | Less false positive completion candidates | Kirill Bulatov | 2020-09-09 | 1 | -44/+59 |
| | |||||
* | Properly handle nested submodules in the same file | Kirill Bulatov | 2020-09-09 | 1 | -70/+79 |
| | |||||
* | Move most of the logic into the completion module | Kirill Bulatov | 2020-09-09 | 2 | -23/+98 |
| | |||||
* | Finally cretae the mod completion module | Kirill Bulatov | 2020-09-09 | 3 | -17/+42 |
| | |||||
* | Properly handle special cases (binaries, mod.rs) | Kirill Bulatov | 2020-09-09 | 1 | -3/+1 |
| | |||||
* | Exclude special files | Kirill Bulatov | 2020-09-09 | 1 | -3/+0 |
| | |||||
* | Happy path implemented | Kirill Bulatov | 2020-09-09 | 1 | -1/+1 |
| | |||||
* | Better API | Kirill Bulatov | 2020-09-09 | 1 | -5/+4 |
| | |||||
* | First steps for mod<|> completion | Kirill Bulatov | 2020-09-09 | 1 | -2/+23 |
| | |||||
* | Document VS Code setting needed for on-typing assists | Aramis Razzaghipour | 2020-09-01 | 1 | -0/+8 |
| | |||||
* | :arrow_up: expect-test | Aleksey Kladov | 2020-08-28 | 8 | -7/+611 |
| | |||||
* | Minor | Aleksey Kladov | 2020-08-27 | 1 | -1/+2 |
| | |||||
* | Tease apart orthogonal concerns in markdown link rewriting | Aleksey Kladov | 2020-08-26 | 2 | -15/+230 |
| | | | | | | | | | | | | `hir` should know nothing about URLs, markdown and html. It should only be able to: * resolve stringy path from documentation * generate canonical stringy path for a def In contrast, link rewriting should not care about semantics of paths and names resolution, and should be concern only with text mangling bits. | ||||
* | Cleanup hover links tests | Aleksey Kladov | 2020-08-26 | 1 | -88/+74 |
| | |||||
* | Improve support for code block attributes | León Orell Valerian Liehr | 2020-08-26 | 1 | -9/+99 |
| | |||||
* | Complete `pub` in fields | Aleksey Kladov | 2020-08-25 | 4 | -7/+36 |
| | |||||
* | Use the same abstraction for attrs and docs | Aleksey Kladov | 2020-08-25 | 3 | -3/+3 |
| | | | | | Doc comments *are* attributes, so there's no reason to have two crates here. | ||||
* | Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links | Zac Pullar-Strecker | 2020-08-25 | 2 | -4/+24 |
|\ | |||||
| * | Omit lenses for not runnable doctests | Kirill Bulatov | 2020-08-22 | 2 | -4/+24 |
| | | |||||
* | | Renames, comments, and dead code removal | Zac Pullar-Strecker | 2020-08-24 | 1 | -1/+3 |
| | | |||||
* | | Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links | Zac Pullar-Strecker | 2020-08-24 | 4 | -56/+623 |
|/ | |||||
* | Merge #5823 | bors[bot] | 2020-08-22 | 1 | -6/+0 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5823: Don't underline function definition if self is &mut r=Nashenas88 a=matklad The self is right there, and is already underlined, so it makes little sense to emit even more underlines. before: ![before](https://user-images.githubusercontent.com/1711539/90672843-0d379500-e257-11ea-840f-b0caed4410f1.png) after: ![after](https://user-images.githubusercontent.com/1711539/90672840-0c9efe80-e257-11ea-9739-23af433841c6.png) Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Don't underline function definition if self is &mut | Aleksey Kladov | 2020-08-19 | 1 | -6/+0 |
| | | | | | | | | | | The self is right there, and is already underlined, so it makes little sense to emit even more underlines. | ||||
* | | :arrow_up: ungrammar | Aleksey Kladov | 2020-08-21 | 2 | -2/+3 |
| | | |||||
* | | Switch to expect_test from crates.io | Aleksey Kladov | 2020-08-21 | 23 | -23/+23 |
|/ | |||||
* | Remove dead code | Aleksey Kladov | 2020-08-19 | 1 | -25/+15 |
| | |||||
* | Future proof find-usages API | Aleksey Kladov | 2020-08-19 | 1 | -1/+3 |
| | | | | | | We might want to provide more efficient impls for check if usages exist, limiting the search, filtering and cancellation, so let's violate YAGNI a bit here. | ||||
* | Apply couple of rule of thumbs to simplify highlighting code | Aleksey Kladov | 2020-08-19 | 1 | -19/+16 |
| | | | | | | | | | | | | | | | | | Main one: instead of adding a parameter to function to handle special case, make the caller handle it. Second main one: make sure that function does a reasonable thing. `highlight_def` picks a color for def, *regardless* of the context the def is use. Feeding an info from the call-site muddies the responsibilities here. Minor smells, flagging the function as having space for improvement in the first place: * many parameters, some of which are set as constants on most call-sites (introduce severalfunction instad) * boolean param (add two functions instead) | ||||
* | Inline trivial function | Aleksey Kladov | 2020-08-19 | 1 | -8/+6 |
| | |||||
* | Simplify | Aleksey Kladov | 2020-08-19 | 1 | -9/+4 |
| | |||||
* | Minor | Aleksey Kladov | 2020-08-19 | 1 | -2/+1 |
| | |||||
* | Minor cleanups | Aleksey Kladov | 2020-08-19 | 1 | -1/+1 |
| | |||||
* | Better name | Aleksey Kladov | 2020-08-19 | 1 | -4/+4 |
| | |||||
* | Better API factoring around self access modes | Aleksey Kladov | 2020-08-19 | 1 | -10/+16 |
| | |||||
* | Add SelfParam to code_model | Aleksey Kladov | 2020-08-19 | 4 | -17/+11 |
| | |||||
* | Merge #5811 | bors[bot] | 2020-08-19 | 1 | -3/+3 |
|\ | | | | | | | | | | | | | | | | | | | 5811: Minor r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Minor | Aleksey Kladov | 2020-08-19 | 1 | -3/+3 |
| | | |||||
* | | Merge #5643 | bors[bot] | 2020-08-19 | 3 | -43/+116 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | 5643: Add new consuming modifier, apply consuming and mutable to methods r=matklad a=Nashenas88 This adds a new `consuming` semantic modifier for syntax highlighters. This also emits `mutable` and `consuming` in two cases: - When a method takes `&mut self`, then it now has `function.mutable` emitted. - When a method takes `self`, and the type of `Self` is not `Copy`, then `function.consuming` is emitted. CC @flodiebold Co-authored-by: Paul Daniel Faria <[email protected]> | ||||
| * | Add new method to Semantics, method_receiver_kind, which returns the kind of ↵ | Paul Daniel Faria | 2020-08-16 | 2 | -65/+104 |
| | | | | | | | | | | | | | | self The options are Shared, Mutable, Consuming, and Copied. Use this to add proper highlighting to methods based on usage. | ||||
| * | Mark mutating functions with `mutable` modifier, and owning functions with ↵ | Paul Daniel Faria | 2020-08-16 | 2 | -10/+41 |
| | | | | | | | | `consuming`. | ||||
| * | Add new HighlightModifier variant, Consuming | Paul Daniel Faria | 2020-08-16 | 1 | -0/+3 |
| | | |||||
* | | Cleanup feature generation | Aleksey Kladov | 2020-08-18 | 4 | -16/+11 |
| | | |||||
* | | Merge #5695 | bors[bot] | 2020-08-18 | 3 | -7/+26 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | 5695: Added completion for unstable features r=matklad a=Fihtangolz Added xtask for downloading list of unstable features from the unstable book and codegen for it. Also included small changes from linter. Co-authored-by: Dmitry <[email protected]> Co-authored-by: Dmitry Opokin <[email protected]> | ||||
| * \ | Merge remote-tracking branch 'rust-analyzer/master' | Dmitry | 2020-08-18 | 3 | -11/+83 |
| |\ \ | |||||
| * | | | synchronizing changes | Dmitry | 2020-08-14 | 3 | -7/+26 |
| | | | | |||||
* | | | | Merge #5804 | bors[bot] | 2020-08-18 | 1 | -59/+17 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5804: Add type safety to diagnostic codes r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> |