Skip to content

Commit 59ef925

Browse files
committed
Add help for area codes
1 parent eac218a commit 59ef925

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/QuickInfo/Processors/AreaCodes.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using static QuickInfo.NodeFactory;
23

34
namespace QuickInfo
45
{
@@ -423,6 +424,15 @@ public AreaCodes()
423424

424425
public object GetResult(Query query)
425426
{
427+
if (query.IsHelp)
428+
{
429+
return HelpTable
430+
(
431+
("425", "Bellevue, WA"),
432+
("Seattle", "206")
433+
);
434+
}
435+
426436
string text = query.OriginalInput;
427437

428438
if (areaCodes.TryGetValue(text, out string city))

0 commit comments

Comments
 (0)