Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adjust the test comment | Kirill Bulatov | 2020-09-11 | 1 | -9/+16 |
| | |||||
* | One more test | Kirill Bulatov | 2020-09-09 | 1 | -0/+15 |
| | |||||
* | Rename the method to avoid false promises | Kirill Bulatov | 2020-09-09 | 1 | -5/+5 |
| | |||||
* | Fix the tests | Kirill Bulatov | 2020-09-09 | 5 | -7/+9 |
| | |||||
* | 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 | 9 | -8/+8 |
| | |||||
* | Minor | Aleksey Kladov | 2020-08-27 | 1 | -1/+2 |
| | |||||
* | Tease apart orthogonal concerns in markdown link rewriting | Aleksey Kladov | 2020-08-26 | 3 | -15/+231 |
| | | | | | | | | | | | | `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 | 3 | -15/+36 |
|\ | |||||
| * | Merge #4776 | bors[bot] | 2020-08-24 | 1 | -11/+12 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4776: Do a weekly minor publish to crates.io r=matklad a=pksunkara This is the same system I set up on Chalk repo. Every week it creates a new minor version, pushes it to github and then deploys it to crates.io. Co-authored-by: Pavan Kumar Sunkara <[email protected]> | ||||
| | * | Add description for crates that will be published | Pavan Kumar Sunkara | 2020-08-24 | 1 | -0/+1 |
| | | | |||||
| | * | Add version to deps in cargo.toml | Pavan Kumar Sunkara | 2020-08-24 | 1 | -11/+11 |
| | | | |||||
| * | | 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 | 5 | -56/+625 |
|/ | |||||
* | Merge #5823 | bors[bot] | 2020-08-22 | 2 | -8/+2 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 2 | -8/+2 |
| | | | | | | | | | | 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 | 24 | -24/+24 |
|/ | |||||
* | 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 | 4 | -44/+156 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 3 | -67/+136 |
| | | | | | | | | | | | | | | self The options are Shared, Mutable, Consuming, and Copied. Use this to add proper highlighting to methods based on usage. |