forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve completer rendering performance (jupyterlab#13663)
* Improve completer rendering performance * Fix existing tests * Preferentially use `insertText` for population * Robustify insertText test * Fix minor styling problems seen in visual tests/in self-review * Remove unused `lineHeight` and `charWidth` * Harmonize renderer methods use, invalidate size cache on filtering if needed * Add a galata test for completer with documentation panel * Add test for lazy rendering, fix two logic issues * Use node cloning as it is more reliable than measuring size in contained nodes. If we try to measure size of a child element of parent with `contain: strict` we may get 0s. Therefore it is more reliable to clone node and attach it to the body instead. * (Re)set hoverbox styles earlier to correctly position during the transition from predefined to dynamic sizing. * Update Playwright Snapshots * Update migration guide * Fix formatting in RST * Add counters to async methods, remove old `scoreCmp()`, escape in `resolve()` * Reset screenshot updated by bot * Fix typos in documentation * Fix more typos * Restore old method of copying attributes to avoid pollution * Better cache invalidation, cache `completionItems()`, fix resets * Add unit tests for `queryChanged` signal * Apply suggestions from code review Co-authored-by: Duc Trung Le <[email protected]> * Apply suggestions from code review Co-authored-by: Duc Trung Le <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Duc Trung Le <[email protected]>
- Loading branch information
1 parent
bb0595d
commit d614e29
Showing
14 changed files
with
1,118 additions
and
218 deletions.
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
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
Binary file modified
BIN
-28 Bytes
(100%)
...t/jupyterlab/completer.test.ts-snapshots/completer-console-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.6 KB
...erlab/completer.test.ts-snapshots/completer-with-doc-panel-jupyterlab-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
def option_1(): | ||
"""Documentation of 1st option. | ||
This docstring is intentionally long to fill the documentation panel box. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vel | ||
auctor felis. Phasellus non risus maximus tortor molestie consectetur. | ||
Suspendisse in mauris eget nunc imperdiet elementum. Morbi consequat velit | ||
at elit suscipit, quis placerat est vulputate. Ut semper leo et fermentum | ||
gravida. Cras dui nisl, varius et lectus quis, maximus facilisis justo. | ||
""" | ||
|
||
|
||
def option_2(): | ||
"""Documentation of 2nd option.""" |
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
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
Oops, something went wrong.