Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e604b9
commit 63e9426
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,13 +24,15 @@ public CompletionType CompletionType | |
public IList<HtmlCompletion> GetEntries(HtmlCompletionContext context) | ||
{ | ||
var list = new HashSet<string>(); | ||
string tooltip = string.Empty; | ||
|
||
if (context.Element != null && _inputTypes.Contains(context.Element.Name)) | ||
{ | ||
context.Document.HtmlEditorTree.RootNode.Accept(this, list); | ||
tooltip = "Extracted from a <label> element in this document"; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
madskristensen
Author
Owner
|
||
} | ||
|
||
return list.Select(s => new HtmlCompletion(s, s, string.Empty, _glyph, HtmlIconAutomationText.AttributeIconText)).ToList(); | ||
return list.Select(s => new HtmlCompletion(s, s, tooltip, _glyph, HtmlIconAutomationText.AttributeIconText)).ToList(); | ||
} | ||
|
||
public bool Visit(ElementNode element, object parameter) | ||
|
It would be cool to show the text or full source of the label too. (switch to a
HashSet<HtmlCompletion>
)