refactor(linter/plugins): simplify callback functions for create/destroy workspace#18761
Merged
graphite-app[bot] merged 1 commit intomainfrom Jan 31, 2026
Conversation
This was referenced Jan 31, 2026
Member
Author
This was referenced Jan 31, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the NAPI callback type definitions and their usage for workspace management functions. When a NAPI function has only a single parameter, there's no need to use the FnArgs wrapper - the parameter type can be used directly.
Changes:
- Simplified
JsCreateWorkspaceCbandJsDestroyWorkspaceCbtype definitions to useStringdirectly instead ofFnArgs<(String,)> - Updated call sites in
wrap_create_workspaceandwrap_destroy_workspaceto pass the workspace URI parameter directly
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| apps/oxlint/src/run.rs | Updated type definitions for JsCreateWorkspaceCb and JsDestroyWorkspaceCb to use String instead of FnArgs<(String,)> |
| apps/oxlint/src/js_plugins/external_linter.rs | Updated wrap_create_workspace and wrap_destroy_workspace implementations to call the callbacks with the workspace URI directly instead of wrapping it in FnArgs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
08d57bb to
3d7c063
Compare
a01133c to
f313db3
Compare
f313db3 to
c38f130
Compare
3d7c063 to
b5be499
Compare
c38f130 to
9b8cf57
Compare
b5be499 to
4ffdd70
Compare
camc314
approved these changes
Jan 31, 2026
Contributor
Merge activity
|
4ffdd70 to
b5be499
Compare
82d5d37 to
1cda019
Compare
b5be499 to
54e7269
Compare
camc314
approved these changes
Jan 31, 2026
…roy workspace (#18761) Simple refactor. When a NAPI function has only a single param, no need to use `FnArgs`.
1cda019 to
64ddbe1
Compare
54e7269 to
41d75c4
Compare
Base automatically changed from
om/01-31-refactor_linter_plugins_reorder_callback_wrapper_functions
to
main
January 31, 2026 16:41
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Simple refactor. When a NAPI function has only a single param, no need to use
FnArgs.