aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge #7799bors[bot]2021-03-131-0/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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 runnables::related_testsvsrs2021-02-271-0/+9
| |
* | remove unused CompletionScore enumJosh Mcguigan2021-03-121-2/+2
| |
* | add completion relevance scoreJosh Mcguigan2021-03-121-2/+2
| |
* | add apply ssr assistJosh Mcguigan2021-03-101-1/+7
| |
* | Work towards better import labelsKirill Bulatov2021-03-081-2/+0
|/
* 7526: Renamed create ssr to ide_ssr.Chetan Khilosiya2021-02-221-3/+4
|
* 7526: Rename crate assists to ide_assists.Chetan Khilosiya2021-02-221-1/+1
|
* rename completion -> ide_completionAleksey Kladov2021-02-171-4/+4
| | | | We don't have completion-related PRs in flight, so lets do it
* Make utf8 default, implement utf16 in terms of itAleksey Kladov2021-02-161-1/+1
|
* Prepare for utf-8 offsetsAleksey Kladov2021-02-161-1/+1
|
* Moved CodeLens to ide crateivan7702021-02-131-0/+14
|
* Use NameLike in FileReference directly as its not exported from ide anymoreLukas Wirth2021-02-121-1/+1
|
* Refactor reference searching to work with the astLukas Wirth2021-02-121-2/+2
|
* Move SymbolKind to ide_dbLukas Wirth2021-01-201-1/+1
|
* Remove obsolete RangeInfo usage in referencesLukas Wirth2021-01-181-3/+1
|
*-. Merge #7297 #7338bors[bot]2021-01-181-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7297: Propose trait associated items and autoimport traits on completion r=matklad a=SomeoneToIgnore ![trait_imports](https://user-images.githubusercontent.com/2690773/104819998-6faeb480-583a-11eb-8b45-b7351b51b90e.gif) Closes #7248 7338: Parse `impl const Trait` r=Veykril a=Veykril Closes #7313 bors r+ Co-authored-by: Kirill Bulatov <[email protected]> Co-authored-by: Lukas Wirth <[email protected]>
| * | Add flyimport completion for trait assoc itemsKirill Bulatov2021-01-161-0/+2
| | |
* | | Remove obsolete RangeInfo usage in renameLukas Wirth2021-01-181-1/+1
| |/ |/|
* | MinorAleksey Kladov2021-01-181-8/+5
|/
* Share import_assets and related entitiesKirill Bulatov2021-01-161-1/+1
|
* Phase out SourceFileEdits in favour of a plain HashMapLukas Wirth2021-01-141-1/+1
|
* Group file source edits by FileIdLukas Wirth2021-01-141-2/+2
|
* Group references by FileIdLukas Wirth2021-01-121-1/+1
|
* Split punctuation semantic highlighting up into more tagsLukas Wirth2021-01-101-1/+1
|
* Shorten namesAleksey Kladov2021-01-091-3/+3
|
* Shorten frequent namesAleksey Kladov2021-01-091-1/+1
|
* Align config's API with usageAleksey Kladov2021-01-061-1/+1
| | | | The config now is mostly immutable, optimize for that.
* YAGNI active_resolve_capabilitiesAleksey Kladov2021-01-061-2/+2
| | | | | | | | | This leaks a lot of LSP details into ide layer, which we want to avoid: https://github.com/rust-analyzer/rust-analyzer/tree/c9cec381bcfd97e5f3536e31a9c546ab5c0665e6/docs/dev#lsp-independence Additionally, all what this infra does is providing a toggle for auto-import completion, but we already have one!
* Merge #7068bors[bot]2021-01-031-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7068: Add VSCode command to view the hir of a function body r=theotherphil a=theotherphil Will fix https://github.com/rust-analyzer/rust-analyzer/issues/7061. Very rough initial version just to work out where I needed to wire everything up. @matklad would you be happy merging a hir visualiser of some kind? If so, do you have any thoughts on what you'd like it show, and how? I've spent very little time on this thus far, so I'm fine with throwing away the contents of this PR, but I want to avoid taking the time to make this more polished/interactive/useful only to discover that no-one else has any interest in this functionality. ![image](https://user-images.githubusercontent.com/1974256/103236081-bb58f700-493b-11eb-9d12-55ae1b870f8f.png) Co-authored-by: Phil Ellison <[email protected]>
| * Initial implementation of view-hir commandPhil Ellison2020-12-281-0/+5
| |
* | Avoid a couple of allocationsLaurențiu Nicola2020-12-291-1/+1
|/
* Simplify assists resolution APIAleksey Kladov2020-12-261-14/+8
| | | | | | Assist vs UnresolvedAssist split doesn't really pull its weight. This is especially bad if we want to include `Assist` as a field of diagnostics, where we'd have to make the thing generic.
* pit-of-success API for unresolved code actionsAleksey Kladov2020-12-241-11/+11
|
* Implement workspace/willRenameFiles for single-level file movesJeremy Kolb2020-12-231-0/+8
| | | | Renames modules during file rename if they're in the same directory.
* Don't expose SyntaxKind from IDE APIAleksey Kladov2020-12-181-1/+1
| | | | | | 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.
* Cleaup importsAleksey Kladov2020-12-181-7/+7
| | | | ide should re-export everything it needs.
* Lifetime reference searchLukas Wirth2020-12-161-0/+7
|
* SimplifyKirill Bulatov2020-12-071-1/+0
|
* Use stateless completion resolveKirill Bulatov2020-12-071-0/+22
|
* Remove the stateKirill Bulatov2020-12-071-1/+1
|
* Make completion resolve asyncKirill Bulatov2020-12-071-1/+1
|
* Simplify import edit calculationKirill Bulatov2020-12-071-1/+1
|
* Properly fill client completion resolve capabilities dataKirill Bulatov2020-12-071-2/+2
|
* Working resolve completion imports prototypeKirill Bulatov2020-12-071-1/+2
|
* Extract the import code into the shared moduleKirill Bulatov2020-11-271-3/+1
|
* Remove more unreachable pubsAleksey Kladov2020-11-021-6/+8
|
* Re-export base_db from ide_dbIgor Aleksanov2020-10-241-4/+4
|
* Make call_info a part of ide_dbIgor Aleksanov2020-10-241-2/+2
|
* Extract call_info and completion into separate cratesIgor Aleksanov2020-10-181-6/+4
|