From a0348cee9b38e7cc35ffc29990cd7298bbd136a7 Mon Sep 17 00:00:00 2001 From: Arnim Rupp <46819580+ruppde@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:31:57 +0200 Subject: [PATCH] feat(debugger): Enable debug hovers in strings section (#138) --- yls/hover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yls/hover.py b/yls/hover.py index 1144c22..dd9ad52 100644 --- a/yls/hover.py +++ b/yls/hover.py @@ -64,7 +64,7 @@ async def hover(self, params: lsp_types.TextDocumentPositionParams) -> lsp_types ) log.debug(f'[HOVER] Hover request with token "{token}" and type "{token.type}"') - if token.type == yaramod.TokenType.StringId: + if token.type in (yaramod.TokenType.StringId, yaramod.TokenType.StringIdAfterNewline): return await self.hover_string(token, document, position) elif token.type == yaramod.TokenType.Id: yara_file = utils.yaramod_parse_file(document.path)