fix: pre-filter completion items mod ascii casing (#11140)
This PR ensures that we pre-filter auto-completion items modulo ASCII casing for consistency with the VS Code fuzzy matching.
This commit is contained in:
parent
aaceb3dbf5
commit
c2647cdbf5
2 changed files with 26 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ where
|
|||
let ac := aPos.get' a ha
|
||||
let bc := bPos.get' b hb
|
||||
let bPos := bPos.next' b hb
|
||||
if ac == bc then
|
||||
if ac.toLower == bc.toLower then
|
||||
let aPos := aPos.next' a ha
|
||||
go aPos bPos
|
||||
else
|
||||
|
|
|
|||
|
|
@ -273,6 +273,19 @@ Resolution of format.indent:
|
|||
"detail":
|
||||
"(false), enable/disable tracing for the given module and submodules",
|
||||
"data": ["«external:file:///completionOption.lean»", 7, 23, 0]},
|
||||
{"textEdit":
|
||||
{"replace":
|
||||
{"start": {"line": 7, "character": 11},
|
||||
"end": {"line": 7, "character": 23}},
|
||||
"newText": "trace.PrettyPrinter.parenthesize.backtrack",
|
||||
"insert":
|
||||
{"start": {"line": 7, "character": 11},
|
||||
"end": {"line": 7, "character": 23}}},
|
||||
"label": "trace.PrettyPrinter.parenthesize.backtrack",
|
||||
"kind": 10,
|
||||
"detail":
|
||||
"(false), enable/disable tracing for the given module and submodules",
|
||||
"data": ["«external:file:///completionOption.lean»", 7, 23, 0]},
|
||||
{"textEdit":
|
||||
{"replace":
|
||||
{"start": {"line": 7, "character": 11},
|
||||
|
|
@ -337,6 +350,18 @@ Resolution of trace.pp.analyze.error:
|
|||
"detail":
|
||||
"(false), enable/disable tracing for the given module and submodules",
|
||||
"data": ["«external:file:///completionOption.lean»", 7, 23, 0]}
|
||||
Resolution of trace.PrettyPrinter.parenthesize.backtrack:
|
||||
{"textEdit":
|
||||
{"replace":
|
||||
{"start": {"line": 7, "character": 11}, "end": {"line": 7, "character": 23}},
|
||||
"newText": "trace.PrettyPrinter.parenthesize.backtrack",
|
||||
"insert":
|
||||
{"start": {"line": 7, "character": 11}, "end": {"line": 7, "character": 23}}},
|
||||
"label": "trace.PrettyPrinter.parenthesize.backtrack",
|
||||
"kind": 10,
|
||||
"detail":
|
||||
"(false), enable/disable tracing for the given module and submodules",
|
||||
"data": ["«external:file:///completionOption.lean»", 7, 23, 0]}
|
||||
Resolution of trace.pp.analyze:
|
||||
{"textEdit":
|
||||
{"replace":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue