Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: restored notebook have invalid keybinding #4174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

zhanba
Copy link
Contributor

@zhanba zhanba commented Nov 18, 2024

Types

  • ๐ŸŽ‰ New Features
  • ๐Ÿ› Bug Fixes
  • ๐Ÿ“š Documentation Changes
  • ๐Ÿ’„ Code Style Changes
  • ๐Ÿ’„ Style Changes
  • ๐Ÿชš Refactors
  • ๐Ÿš€ Performance Improvements
  • ๐Ÿ—๏ธ Build System
  • โฑ Tests
  • ๐Ÿงน Chores
  • Other Changes

Background or solution

Changelog

Summary by CodeRabbit

  • ๆ–ฐๅŠŸ่ƒฝ

    • ๆ”น่ฟ›ไบ†ๅ‘ฝไปคๅ’Œ้”ฎ็ป‘ๅฎš็ฎก็†๏ผŒๅขžๅผบไบ†็”จๆˆทๆ“ไฝœ็š„็ตๆดปๆ€งใ€‚
    • ๆ›ดๆ–ฐไบ†ๅคšไธช้”ฎ็ป‘ๅฎšไปฅๆ”ฏๆŒ็ฌ”่ฎฐๆœฌๆ“ไฝœ๏ผŒ็กฎไฟไธŽ็‰นๅฎš็Šถๆ€็›ธๅ…ณ่”ใ€‚
  • ไฟฎๅค

    • ไผ˜ๅŒ–ไบ†ๅ†…ๅฎนๅŠ ่ฝฝๆ–นๆณ•็š„ๅฎž็Žฐ๏ผŒ็กฎไฟๅœจ่ฏปๅ–ๅ’Œ่งฃๆžๆ–‡ไปถๆ—ถ็š„้”™่ฏฏๅค„็†ๆœบๅˆถไฟๆŒไธๅ˜ใ€‚

@opensumi opensumi bot added the ๐Ÿž bug Something isn't working label Nov 18, 2024
Copy link
Contributor

coderabbitai bot commented Nov 18, 2024

Walkthrough

่ฏฅๆ‹‰ๅ–่ฏทๆฑ‚ๅฏน LibroKeybindContribution ๅ’Œ LibroOpensumiContentContribution ็ฑป่ฟ›่กŒไบ†ๅคš้กนไฟฎๆ”นใ€‚LibroKeybindContribution ็ฑป็Žฐๅœจๅฎž็Žฐไบ† KeybindingContribution ๅ’Œ CommandContribution ๆŽฅๅฃ๏ผŒๆ›ดๆ–ฐไบ†ๅˆๅง‹ๅŒ–ๆ–นๆณ•๏ผŒๅนถ็ฎ€ๅŒ–ไบ†ๅ‘ฝไปคๅ’Œ้”ฎ็ป‘ๅฎš็š„ๆณจๅ†Œ่ฟ‡็จ‹ใ€‚LibroOpensumiContentContribution ็ฑป็š„ canHandle ๅ’Œ loadContent ๆ–นๆณ•่ฟ›่กŒไบ†ๅฐๅน…้‡ๆž„๏ผŒๅขžๅผบไบ†ๅฏ่ฏปๆ€งใ€‚

Changes

ๆ–‡ไปถ่ทฏๅพ„ ๅ˜ๆ›ดๆ‘˜่ฆ
packages/notebook/src/browser/libro-keybind-contribution.ts ๆ›ดๆ–ฐไบ† LibroKeybindContribution ็ฑป๏ผŒๆทปๅŠ ไบ† KeybindingContribution ๅ’Œ CommandContribution ๆŽฅๅฃ๏ผŒ้‡ๅ‘ฝๅๅ’Œๆ›ดๆ–ฐไบ†ๅคšไธชๆ–นๆณ•ไปฅ็ฎ€ๅŒ–ๅ‘ฝไปคๅ’Œ้”ฎ็ป‘ๅฎšๆณจๅ†Œ่ฟ‡็จ‹ใ€‚
packages/notebook/src/browser/libro/libro-opensumi-content-contribution.ts ๅฏน LibroOpensumiContentContribution ็ฑป็š„ canHandle ๅ’Œ loadContent ๆ–นๆณ•่ฟ›่กŒไบ†ๅฐๅน…้‡ๆž„๏ผŒๅขžๅผบไบ†ๅฏ่ฏปๆ€งใ€‚

Possibly related PRs

  • fix: improve keybinding performanceย #4126: ๆญคPRๅ…ณๆณจไบŽๆ”นๅ–„้”ฎ็ป‘ๅฎšๆ€ง่ƒฝ๏ผŒไธŽไธปPRไธญ LibroKeybindContribution ็ฑป็š„ registerKeybindings ๆ–นๆณ•็š„ไฟฎๆ”น็›ดๆŽฅ็›ธๅ…ณ๏ผŒๅ‡ๆถ‰ๅŠ้”ฎ็ป‘ๅฎš็š„็ฎก็†ๅ’Œๆณจๅ†Œใ€‚

Suggested labels

๐Ÿž bug

Suggested reviewers

  • bytemain
  • Ricbet
  • erha19

Warning

There were issues while running some tools. Please review the errors and either fix the toolโ€™s configuration or disable the tool if itโ€™s a critical failure.

๐Ÿ”ง eslint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

warning [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning eslint > @humanwhocodes/[email protected]: Use @eslint/config-array instead
warning eslint > @humanwhocodes/config-array > @humanwhocodes/[email protected]: Use @eslint/object-schema instead
warning eslint > file-entry-cache > flat-cache > [email protected]: Rimraf versions prior to v4 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning eslint-import-resolver-typescript > [email protected]: Glob versions prior to v9 are no longer supported
error Couldn't find any versions for "@opensumi/ide-dev-tool" that matches "workspace:*"


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

โค๏ธ Share
๐Ÿชง Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

๐Ÿงน Outside diff range and nitpick comments (1)
packages/notebook/src/browser/libro-keybind-contribution.ts (1)

Line range hint 89-119: ไฟฎๅค้”ฎ็ป‘ๅฎšไธญ็ฉบ็š„ๅ‘ฝไปคๅญ—ๆฎต

ๅœจ registerKeybindings ๆ–นๆณ•ไธญ๏ผŒ'f1'ใ€'f8'ใ€'f9' ้”ฎ็ป‘ๅฎš็š„ command ๅญ—ๆฎตไธบ็ฉบ๏ผŒๅฏ่ƒฝๅฏผ่‡ด้”ฎ็ป‘ๅฎšๆ— ๆณ•็”Ÿๆ•ˆใ€‚่ฏทไธบ่ฟ™ไบ›้”ฎ็ป‘ๅฎšๆŒ‡ๅฎšๆญฃ็กฎ็š„ๅ‘ฝไปคใ€‚

่ฏทๅบ”็”จไปฅไธ‹ไฟฎๆ”น๏ผš

{
  keybinding: 'f1',
- command: '',
+ command: '้œ€่ฆๆ‰ง่กŒ็š„ๅ‘ฝไปคID',
  when: 'libroNotebookFocused',
},
{
  keybinding: 'f8',
- command: '',
+ command: '้œ€่ฆๆ‰ง่กŒ็š„ๅ‘ฝไปคID',
  when: 'libroNotebookFocused',
},
{
  keybinding: 'f9',
- command: '',
+ command: '้œ€่ฆๆ‰ง่กŒ็š„ๅ‘ฝไปคID',
  when: 'libroNotebookFocused',
},

่ฏทๅฐ† '้œ€่ฆๆ‰ง่กŒ็š„ๅ‘ฝไปคID' ๆ›ฟๆขไธบๅฎž้™…็š„ๅ‘ฝไปคๆ ‡่ฏ†็ฌฆใ€‚

๐Ÿ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 72365ba and 94874f6.

๐Ÿ“’ Files selected for processing (2)
  • packages/notebook/src/browser/libro-keybind-contribution.ts (2 hunks)
  • packages/notebook/src/browser/libro/libro-opensumi-content-contribution.ts (2 hunks)
๐Ÿ”‡ Additional comments (7)
packages/notebook/src/browser/libro/libro-opensumi-content-contribution.ts (2)

16-16: ่กจ่พพๅผๆ ผๅผไผ˜ๅŒ–

ๆ‹ฌๅท็š„ๆทปๅŠ ๆ้ซ˜ไบ†ๆกไปถ่กจ่พพๅผ็š„ๅฏ่ฏปๆ€ง๏ผŒ่ฟ™ๆ˜ฏไธ€ไธชๅฅฝ็š„ๆ”น่ฟ›ใ€‚


36-37: ้ชŒ่ฏๆ–‡ไปถๅๅค„็†็š„ๆ”นๅŠจๅฝฑๅ“

ๅฐ† uri.path.name ๆ”นไธบ uri.path.base ๆ˜ฏไธ€ไธช้‡่ฆๅ˜ๆ›ด๏ผŒ้œ€่ฆ็กฎไฟๅœจๆ‰€ๆœ‰ๅœบๆ™ฏไธ‹้ƒฝ่ƒฝๆญฃ็กฎๅค„็†ๆ–‡ไปถๅใ€‚ๅฆๅค–๏ผŒTODO ๆณจ้‡Šๆๅˆฐ็š„็ฌ”่ฎฐๆœฌๆ น็›ฎๅฝ•้—ฎ้ข˜้œ€่ฆ่ฟ›ไธ€ๆญฅ่ฎจ่ฎบใ€‚

่ฟ่กŒไปฅไธ‹่„šๆœฌๆฅ้ชŒ่ฏ็›ธๅ…ณไปฃ็ ๏ผš

โœ… Verification successful

Let me gather more information about the URI path handling in the codebase.


ๆ–‡ไปถๅๅค„็†ๆ”นๅŠจๅทฒๅพ—ๅˆฐ้ชŒ่ฏ

ไปฃ็ ๅบ“ไธญๅทฒๅนฟๆณ›ไฝฟ็”จ uri.path.base ไฝœไธบ่Žทๅ–ๆ–‡ไปถๅ็š„ๆ ‡ๅ‡†ๆ–นๅผ๏ผŒๅŒ…ๆ‹ฌ็ผ–่พ‘ๅ™จใ€ๆ–‡ไปถๆ ‘ใ€่ฐƒ่ฏ•็ญ‰ๅคšไธชๆ ธๅฟƒๆจกๅ—ใ€‚ๅฐ† uri.path.name ๆ”นไธบ uri.path.base ๆ˜ฏ็ฌฆๅˆ้กน็›ฎ่ง„่Œƒ็š„ๆญฃ็กฎๆ”นๅŠจใ€‚

ๅ…ณไบŽ็ฌ”่ฎฐๆœฌๆ น็›ฎๅฝ•็š„ TODO ๆณจ้‡Š๏ผš

  • ่ฟ™ๆ˜ฏไธ€ไธชๅทฒ็Ÿฅ็š„ๅฑ€้™ๆ€ง๏ผŒ็”ฑไบŽ Jupyter ๆœชๆไพ›่Žทๅ–ๆ น็›ฎๅฝ•็š„ API
  • ็›ฎๅ‰็š„ๅฎž็Žฐๆ˜ฏไธ€ไธชๅˆ็†็š„ไธดๆ—ถๆ–นๆกˆ
  • ๅปบ่ฎฎๅœจ Jupyter ๆไพ›็›ธๅ…ณ API ๅŽๅ†ไผ˜ๅŒ–ๆญคๅค„็†้€ป่พ‘
๐Ÿ Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# ๆ่ฟฐ๏ผšๆฃ€ๆŸฅไปฃ็ ๅบ“ไธญๆ˜ฏๅฆๅญ˜ๅœจๅ…ถไป–ไฝฟ็”จ uri.path.name ็š„ๅœฐๆ–น๏ผŒไปฅๅŠ็ฌ”่ฎฐๆœฌๆ น็›ฎๅฝ•็š„็›ธๅ…ณๅฎž็Žฐ

# ๆœ็ดข uri.path.name ็š„ไฝฟ็”จ
rg "uri\.path\.name"

# ๆœ็ดข็ฌ”่ฎฐๆœฌๆ น็›ฎๅฝ•็›ธๅ…ณ็š„ๅฎž็Žฐ
rg -i "notebook.*root.*dir|notebook.*root.*path"

Length of output: 508


Script:

#!/bin/bash
# Check the implementation and usage of uri.path.base
rg "uri\.path\.base"

# Check the context of workspace-variable-contribution.ts where uri.path.name is used
rg -A 5 -B 5 "uri\.path\.name" packages/workspace/src/browser/workspace-variable-contribution.ts

# Check the context of resource.ts where uri.path.name is used
rg -A 5 -B 5 "uri\.path\.name" packages/core-browser/src/contextkey/resource.ts

Length of output: 2292

packages/notebook/src/browser/libro-keybind-contribution.ts (5)

1-1: ๅฏผๅ…ฅๆจกๅ—ๆญฃ็กฎ

ๅฟ…่ฆ็š„ๆจกๅ—ๅทฒๆญฃ็กฎๅฏผๅ…ฅ๏ผŒ็กฎไฟไบ†ๅŠŸ่ƒฝ็š„ๆญฃๅธธไฝฟ็”จใ€‚


7-14: ๆ–ฐๅขžๆŽฅๅฃๅฏผๅ…ฅ็กฎไฟๅŠŸ่ƒฝๆ‰ฉๅฑ•

ๅฏผๅ…ฅไบ† CommandContributionใ€KeybindingContribution ็ญ‰ๆŽฅๅฃ๏ผŒๆปก่ถณไบ†ๅŽ็ปญๅฎž็Žฐ็›ธๅบ”ๅŠŸ่ƒฝ็š„้œ€ๆฑ‚ใ€‚


21-22: ็ฑปๅฃฐๆ˜Žๆ›ดๆ–ฐ็ฌฆๅˆ่ฎพ่ฎก่ฆๆฑ‚

LibroKeybindContribution ็ฑป็Žฐๅœจๅฎž็Žฐไบ† ClientAppContributionใ€KeybindingContribution ๅ’Œ CommandContribution ๆŽฅๅฃ๏ผŒ็กฎไฟ็ฑปๅ…ทๅค‡็›ธๅบ”็š„ๅŠŸ่ƒฝ๏ผŒๅฎž็Žฐไบ†ๆ‰€้œ€็š„ๅฅ‘็บฆใ€‚


36-36: ๆˆๅŠŸๅˆ›ๅปบไธŠไธ‹ๆ–‡้”ฎ

ๅˆ›ๅปบไบ†ไธŠไธ‹ๆ–‡้”ฎ libroNotebookFocused๏ผŒๅˆๅง‹ๅ€ผ่ฎพไธบ false๏ผŒๆœ‰ๅŠฉไบŽๅœจไธๅŒ็ป„ไปถ้—ดๅ…ฑไบซ็Šถๆ€ใ€‚


31-33: ็กฎ่ฎค็”Ÿๅ‘ฝๅ‘จๆœŸๆ–นๆณ•็š„ๆญฃ็กฎๆ›ฟๆข

onStart() ๆ–นๆณ•่ขซๆ›ฟๆขไธบ initialize()ใ€‚่ฏท็กฎไฟๆญคๆ›ดๆ”น็ฌฆๅˆๆก†ๆžถๅฏน็”Ÿๅ‘ฝๅ‘จๆœŸๆ–นๆณ•็š„ๆœŸๆœ›๏ผŒไปฅ้ฟๅ…ๅˆๅง‹ๅŒ–้—ฎ้ข˜ใ€‚

ไธบ็กฎ่ฎคๆก†ๆžถ้ข„ๆœŸ็š„็”Ÿๅ‘ฝๅ‘จๆœŸๆ–นๆณ•๏ผŒๅปบ่ฎฎ่ฟ่กŒไปฅไธ‹่„šๆœฌ๏ผš

โœ… Verification successful

Let me gather more information about the lifecycle methods in the codebase.


็”Ÿๅ‘ฝๅ‘จๆœŸๆ–นๆณ•ๆ›ฟๆขๆ˜ฏๆญฃ็กฎ็š„

ๆ นๆฎ ClientAppContribution ๆŽฅๅฃ็š„ๅฎšไน‰๏ผŒinitialize() ๆ˜ฏๆก†ๆžถ้ข„ๆœŸ็š„ๅฏ้€‰็”Ÿๅ‘ฝๅ‘จๆœŸๆ–นๆณ•๏ผŒ็”จไบŽๅœจๅบ”็”จๅฏๅŠจๆ—ถใ€ๅœจๅ‘ฝไปคใ€ๆŒ‰้”ฎ็ป‘ๅฎšๅ’Œ่œๅ•ๅˆๅง‹ๅŒ–ไน‹ๅ‰ๆ‰ง่กŒใ€‚่ฟ™ไธชๆ›ฟๆขๆ˜ฏ็ฌฆๅˆๆก†ๆžถ่ฎพ่ฎก็š„ใ€‚

๐Ÿ Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# ๆฃ€ๆŸฅๅฎž็Žฐไบ† ClientAppContribution ๆŽฅๅฃ็š„็ฑป๏ผŒไฝฟ็”จไบ†ๅ“ชไบ›็”Ÿๅ‘ฝๅ‘จๆœŸๆ–นๆณ•

rg 'class .* implements .*ClientAppContribution' -A 5 | rg 'initialize\(\)|onStart\(\)'

Length of output: 455


Script:

#!/bin/bash
# ๆฃ€ๆŸฅ ClientAppContribution ๆŽฅๅฃ็š„ๅฎšไน‰
rg "interface.*ClientAppContribution" -A 10

# ๆฃ€ๆŸฅๆ›ดๅคšไฝฟ็”จ initialize() ็š„็คบไพ‹
ast-grep --pattern 'initialize() {
  $$$
}'

# ๆฃ€ๆŸฅๆ›ดๅคšไฝฟ็”จ onStart() ็š„็คบไพ‹
ast-grep --pattern 'onStart() {
  $$$
}'

Length of output: 1116

Comment on lines +55 to +81
registerCommands(commands: CommandRegistry) {
commands.registerCommand(NotebookCommands['EnterCommandMode'], {
execute: () => {
this.libroCommandRegistry.executeCommand(NotebookCommands['EnterCommandMode'].id);
},
});
this.commandRegistry.registerCommand(NotebookCommands['RunCell'], {
commands.registerCommand(NotebookCommands['RunCell'], {
execute: () => {
this.libroCommandRegistry.executeCommand(NotebookCommands['RunCell'].id);
},
});
this.commandRegistry.registerCommand(NotebookCommands['RunCellAndSelectNext'], {
commands.registerCommand(NotebookCommands['RunCellAndSelectNext'], {
execute: () => {
this.libroCommandRegistry.executeCommand(NotebookCommands['RunCellAndSelectNext'].id);
},
});
this.commandRegistry.registerCommand(NotebookCommands['RunCellAndInsertBelow'], {
commands.registerCommand(NotebookCommands['RunCellAndInsertBelow'], {
execute: () => {
this.libroCommandRegistry.executeCommand(NotebookCommands['RunCellAndInsertBelow'].id);
},
});
this.commandRegistry.registerCommand(NotebookCommands['SplitCellAntCursor'], {
commands.registerCommand(NotebookCommands['SplitCellAntCursor'], {
execute: () => {
this.libroCommandRegistry.executeCommand(NotebookCommands['SplitCellAntCursor'].id);
},
});
this.commandRegistry.registerCommand(LibroSearchToggleCommand.ShowLibroSearch, {
commands.registerCommand(LibroSearchToggleCommand.ShowLibroSearch, {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ› ๏ธ Refactor suggestion

ๅปบ่ฎฎไผ˜ๅŒ–ๅ‘ฝไปคๆณจๅ†Œไปฅๅ‡ๅฐ‘้‡ๅคไปฃ็ 

registerCommands ๆ–นๆณ•ไธญๅคšๆฌก้‡ๅคๆณจๅ†Œๅ‘ฝไปค๏ผŒๅปบ่ฎฎๆๅ–ๅ…ฌๅ…ฑ้€ป่พ‘๏ผŒไฝฟ็”จๅพช็Žฏๆˆ–ๆ˜ ๅฐ„ๆฅ็ฎ€ๅŒ–ไปฃ็ ๏ผŒๆๅ‡ๅฏ่ฏปๆ€งๅ’Œๅฏ็ปดๆŠคๆ€งใ€‚

ๅฏไปฅ่€ƒ่™‘ๅฆ‚ไธ‹ไฟฎๆ”น๏ผš

registerCommands(commands: CommandRegistry) {
  const notebookCommands = [
    NotebookCommands['EnterCommandMode'],
    NotebookCommands['RunCell'],
    NotebookCommands['RunCellAndSelectNext'],
    NotebookCommands['RunCellAndInsertBelow'],
    NotebookCommands['SplitCellAntCursor'],
    LibroSearchToggleCommand.ShowLibroSearch,
  ];

  notebookCommands.forEach((command) => {
    commands.registerCommand(command, {
      execute: () => {
        this.libroCommandRegistry.executeCommand(command.id);
      },
    });
  });
}

Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests โœ…

Project coverage is 54.07%. Comparing base (72365ba) to head (94874f6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4174   +/-   ##
=======================================
  Coverage   54.07%   54.07%           
=======================================
  Files        1611     1611           
  Lines       97846    97846           
  Branches    20039    20031    -8     
=======================================
  Hits        52914    52914           
  Misses      37327    37327           
  Partials     7605     7605           
Flag Coverage ฮ”
jsdom 49.64% <รธ> (รธ)
node 15.57% <รธ> (รธ)

Flags with carried forward coverage won't be shown. Click here to find out more.

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐Ÿž bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants