Commit 1d8f57e
committed
Favour exact-match spelling suggestions
Previously, the first match that was close enough was returned as the
spelling suggestion. Now, if there is a candidate that differs only by
case, it will always be the suggestion.1 parent ccc60c8 commit 1d8f57eCopy full SHA for 1d8f57e
4 files changed
+53-1Lines changed: 53 additions & 1 deletion
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
- tests
- baselines/reference
- cases/compiler
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14522 | 14522 | |
14523 | 14523 | |
14524 | 14524 | |
| 14525 | + |
14525 | 14526 | |
14526 | 14527 | |
14527 | 14528 | |
| ||
14534 | 14535 | |
14535 | 14536 | |
14536 | 14537 | |
| 14538 | + |
| 14539 | + |
| 14540 | + |
14537 | 14541 | |
14538 | 14542 | |
14539 | 14543 | |
| ||
14549 | 14553 | |
14550 | 14554 | |
14551 | 14555 | |
14552 | | - |
| 14556 | + |
| 14557 | + |
14553 | 14558 | |
14554 | 14559 | |
14555 | 14560 | |
|
Collapse file
tests/baselines/reference/exactSpellingSuggestion.errors.txt
Copy file name to clipboard+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
Collapse file
tests/baselines/reference/exactSpellingSuggestion.js
Copy file name to clipboard+22Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
Collapse file
tests/cases/compiler/exactSpellingSuggestion.ts
Copy file name to clipboard+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
0 commit comments