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

Bump version to Vim 9.1.0448 and Nvim 0.10.0 #247

Merged
merged 7 commits into from
Jul 30, 2024
Merged

Bump version to Vim 9.1.0448 and Nvim 0.10.0 #247

merged 7 commits into from
Jul 30, 2024

Conversation

Milly
Copy link
Contributor

@Milly Milly commented Jul 29, 2024

Changes in 1470dcd are invalid, that version has been revised in the official version of v7.
vim-denops/denops.vim#344

This PR contains parser fixes for help format changes.

Summary by CodeRabbit

  • New Features

    • Updated version constants for VIM and NVIM, enhancing compatibility with the latest functionalities of these editors.
    • Introduced new global option termsync to improve terminal redraw performance.
    • Added new local options smoothscroll and winfixbuf for enhanced scrolling and window management.
  • Bug Fixes

    • Improved error handling and parsing logic, providing clearer feedback on issues encountered during processing.
  • Documentation

    • Enhanced documentation for various functions and options, clarifying usage and updating examples for better understanding.

Milly added 7 commits July 30, 2024 05:43
In Neovim 0.10.0, `(default ...)` in `options.txt` is indented with
spaces instead of tabs when it contains newlines.
Changes in 1470dcd are invalid, that version has been revised in the
official version of v7.
See: vim-denops/denops.vim#344
Copy link

coderabbitai bot commented Jul 29, 2024

Walkthrough

This update introduces several enhancements across multiple scripts, focusing on version upgrades for VIM and NVIM, improvements in error handling, and modifications to parsing logic. Functionality is expanded with new features, streamlined options, and refined documentation to boost usability. The changes aim to enhance performance, clarity, and user experience while maintaining compatibility with existing systems.

Changes

Files Change Summary
.scripts/gen-function/gen-function.ts, .scripts/gen-option/gen-option.ts Updated version constants for VIM and NVIM; improved help documentation handling in gen-option.ts.
.scripts/gen-option/parse.ts Enhanced error handling by adding context to errors; refined regular expression for default values.
.scripts/markdown.ts Modified regex in createMarkdownFromHelp for capturing additional groups; no signature change.
.scripts/utils.ts Improved error handling in downloadString to check HTTP status codes.
function/_generated.ts Added new utility functions for data manipulation and testing within the Denops environment.
function/common.ts Enhanced documentation for exists function; no functionality changes.
function/nvim/_generated.ts Removed numerous functions indicating a refactor; added new functions with updated signatures.
function/nvim/nvim_open_win.ts Expanded documentation for nvim_open_win; clarified parameter requirements and behaviors.
function/nvim/nvim_win_set_config.ts Clarified documentation regarding window movement constraints; no functionality changes.
function/vim/_generated.ts Removed multiple exported functions, streamlining the API.
option/_generated.ts Added smoothscroll and winfixbuf options; updated documentation for existing options.
option/nvim/_generated.ts Introduced termsync global option; improved formatting in documentation.
option/vim/_generated.ts Removed smoothscroll and winfixbuf options, indicating a change in functionality.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant App
    participant API

    User->>App: Request to update settings
    App->>API: Send new options
    API-->>App: Acknowledge changes
    App-->>User: Confirm update success
Loading

🐇 In the meadow, hopping with glee,
New functions and fixes, oh what a spree!
VIM and NVIM, they dance and they play,
With smoother scrolling to brighten the day.
Options abound, like carrots in bloom,
Celebrate changes that lighten the gloom! 🌼


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

Outside diff range, codebase verification and nitpick comments (13)
function/vim/_generated.ts (11)

The function test_garbagecollect_now is still present in the codebase.

Please ensure that all references to the test_garbagecollect_now function are removed or updated to prevent potential runtime errors.

  • function/_generated.ts: The function test_garbagecollect_now is still defined and referenced.
Analysis chain

Line range hint 1-1:
Verify the removal of test_garbagecollect_now.

Ensure that all references to the test_garbagecollect_now function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `test_garbagecollect_now` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'test_garbagecollect_now'

Length of output: 86


Script:

#!/bin/bash
# Description: Verify all references to the `test_garbagecollect_now` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg -A 5 $'test_garbagecollect_now'

Length of output: 959


Ensure removal of luaeval function and references.

The luaeval function and its references are still present in the function/_generated.ts file. Please remove the following occurrences to prevent potential runtime errors:

  • function/_generated.ts: * See lua-luaeval for more details.
  • function/_generated.ts: * GetExpr()->luaeval()
  • function/_generated.ts:export function luaeval(denops: Denops, ...args: unknown[]): Promise<unknown> {
  • function/_generated.ts: return denops.call("luaeval", ...args);
Analysis chain

Line range hint 1-1:
Verify the removal of luaeval.

Ensure that all references to the luaeval function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `luaeval` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'luaeval'

Length of output: 70


Script:

#!/bin/bash
# Description: Verify all references to the `luaeval` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type ts -A 5 luaeval

Length of output: 1149


Verify the removal of maplist.

The maplist function is still referenced multiple times in the function/_generated.ts file. Ensure that all references to the maplist function have been removed or updated to prevent runtime errors and maintain accurate documentation.

  • function/_generated.ts: Multiple references to maplist found.
Analysis chain

Line range hint 1-1:
Verify the removal of maplist.

Ensure that all references to the maplist function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `maplist` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'maplist'

Length of output: 70


Script:

#!/bin/bash
# Description: Verify all references to the `maplist` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --glob '*.ts' -A 5 $'maplist'

Length of output: 3394


The assert_equal function is still present in the codebase.

The search results indicate that the assert_equal function and its references are still present in function/_generated.ts. Please ensure that all instances of this function are fully removed if the intention was to eliminate it from the codebase.

  • function/_generated.ts
Analysis chain

Line range hint 1-1:
Verify the removal of assert_equal.

Ensure that all references to the assert_equal function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `assert_equal` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'assert_equal'

Length of output: 75


Script:

#!/bin/bash
# Description: Verify all references to the `assert_equal` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type ts -A 5 $'assert_equal'

Length of output: 3252


Issues Found:

The slice function is still being referenced in multiple files across the codebase. Removing the function from function/_generated.ts without addressing these references will likely result in runtime errors.

  • helper/expr_string.ts
  • function/_generated.ts
  • buffer/fileformat.ts
  • argument/opts.ts
  • argument/flags.ts

Please ensure that all references to the slice function are either removed or appropriately updated.

Analysis chain

Line range hint 1-1:
Verify the removal of slice.

Ensure that all references to the slice function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `slice` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'slice'

Length of output: 68


Script:

#!/bin/bash
# Description: Verify all references to the `slice` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type ts -A 5 $'slice'

Length of output: 3232


Ensure all references to the state function are removed or updated.

The state function is still referenced in multiple files. To prevent runtime errors, please update or remove the following references:

  • function/_generated.ts
  • function/various.ts
  • option/vim/_generated.ts
  • option/_generated.ts
  • option/nvim/_generated.ts
  • function/nvim/_generated.ts
  • function/cursor.ts
  • helper/echo.ts
Analysis chain

Line range hint 1-1:
Verify the removal of state.

Ensure that all references to the state function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `state` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'state'

Length of output: 68


Script:

#!/bin/bash
# Description: Verify all references to the `state` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --glob '*.ts' -A 5 $'state'

Length of output: 12196


The assert_false function has not been fully removed.

The assert_false function is still defined and referenced in the function/_generated.ts file. Please ensure all instances of this function are removed or updated to prevent runtime errors.

  • function/_generated.ts:
    • Line with call assert_false(1, 'command should have failed')
    • Line with GetResult()->assert_false()
    • Function definition and export of assert_false
Analysis chain

Line range hint 1-1:
Verify the removal of assert_false.

Ensure that all references to the assert_false function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `assert_false` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'assert_false'

Length of output: 75


Script:

#!/bin/bash
# Description: Verify all references to the `assert_false` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg 'assert_false' --glob '*.ts' -A 5

Length of output: 1166


The swapfilelist function is still present in the codebase.

The function swapfilelist was expected to be removed, but it is still found in the following locations:

  • function/_generated.ts: Multiple references

Please review and ensure that all references to the swapfilelist function are removed if it is intended to be deleted.

Analysis chain

Line range hint 1-1:
Verify the removal of swapfilelist.

Ensure that all references to the swapfilelist function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `swapfilelist` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'swapfilelist'

Length of output: 75


Script:

#!/bin/bash
# Description: Verify all references to the `swapfilelist` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type ts -A 5 $'swapfilelist'

Length of output: 756


The matchstrlist function is still present in the codebase.

The matchstrlist function has not been fully removed. It is still referenced and defined in the function/_generated.ts file at the following locations:

  • Lines showing usage examples and documentation.
  • Lines defining and exporting the function.

Please ensure that all references to the matchstrlist function are removed or updated to prevent any inconsistencies.

Analysis chain

Line range hint 1-1:
Verify the removal of matchstrlist.

Ensure that all references to the matchstrlist function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `matchstrlist` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'matchstrlist'

Length of output: 75


Script:

#!/bin/bash
# Description: Verify all references to the `matchstrlist` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type ts -A 5 $'matchstrlist'

Length of output: 1912


The utf16idx function has not been removed.

The search results indicate that the utf16idx function is still present in the function/_generated.ts file, including its definition and references in the documentation.

  • function/_generated.ts: Multiple occurrences of utf16idx are found, including its function definition and documentation.

Please ensure that all references to the utf16idx function are removed or updated to prevent any potential runtime errors.

Analysis chain

Line range hint 1-1:
Verify the removal of utf16idx.

Ensure that all references to the utf16idx function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `utf16idx` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'utf16idx'

Length of output: 71


Script:

#!/bin/bash
# Description: Verify all references to the `utf16idx` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg -A 5 $'utf16idx'

Length of output: 2132


Script:

#!/bin/bash
# Description: Verify all references to the `utf16idx` function have been removed or updated.

# Test: Search for the function usage across the entire codebase. Expect: No occurrences of the old function.
rg -A 5 $'utf16idx'

Length of output: 2132


The mapnew function has not been removed.

The mapnew function is still defined and referenced in the codebase, specifically in function/_generated.ts. Please review the following occurrences:

  • function/_generated.ts:
    • Lines mentioning mapnew in comments and function definitions.

Please ensure that the removal of the mapnew function is correctly implemented if it is intended to be removed.

Analysis chain

Line range hint 1-1:
Verify the removal of mapnew.

Ensure that all references to the mapnew function have been removed or updated to prevent runtime errors.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `mapnew` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type typescript -A 5 $'mapnew'

Length of output: 69


Script:

#!/bin/bash
# Description: Verify all references to the `mapnew` function have been removed or updated.

# Test: Search for the function usage. Expect: No occurrences of the old function.
rg --type ts -A 5 $'mapnew'

Length of output: 1394

option/vim/_generated.ts (2)

Issues found: Incomplete removal of smoothscroll

The removal of smoothscroll is incomplete, and there are still multiple references to it in the codebase that need to be addressed:

  • option/_generated.ts: Lines 12803, 12805, 12809, 12812, 12815, 12819, 12822, 12825, 12829, 12832, and 12836.
  • function/nvim/_generated.ts: Line 3400.

Please ensure these references are removed or updated to prevent any potential issues.

Analysis chain

Line range hint 1-1:
Verify the impact of removing smoothscroll.

The removal of smoothscroll might affect functionalities related to smooth scrolling. Ensure there are no dangling references or broken functionalities.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the removal of `smoothscroll`.

# Test: Search for references to `smoothscroll`. Expect: No references found.
rg --type typescript 'smoothscroll'

Length of output: 70


Script:

#!/bin/bash
# Description: Verify the removal of `smoothscroll`.

# Test: Search for references to `smoothscroll`. Expect: No references found.
rg --type ts 'smoothscroll'

Length of output: 1017


Script:

#!/bin/bash
# Description: List lines containing `smoothscroll` in the relevant files for detailed inspection.

# List lines in `option/_generated.ts`
rg --type ts 'smoothscroll' option/_generated.ts -n

# List lines in `function/nvim/_generated.ts`
rg --type ts 'smoothscroll' function/nvim/_generated.ts -n

Length of output: 912


Issues found due to the removal of winfixbuf.

The removal of winfixbuf from option/vim/_generated.ts leaves several active references in the codebase, which could lead to broken functionalities related to window buffer pairing behavior. Please ensure that all references to winfixbuf are appropriately handled before proceeding with its removal.

  • References found in option/_generated.ts:
    • export const winfixbuf: LocalOption<boolean> = { ... }
    • Functions using winfixbuf for getting, setting, and removing options.
Analysis chain

Line range hint 1-1:
Verify the impact of removing winfixbuf.

The removal of winfixbuf might affect functionalities related to window buffer pairing behavior. Ensure there are no dangling references or broken functionalities.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the removal of `winfixbuf`.

# Test: Search for references to `winfixbuf`. Expect: No references found.
rg --type typescript 'winfixbuf'

Length of output: 67


Script:

#!/bin/bash
# Description: Verify the removal of `winfixbuf`.

# Test: Search for references to `winfixbuf`. Expect: No references found.
rg --type-add 'ts:*.ts' 'winfixbuf'

Length of output: 1073


Script:

#!/bin/bash
# Description: Verify the context of `winfixbuf` references.

# Test: Check the context of `winfixbuf` references to see if they are commented out or still active.
rg --type-add 'ts:*.ts' 'winfixbuf' -A 3 -B 3

Length of output: 3236

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 52419c7 and 4b1f9d4.

Files selected for processing (15)
  • .scripts/gen-function/gen-function.ts (1 hunks)
  • .scripts/gen-function/parse.ts (1 hunks)
  • .scripts/gen-option/gen-option.ts (3 hunks)
  • .scripts/gen-option/parse.ts (3 hunks)
  • .scripts/markdown.ts (1 hunks)
  • .scripts/utils.ts (1 hunks)
  • function/_generated.ts (14 hunks)
  • function/common.ts (3 hunks)
  • function/nvim/_generated.ts (115 hunks)
  • function/nvim/nvim_open_win.ts (5 hunks)
  • function/nvim/nvim_win_set_config.ts (1 hunks)
  • function/vim/_generated.ts (9 hunks)
  • option/_generated.ts (3 hunks)
  • option/nvim/_generated.ts (13 hunks)
  • option/vim/_generated.ts (2 hunks)
Files skipped from review due to trivial changes (2)
  • .scripts/gen-function/gen-function.ts
  • function/common.ts
Additional comments not posted (61)
function/nvim/nvim_win_set_config.ts (2)

6-7: Documentation update improves clarity.

The added note about not being able to move the last window in a tabpage is clear and helpful.


9-10: Generalized documentation improves understanding.

Changing "floating window" to "a window" broadens the context and improves clarity.

.scripts/utils.ts (1)

9-9: Improved error handling.

Checking the response status for 400 or higher ensures better error handling for unsuccessful HTTP requests.

.scripts/gen-option/gen-option.ts (2)

8-9: Version updates.

Updating VIM to 9.1.0448 and NVIM to 0.10.0 ensures compatibility with the latest features and fixes.


39-39: Improved parsing logic.

Concatenating help documents into a single string before parsing simplifies the logic and may improve performance.

.scripts/markdown.ts (2)

15-16: Verify the necessity and future use of the _ft capturing group.

The regex pattern has been updated to include a named capturing group (?<ft>\w*), but the captured group _ft is currently not used in the callback function. Ensure that this change is necessary and consider utilizing or removing the _ft group to avoid confusion.


16-18: Verify the necessity and future use of the _ft parameter.

The _ft parameter is introduced in the callback function but is currently unused. Ensure that this change is necessary and consider utilizing or removing the _ft parameter to avoid confusion.

.scripts/gen-option/parse.ts (4)

32-32: LGTM! Improved error reporting with block property.

The addition of the block property to the errors array enhances the error reporting mechanism by providing better context for debugging.


48-61: LGTM! Enhanced error messages with block context.

The updated error handling logic provides more informative error messages by including the relevant block of text associated with each parsing error, improving the debugging experience.


113-114: LGTM! Improved regex pattern for multiline default values.

The refined regex pattern for default values improves the robustness of the parsing logic by correctly handling multiline default values that are indented with either tabs or spaces.


Line range hint 113-119:
LGTM! Enhanced parsing logic and error reporting.

The updated parseBlock function includes the refined regex pattern for default values and the improved error handling logic, collectively enhancing the functionality of the parse function.

.scripts/gen-function/parse.ts (2)

61-61: LGTM! Improved error message format.

The adjusted error message format enhances clarity in the output by clearly distinguishing the function name, improving the debugging experience.


63-65: LGTM! Enhanced error context with block markers.

The new console error statements provide better context by logging the content of the block being parsed, aiding in debugging by allowing developers to see the exact content that caused the failure.

function/nvim/nvim_open_win.ts (12)

4-25: Documentation improvements are clear and accurate.

The enhancements to the documentation provide clear instructions on the parameters and capabilities of the nvim_open_win function.


38-53: Example section improvements are clear and effective.

The enhanced examples provide clear and structured demonstrations of how to use the nvim_open_win function with various parameters.


Line range hint 54-175:
Attributes section improvements are comprehensive and useful.

The new parameters footer, fixed, and hide add flexibility and usability to the nvim_open_win function.


Line range hint 176-183:
Function declaration updates are accurate.

The function declaration has been correctly updated to include the new parameters.


Line range hint 184-191:
Interface updates are accurate.

The interface NvimOpenWinConfig has been correctly updated to include the new parameters.


Line range hint 192-200:
relative parameter description updates are accurate.

The description of the relative parameter has been correctly updated.


Line range hint 201-203:
win parameter description updates are accurate.

The description of the win parameter has been correctly updated.


Line range hint 204-208:
anchor parameter description updates are accurate.

The description of the anchor parameter has been correctly updated.


Line range hint 209-213:
width and height parameter description updates are accurate.

The descriptions of the width and height parameters have been correctly updated.


Line range hint 214-221:
bufpos parameter description updates are accurate.

The description of the bufpos parameter has been correctly updated.


Line range hint 222-226:
focusable parameter description updates are accurate.

The description of the focusable parameter has been correctly updated.


Line range hint 227-230:
external parameter description updates are accurate.

The description of the external parameter has been correctly updated.

option/nvim/_generated.ts (7)

21-21: channel option documentation updates are accurate.

The documentation for the channel option has been correctly updated.


Line range hint 102-116:
inccommand option documentation updates are accurate.

The documentation for the inccommand option has been correctly updated.


155-156: mousescroll option documentation updates are accurate.

The documentation for the mousescroll option has been correctly updated.


217-217: pumblend option documentation updates are accurate.

The documentation for the pumblend option has been correctly updated.


248-248: scrollback option documentation updates are accurate.

The documentation for the scrollback option has been correctly updated.


378-378: shada option documentation updates are accurate.

The documentation for the shada option has been correctly updated.


604-633: Addition of termsync option is well-implemented.

The new termsync option is implemented correctly and consistently with other options.

function/vim/_generated.ts (9)

Line range hint 1-1:
Verify the removal of foreach.

Ensure that all references to the foreach function have been removed or updated to prevent runtime errors.


Line range hint 1-1:
Verify the removal of getregion.

Ensure that all references to the getregion function have been removed or updated to prevent runtime errors.


Line range hint 1-1:
Verify the removal of assert_fails.

Ensure that all references to the assert_fails function have been removed or updated to prevent runtime errors.


Line range hint 1-1:
Verify the removal of matchbufline.

Ensure that all references to the matchbufline function have been removed or updated to prevent runtime errors.


Line range hint 1-1:
Verify the removal of assert_beeps.

Ensure that all references to the assert_beeps function have been removed or updated to prevent runtime errors.


Line range hint 1-1:
Verify the removal of assert_equalfile.

Ensure that all references to the assert_equalfile function have been removed or updated to prevent runtime errors.


Line range hint 1-1:
Verify the removal of assert_exception.

Ensure that all references to the assert_exception function have been removed or updated to prevent runtime errors.


Line range hint 1-1:
Verify the removal of strutf16len.

Ensure that all references to the strutf16len function have been removed or updated to prevent runtime errors.


Line range hint 1-1:
Verify the removal of assert_inrange.

Ensure that all references to the assert_inrange function have been removed or updated to prevent runtime errors.

function/nvim/_generated.ts (3)

1573-1583: Ensure proper error handling for nvim__complete_set function.

The function nvim__complete_set sets completion information. Ensure that proper error handling is implemented for invalid index or opts values.


1750-1756: Ensure proper validation for nvim__redraw function parameters.

The function nvim__redraw redraws various components. Ensure that proper validation is implemented for the opts parameter to handle invalid values.


3621-3631: Ensure proper validation for nvim__win_add_ns function parameters.

The function nvim__win_add_ns scopes a namespace to a window. Ensure that proper validation is implemented for the window and ns_id parameters to handle invalid values.

function/_generated.ts (14)

10066-10100: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to strutf16len are correctly implemented.

Verification successful

LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to strutf16len are correctly implemented.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `strutf16len` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg --type typescript -A 5 $'strutf16len'

Length of output: 74


Script:

#!/bin/bash
# Description: Verify all function calls to `strutf16len` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg --type ts -A 5 $'strutf16len'

Length of output: 1331


2360-2409: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to foreach are correctly implemented.

Verification successful

The foreach function is only referenced within its own documentation and is not used elsewhere in the codebase.

  • No additional usages of the foreach function were found.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `foreach` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg --type typescript -A 5 $'foreach'

Length of output: 70


Script:

#!/bin/bash
# Description: Verify all function calls to `foreach` are correctly implemented.

# Test: Search for the function usage in TypeScript files.
rg --glob '*.ts' -A 5 $'foreach'

Length of output: 1174


12557-12591: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to assert_equal are correctly implemented.


11225-11266: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to utf16idx are correctly implemented.


5778-5842: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to matchbufline are correctly implemented.


12522-12537: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to test_garbagecollect_now are correctly implemented.


5178-5205: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to luaeval are correctly implemented.


6074-6125: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to matchstrlist are correctly implemented.

Verification successful

Let's re-run the search for the matchstrlist function usage with the correct parameters.


No issues found regarding the function usage.

The function matchstrlist is currently not called anywhere else in the codebase apart from its documentation and definition.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `matchstrlist` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg --type typescript -A 5 $'matchstrlist'

Length of output: 75


Script:

#!/bin/bash
# Description: Verify all function calls to `matchstrlist` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg 'matchstrlist' -A 5

Length of output: 1902


12539-12555: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to assert_beeps are correctly implemented.


5426-5467: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to maplist are correctly implemented.

Verification successful

The maplist function is not used elsewhere in the codebase.

The function is only referenced within the function/_generated.ts file, primarily in comments and documentation. No further verification is required at this time.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `maplist` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg --type typescript -A 5 $'maplist'

Length of output: 70


Script:

#!/bin/bash
# Description: Verify all function calls to `maplist` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg --glob '*.ts' -A 5 $'maplist'

Length of output: 3394


12644-12702: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to assert_fails are correctly implemented.


12807-12889: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to assert_true are correctly implemented.

Verification successful

LGTM! But verify the function usage in the codebase.

The code changes are approved.

The assert_true function is not used elsewhere in the codebase, so there are no incorrect implementations or usages to address.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `assert_true` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg --type typescript -A 5 $'assert_true'

Length of output: 74


Script:

#!/bin/bash
# Description: Verify all function calls to `assert_true` are correctly implemented.

# Test: Search for the function usage in all TypeScript files.
rg 'assert_true' --glob '*.ts' -A 5

Length of output: 613


5469-5482: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to mapnew are correctly implemented.

Verification successful

No usage of mapnew found in the codebase.

The mapnew function is defined and documented correctly, but it is not currently used anywhere in the codebase. No implementation issues were found.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `mapnew` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg --type typescript -A 5 $'mapnew'

Length of output: 69


Script:

#!/bin/bash
# Description: Verify all function calls to `mapnew` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
ast-grep --lang typescript --pattern 'mapnew($_$$$)'

Length of output: 54


Script:

#!/bin/bash
# Description: Verify all function calls to `mapnew` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg 'mapnew'

Length of output: 380


3582-3647: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to getregion are correctly implemented.

Verification successful

No issues found with the function usage in the codebase.

The getregion function is newly added and there are no current usages in the codebase. Ensure to verify the function calls when the function is utilized in the future.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `getregion` are correctly implemented.

# Test: Search for the function usage. Expect: Only occurrences of the new implementation.
rg --type typescript -A 5 $'getregion'

Length of output: 72


Script:

#!/bin/bash
# Description: Verify all function calls to `getregion` are correctly implemented.

# Find all TypeScript files and search for the function usage within those files.
fd --type f --extension ts --exec rg 'getregion' {}

Length of output: 554


Script:

#!/bin/bash
# Description: Verify all function calls to `getregion` are correctly implemented.

# Find all TypeScript files and search for function calls to `getregion` within those files.
fd --type f --extension ts --exec rg '\bgetregion\(' {}

Length of output: 316


Script:

#!/bin/bash
# Description: Verify all function calls to `getregion` are correctly implemented.

# Search for all occurrences of `getregion` in the codebase, regardless of file type.
rg 'getregion'

Length of output: 815

option/_generated.ts (3)

2282-2282: Approved: Documentation update for comments option.

The update clarifies the usage of the comments option with comment plugins.


12792-12838: Approved: Implementation and documentation of smoothscroll option.

The implementation follows the existing pattern for options and includes detailed documentation. The asynchronous methods are appropriate for efficient handling of option retrieval and modification.


16343-16387: Approved: Implementation and documentation of winfixbuf option.

The implementation follows the existing pattern for options and includes detailed documentation. The asynchronous methods are appropriate for efficient handling of option retrieval and modification.

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.30%. Comparing base (52419c7) to head (4b1f9d4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #247   +/-   ##
=======================================
  Coverage   81.30%   81.30%           
=======================================
  Files          55       55           
  Lines        2797     2797           
  Branches      228      228           
=======================================
  Hits         2274     2274           
  Misses        521      521           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lambdalisue lambdalisue merged commit b300def into main Jul 30, 2024
10 checks passed
@lambdalisue lambdalisue deleted the fix-gen branch July 30, 2024 03:02
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