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

🎉 For Denops v7 #8

Merged
merged 11 commits into from
Jul 20, 2024
Merged

🎉 For Denops v7 #8

merged 11 commits into from
Jul 20, 2024

Conversation

lambdalisue
Copy link
Member

@lambdalisue lambdalisue commented Jun 1, 2024

Ref

Summary by CodeRabbit

  • New Features

    • Added support for asynchronous resource disposal upon plugin unloading.
    • Introduced a new interrupted property in the Denops interface.
  • Documentation

    • Updated README to recommend using @denops/std and added examples for using the Entrypoint type.
  • Chores

    • Added new file deno.lock to the repository.
    • Updated import paths in configuration files and module links for better consistency.
  • CI/CD

    • Integrated a new testing step for documentation in the GitHub workflow.

Copy link

coderabbitai bot commented Jun 1, 2024

Walkthrough

This update enhances the Denops interface with an optional interrupted property for better task management and modifies the Entrypoint type to allow returning AsyncDisposable for efficient resource cleanup. The CI workflow includes a new testing step, while file references are standardized to improve clarity on module usage.

Changes

Files Change Summary
denops.ts Denops Interface: Added interrupted property. Entrypoint Type: Now allows returning AsyncDisposable.
.github/workflows/test.yml Added a new step "Test doc" for running Deno tasks in the GitHub Actions workflow.
.gitignore Added deno.lock to ignore list.
README.md, mod.ts Updated module references to use @denops/std and adjusted URLs for clarity on best practices.
deno.jsonc Updated import path for denops_core to "jsr:@denops/core".

Poem

The code evolves, in steps it strides,
With AbortSignal, safe divides.
Async disposal, clear and neat,
Our Denops now stands more complete.
Amidst the paths and badges trim,
The workflow steps robust and prim!
🌟🍃


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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 as 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.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

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

@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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between dae4ca5 and 654c7eb.

Files selected for processing (1)
  • denops.ts (1 hunks)

denops.ts Outdated Show resolved Hide resolved
@lambdalisue lambdalisue changed the title 🎉 Denops v7 🎉 For Denops v7 Jul 8, 2024
Copy link

@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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 654c7eb and cecefc5.

Files selected for processing (6)
  • .github/workflows/test.yml (1 hunks)
  • .gitignore (1 hunks)
  • README.md (1 hunks)
  • deno.jsonc (1 hunks)
  • denops.ts (2 hunks)
  • mod.ts (1 hunks)
Files skipped from review due to trivial changes (4)
  • .gitignore
  • README.md
  • deno.jsonc
  • mod.ts
Additional context used
Biome
denops.ts

[error] 178-178: void is confusing inside a union type.

Unsafe fix: Use undefined instead.

(lint/suspicious/noConfusingVoidType)

Additional comments not posted (2)
.github/workflows/test.yml (1)

35-36: LGTM! The new step "Test doc" is correctly configured.

The step runs a Deno task for documentation testing, which is a good practice to ensure documentation accuracy.

denops.ts (1)

77-80: LGTM! The interrupted property is correctly defined.

The property is an optional AbortSignal, which can be useful for handling interruptions.

Ensure proper integration of this property in the codebase.

denops.ts Show resolved Hide resolved
Copy link

@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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between cecefc5 and ca4b89d.

Files selected for processing (2)
  • README.md (1 hunks)
  • mod.ts (1 hunks)
Files skipped from review due to trivial changes (1)
  • mod.ts
Additional comments not posted (4)
README.md (4)

10-11: Approved: Clarification on module usage.

The change emphasizes the recommended practice of using the @denops/std module, which enhances clarity for users.


16-17: Approved: Added reference link.

The change provides a useful reference link to the @denops/std module.


18-24: Approved: Added usage section with warning.

The new usage section with a warning provides clear guidance to users about the recommended module usage.


25-31: Approved: Added usage example.

The code snippet demonstrates how to import and use the Entrypoint type from the denops_core module, which is helpful for users.

@lambdalisue lambdalisue merged commit c4b41ce into main Jul 20, 2024
3 checks passed
@lambdalisue lambdalisue deleted the v7-pre branch July 20, 2024 04:03
Copy link

@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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between ca4b89d and cbe82eb.

Files selected for processing (2)
  • README.md (1 hunks)
  • mod.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • mod.ts
Additional context used
LanguageTool
README.md

[uncategorized] ~6-~6: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...], an ecosystem for creating Vim/Neovim plugin in [Deno]. > [!WARNING] > > This modul...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)

Additional comments not posted (4)
README.md (4)

9-13: LGTM!

The warning about the discouraged usage of the module and the recommendation to use the @denops/std module is clear and well-placed.


15-20: LGTM!

The code snippet demonstrating how to import and use the Entrypoint type from the denops_core module is clear and helpful.


25-26: LGTM!

The reference to the @denops/std module is correct and aligns with the recommendation in the warning section.


27-31: LGTM!

The licensing information remains unchanged and is accurate.

Comment on lines +6 to +7
This is a core module of [denops.vim], an ecosystem for creating Vim/Neovim
plugin in [Deno].
Copy link

Choose a reason for hiding this comment

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

Correct the grammatical number.

The noun "plugin" should be pluralized to "plugins" for grammatical correctness.

- plugin in [Deno].
+ plugins in [Deno].
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
This is a core module of [denops.vim], an ecosystem for creating Vim/Neovim
plugin in [Deno].
This is a core module of [denops.vim], an ecosystem for creating Vim/Neovim
plugins in [Deno].
Tools
LanguageTool

[uncategorized] ~6-~6: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...], an ecosystem for creating Vim/Neovim plugin in [Deno]. > [!WARNING] > > This modul...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants