From fc4a7a8f822db2577ff82b074e645cbb6b4aab8b Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Mon, 5 Mar 2018 15:44:09 -0800 Subject: [PATCH] Do not filter comment lines when hovering on structures remove filter of lines starting with "\t//" Signed-off-by: Dan Mick --- src/goExtraInfo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goExtraInfo.ts b/src/goExtraInfo.ts index be87f8de5..28b0c70aa 100644 --- a/src/goExtraInfo.ts +++ b/src/goExtraInfo.ts @@ -29,7 +29,7 @@ export class GoHoverProvider implements HoverProvider { return definitionLocation(document, position, goConfig, true, token).then(definitionInfo => { if (definitionInfo == null) return null; let lines = definitionInfo.declarationlines - .filter(line => !line.startsWith('\t//') && line !== '') + .filter(line => line !== '') .map(line => line.replace(/\t/g, ' ')); let text; text = lines.join('\n').replace(/\n+$/, '');