From a64626d99e656cd2b229d9e0dfcefb96e58dd9f2 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 2 May 2023 08:52:08 +0200 Subject: Highlight closure captures when cursor is on pipe --- editors/code/src/lsp_ext.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'editors/code/src') 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; + export type CommandLink = { /** * A tooltip for the command, when represented in the UI. -- cgit 1.4.1-3-g733a5