private IDocumentPeekResult CreateResult() { var tokenLine = _token.GetLine(); var lineNumber = tokenLine.LineNumber; const int startLineIndex = 0; var endLineIndex = tokenLine.LineEnd; var idIndex = _token.GetStart() - tokenLine.LineStart; var path = _token.Document.Path; var displayInfo = new PeekResultDisplayInfo( label: path, labelTooltip: path, title: path, titleTooltip: path); return(_peekResultFactory.Create( displayInfo, path, lineNumber, startLineIndex, lineNumber, endLineIndex, idLine: lineNumber, idIndex: idIndex )); }
public NavigationListItemNode(INavigationToken token) : base($"{token.GetLine().LineNumber + 1}: {token.GetLine().LineText}") { NavigationToken = token; }