about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2023-05-02 08:52:08 +0200
committerLukas Wirth <lukastw97@gmail.com>2023-05-02 08:59:40 +0200
commita64626d99e656cd2b229d9e0dfcefb96e58dd9f2 (patch)
tree8397cd867215b7b96bc82bd803ece6b12a529f97 /editors/code/src
parent9c0c13ec8e47cfe487f46136b394c0372e957968 (diff)
downloadrust-a64626d99e656cd2b229d9e0dfcefb96e58dd9f2.tar.gz
rust-a64626d99e656cd2b229d9e0dfcefb96e58dd9f2.zip
Highlight closure captures when cursor is on pipe
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/lsp_ext.ts9
1 files changed, 3 insertions, 6 deletions
diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts
index 754d43618a4..82955acf25e 100644
--- a/editors/code/src/lsp_ext.ts
+++ b/editors/code/src/lsp_ext.ts
@@ -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.