aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands.ts
Commit message (Collapse)AuthorAgeFilesLines
* Fix resolveCodeAction trying to edit files before creating themLukas Wirth2021-02-051-3/+3
|
* Merge #7068bors[bot]2021-01-031-0/+55
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
| * Remove some unnecessary code copied from the Syntax Tree commandPhil Ellison2021-01-011-17/+3
| |
| * Initial implementation of view-hir commandPhil Ellison2020-12-281-0/+69
| |
* | Apply text edits manually in vscode clientLukas Wirth2020-12-291-2/+8
|/
* Use workspace applyEdit instead of snippetWorkspaceEditDaiki Ihara2020-12-211-1/+1
|
* add open Cargo.toml actionAnatol Liu2020-11-131-0/+21
|
* Switch to upstream protocol for resolving code actionAleksey Kladov2020-11-101-5/+6
| | | | | | Note that we have to maintain custom implementation on the client side: I don't see how to marry bulitin resolve support with groups and snippets.
* Fix resolveCodeAction requestLaurențiu Nicola2020-10-131-2/+2
|
* Differentiate method/tymethod by determining 'defaultness'Zac Pullar-Strecker2020-10-081-1/+1
| | | | | | | | | Currently a method only has defaultness if it is a provided trait method, but this will change when specialisation is available and may need to become a concept known to hir. I opted to go for a 'fewest changes' approach given specialisation is still under development.
* Code reorganisation and field supportZac Pullar-Strecker2020-10-081-3/+3
|
* WIP: Command to open docs under cursorZac Pullar-Strecker2020-10-081-2/+23
|
* Extend **Status** command to also show dep info for the fileAleksey Kladov2020-09-291-7/+12
| | | | This should help with troubleshooting wrong project configuration
* Fix LSP requests with no argumentsLaurențiu Nicola2020-09-171-3/+3
|
* Fix delimiter in SSR exampleLaurențiu Nicola2020-09-151-1/+1
|
* Move to vscode-languageclient 7.0.0-next.9kjeremy2020-09-021-4/+4
| | | | Stabilizes call hierarchy and semantic tokens features.
* SSR: Restrict to current selection if anyDavid Lattimore2020-07-291-2/+3
| | | | | The selection is also used to avoid unnecessary work, but only to the file level. Further restricting unnecessary work is left for later.
* SSR: Fix a typescript lint warningDavid Lattimore2020-07-241-1/+1
|
* SSR: Pass current file position through to SSR code.David Lattimore2020-07-241-3/+11
| | | | In a subsequent commit, it will be used for resolving paths.
* Add a command to compute memory usage statisticsJonas Schievink2020-07-071-0/+32
|
* Add reload workspace commandAleksey Kladov2020-07-011-2/+2
|
* Merge #5119bors[bot]2020-06-291-3/+9
|\ | | | | | | | | | | | | | | 5119: Show notification while SSR is in progress r=matklad a=davidlattimore Ideally we would (a) show progress and (b) allow cancellation, but at least now there's some indication to the user that something is happening. Co-authored-by: David Lattimore <[email protected]>
| * Show notification while SSR is in progressDavid Lattimore2020-06-291-3/+9
| | | | | | | | Ideally we would (a) show progress and (b) allow cancellation, but at least now there's some indication to the user that something is happening.
* | Fix SSR prompt following #4919David Lattimore2020-06-271-1/+1
|/
* Add custom cargo runnersvsrs2020-06-241-2/+2
|
* Add `rust-analyzer.gotoLocation` commandvsrs2020-06-181-0/+14
|
* Preliminary implementation of lazy CodeAssitsMikhail Rakhmanov2020-06-021-2/+17
|
* Move run commands to commands.tsAleksey Kladov2020-06-021-14/+60
|
* Document `parentModule` experimental LSP requestAleksey Kladov2020-05-251-3/+3
|
* Cleanup lsp extensions on the client sideAleksey Kladov2020-05-251-1/+1
|
* Less rust-analyzer specific onEnterAleksey Kladov2020-05-251-5/+5
|
* Flatten commands.tsAleksey Kladov2020-05-251-0/+370