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

Do not filter comment lines when hovering on structures #1559

Merged
merged 1 commit into from
Mar 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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