mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-15 14:55:04 +00:00
Highlight closure captures when cursor is on pipe
This commit is contained in:
parent
9c0c13ec8e
commit
a64626d99e
10 changed files with 149 additions and 68 deletions
|
@ -10,12 +10,9 @@ export const hover = new lc.RequestType<
|
|||
HoverParams,
|
||||
(lc.Hover & { actions: CommandLinkGroup[] }) | null,
|
||||
void
|
||||
>("textDocument/hover");
|
||||
export type HoverParams = { position: lc.Position | lc.Range } & Omit<
|
||||
lc.TextDocumentPositionParams,
|
||||
"position"
|
||||
> &
|
||||
lc.WorkDoneProgressParams;
|
||||
>(lc.HoverRequest.method);
|
||||
export type HoverParams = { position: lc.Position | lc.Range } & Omit<lc.HoverParams, "position">;
|
||||
|
||||
export type CommandLink = {
|
||||
/**
|
||||
* A tooltip for the command, when represented in the UI.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue