Closed 4513ECHO closed 6 months ago
The recent updates focus on enhancing resource management across various components of a codebase. The primary change involves the adoption of the [Symbol.asyncDispose]
method for disposing of resources in a more efficient and modern way. This update spans across the Host
, Vim
, and Neovim
classes, as well as adjustments in testing strategies and the Service
class to align with the new disposal mechanism. The use of using
syntax in resource management further signifies a shift towards more readable and maintainable code.
Files | Change Summary |
---|---|
.../@denops-private/host.ts , .../vim.ts |
Adopt [Symbol.asyncDispose] for resource disposal in Host and Vim classes. |
.../host/nvim.ts |
Rename dispose to [Symbol.asyncDispose] in Neovim class. |
.../host/nvim_test.ts , .../vim_test.ts |
Refactor resource management using using syntax; adjust tests for Neovim/Vim interactions. |
.../service.ts |
Replace dispose() with [Symbol.dispose]() in Service class. |
.../worker.ts |
Update resource management using using syntax for host and service instances in main function. |
🐰✨
In the realm of code, where resources are tight,
A rabbit hopped in, bringing changes so bright.
With[Symbol.asyncDispose]
in its grasp,
It refactored and tested, with each gentle clasp.
"To manage, to free," it sang with glee,
"Let's make our code as clean as can be!"
🌟🐾
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?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.81%. Comparing base (
113c492
) to head (08cdde4
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
SSIA
Summary by CodeRabbit
Host
,Vim
,Neovim
,Service
, andWorker
classes.