Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Do not filter comment lines when hovering on structures (#1559)
Browse files Browse the repository at this point in the history
remove filter of lines starting with "\t//"

Signed-off-by: Dan Mick <dan.mick@redhat.com>
  • Loading branch information
dmick authored and ramya-rao-a committed Mar 6, 2018
1 parent 91d73c8 commit 810791e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goExtraInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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+$/, '');
Expand Down

0 comments on commit 810791e

Please sign in to comment.