lean4-htt/tests/lean/interactive
Marc Huisinga f64bce6ef1
fix: auto-completion performance regression (#6794)
This PR fixes a significant auto-completion performance regression that
was introduced in #5666, i.e. v4.14.0.

#5666 introduced tactic docstrings, which were attempted to be collected
for every single completion item. This is slow for hundreds of thousands
of completion items. To fix this, this PR moves the docstring
computation into the completion item resolution, which is only called
when users select a specific completion item in the UI.

A downside of this approach is that we currently can't test completion
item resolution, so we lose a few tests that cover docstrings in
completions in this PR.
2025-01-27 21:15:09 +00:00
..
533.lean
533.lean.expected.out feat: allow structure in mutual blocks (#6125) 2024-11-22 09:20:07 +00:00
863.lean
863.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
1031.lean
1031.lean.expected.out
1265.lean
1265.lean.expected.out fix: auto-completion performance regression (#6794) 2025-01-27 21:15:09 +00:00
1403.lean
1403.lean.expected.out feat: update omega/solve_by_elim to use new tactic syntax, use new tactic syntax (#5932) 2024-11-03 16:23:37 +00:00
1525.lean
1525.lean.expected.out
1659.lean
1659.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
2058.lean feat: localize universe metavariable errors at let bindings and fun binders (#5402) 2024-09-24 05:30:42 +00:00
2058.lean.expected.out feat: localize universe metavariable errors at let bindings and fun binders (#5402) 2024-09-24 05:30:42 +00:00
2881.lean fix: some goal state issues (#5677) 2024-10-17 12:09:54 +00:00
2881.lean.expected.out fix: some goal state issues (#5677) 2024-10-17 12:09:54 +00:00
4078.lean
4078.lean.expected.out
4880.lean
4880.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
5659.lean fix: proper "excess binders" error locations for rintro and intro (#6565) 2025-01-08 08:36:45 +00:00
5659.lean.expected.out fix: proper "excess binders" error locations for rintro and intro (#6565) 2025-01-08 08:36:45 +00:00
amb.lean
amb.lean.expected.out
anonHyp.lean
anonHyp.lean.expected.out
autoBoundIssue.lean feat: upstream definition of Vector from Batteries (#6197) 2024-11-24 23:01:32 +00:00
autoBoundIssue.lean.expected.out feat: upstream definition of Vector from Batteries (#6197) 2024-11-24 23:01:32 +00:00
builtinCodeactions.lean fix: line break in simp? output (#6048) 2024-11-13 15:49:11 +00:00
builtinCodeactions.lean.expected.out fix: line break in simp? output (#6048) 2024-11-13 15:49:11 +00:00
catHover.lean chore: fix spelling mistakes in tests (#5439) 2024-09-24 03:22:53 +00:00
catHover.lean.expected.out chore: fix spelling mistakes in tests (#5439) 2024-09-24 03:22:53 +00:00
codeaction.lean
codeaction.lean.expected.out
compHeader.lean fix: auto completion when autoBoundImplicit is active 2022-04-09 09:11:45 -07:00
compHeader.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completion.lean
completion.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completion2.lean
completion2.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completion3.lean
completion3.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completion4.lean
completion4.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completion5.lean
completion5.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completion6.lean
completion6.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completion7.lean
completion7.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionAtPrint.lean feat: Environment.addConstAsync (#6691) 2025-01-19 02:00:16 +00:00
completionAtPrint.lean.expected.out feat: Environment.addConstAsync (#6691) 2025-01-19 02:00:16 +00:00
completionBracketedDot.lean fix: travelling auto-completion (#5257) 2024-09-10 07:26:44 +00:00
completionBracketedDot.lean.expected.out fix: travelling auto-completion (#5257) 2024-09-10 07:26:44 +00:00
completionCheck.lean
completionCheck.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionDanglingDot.lean fix: don't issue atomic id completions when there is a dangling dot (#5837) 2024-11-19 12:23:41 +00:00
completionDanglingDot.lean.expected.out fix: don't issue atomic id completions when there is a dangling dot (#5837) 2024-11-19 12:23:41 +00:00
completionDeprecation.lean feat: denote deprecations in completion items (#5707) 2024-10-14 13:05:16 +00:00
completionDeprecation.lean.expected.out fix: auto-completion performance regression (#6794) 2025-01-27 21:15:09 +00:00
completionEOF.lean
completionEOF.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionFallback.lean feat: completion fallback (#5299) 2024-09-12 16:09:20 +00:00
completionFallback.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionFromExpectedType.lean
completionFromExpectedType.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionIStr.lean
completionIStr.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionOpenNamespaces.lean
completionOpenNamespaces.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionOption.lean
completionOption.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionPrefixIssue.lean
completionPrefixIssue.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionPrivateTypes.lean
completionPrivateTypes.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
completionPrv.lean
completionPrv.lean.expected.out fix: auto-completion performance regression (#6794) 2025-01-27 21:15:09 +00:00
completionStructureInstance.lean fix: use sensible notion of indentation in structure instance field completion (#6279) 2024-12-02 09:37:12 +00:00
completionStructureInstance.lean.expected.out fix: use sensible notion of indentation in structure instance field completion (#6279) 2024-12-02 09:37:12 +00:00
completionTactics.lean fix: use sensible notion of indentation in structure instance field completion (#6279) 2024-12-02 09:37:12 +00:00
completionTactics.lean.expected.out fix: use sensible notion of indentation in structure instance field completion (#6279) 2024-12-02 09:37:12 +00:00
compNamespace.lean
compNamespace.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
definition.lean
definition.lean.expected.out
Diff.lean
Diff.lean.expected.out
discrsIssue.lean fix: remove auxiliary discriminants before elaborating patterns 2022-04-05 19:37:56 -07:00
discrsIssue.lean.expected.out
dotIdCompletion.lean
dotIdCompletion.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
editAfterError.lean feat: incremental elaboration of definition headers, bodies, and tactics (#3940) 2024-05-22 13:23:30 +00:00
editAfterError.lean.expected.out
editCompletion.lean
editCompletion.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
expectedTypeAsGoal.lean
expectedTypeAsGoal.lean.expected.out
explicitAppInstHole.lean fix: refine how named arguments suppress explicit arguments (#5283) 2024-09-27 20:14:29 +00:00
explicitAppInstHole.lean.expected.out feat: add option pp.mvars.delayed (#5643) 2024-10-08 17:48:52 +00:00
foldingRange.lean
foldingRange.lean.expected.out
ghostGoals.lean fix: ghost goals in autoparam tactic block (#6408) 2024-12-17 20:57:39 +00:00
ghostGoals.lean.expected.out fix: ghost goals in autoparam tactic block (#6408) 2024-12-17 20:57:39 +00:00
goalEOF.lean
goalEOF.lean.expected.out
goalIssue.lean
goalIssue.lean.expected.out
goTo.lean feat: make go-to-definition on a typeclass projection application go to the instance(s) (#1767) 2023-01-19 09:10:01 +00:00
goTo.lean.expected.out fix: include references in attributes in call hierarchy (#5650) 2024-10-18 15:38:32 +00:00
goTo2.lean
goTo2.lean.expected.out
haveInfo.lean
haveInfo.lean.expected.out
highlight.lean fix: avoid new term info around def bodies (#6031) 2024-11-11 14:54:59 +00:00
highlight.lean.expected.out fix: avoid new term info around def bodies (#6031) 2024-11-11 14:54:59 +00:00
hover.lean
hover.lean.expected.out fix: type occurs check bug (#6128) 2024-11-21 00:28:36 +00:00
hoverAt.lean
hoverAt.lean.expected.out
hoverBinderUndescore.lean
hoverBinderUndescore.lean.expected.out feat: add option pp.mvars.delayed (#5643) 2024-10-08 17:48:52 +00:00
hoverDot.lean
hoverDot.lean.expected.out
hoverException.lean
hoverException.lean.expected.out feat: @[builtin_doc] attribute (part 2) (#3918) 2024-09-13 08:05:10 +00:00
hoverTacticExt.lean
hoverTacticExt.lean.expected.out
incrementalCombinator.lean fix: disable incrementality in case .. | .. (#5090) 2024-08-19 09:17:03 +00:00
incrementalCombinator.lean.expected.out fix: disable incrementality in case .. | .. (#5090) 2024-08-19 09:17:03 +00:00
incrementalCommand.lean fix: reparsing may need to backtrack two commands (#6236) 2024-11-27 13:06:57 +00:00
incrementalCommand.lean.expected.out fix: reparsing may need to backtrack two commands (#6236) 2024-11-27 13:06:57 +00:00
incrementalInduction.lean
incrementalInduction.lean.expected.out
incrementalMutual.lean
incrementalMutual.lean.expected.out
incrementalTactic.lean
incrementalTactic.lean.expected.out fix: proper "excess binders" error locations for rintro and intro (#6565) 2025-01-08 08:36:45 +00:00
infoIssues.lean
infoIssues.lean.expected.out
internalNamesIssue.lean
internalNamesIssue.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
inWordCompletion.lean
inWordCompletion.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
issue4527.lean
issue4527.lean.expected.out
issue5021.lean fix: hover text over _ in ?_ (#5118) 2024-08-21 20:47:19 +00:00
issue5021.lean.expected.out feat: add option pp.mvars.delayed (#5643) 2024-10-08 17:48:52 +00:00
issue5597.lean fix: declareSimpLikeTactic macro to use mkSynthetic (#5838) 2024-10-30 14:27:56 +00:00
issue5597.lean.expected.out fix: declareSimpLikeTactic macro to use mkSynthetic (#5838) 2024-10-30 14:27:56 +00:00
jumpMutual.lean
jumpMutual.lean.expected.out
keywordCompletion.lean
keywordCompletion.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
lean3HoverIssue.lean
lean3HoverIssue.lean.expected.out
macroGoalIssue.lean
macroGoalIssue.lean.expected.out
match.lean
match.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
matchPatternHover.lean
matchPatternHover.lean.expected.out
matchStxCompletion.lean
matchStxCompletion.lean.expected.out feat: structure auto-completion & partial InfoTrees 2024-11-19 09:26:58 +01:00
partialNamespace.lean
partialNamespace.lean.expected.out
plainGoal.lean
plainGoal.lean.expected.out
plainTermGoal.lean
plainTermGoal.lean.expected.out
rename.lean
rename.lean.expected.out
run.lean chore: move Lean.Data.Parsec to Std.Internal.Parsec (#5115) 2024-08-21 15:26:17 +00:00
stdOutput.lean
stdOutput.lean.expected.out
terminationBySuggestion.lean
terminationBySuggestion.lean.expected.out
test_single.sh
travellingCompletions.lean fix: travelling auto-completion (#5257) 2024-09-10 07:26:44 +00:00
travellingCompletions.lean.expected.out fix: auto-completion performance regression (#6794) 2025-01-27 21:15:09 +00:00
unterminatedDocComment.lean
unterminatedDocComment.lean.expected.out
userWidget.lean
userWidget.lean.expected.out feat: bundle of widget improvements (#2964) 2023-12-21 06:24:33 +00:00