Skip to content

chore(lsp): strip unused Tauri command macros - #1959

Closed
beruro wants to merge 1 commit into
developfrom
chore/strip-unused-lsp-commands
Closed

beruro wants to merge 1 commit into
developfrom
chore/strip-unused-lsp-commands

Conversation

@beruro

@beruro beruro commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Problem

Twenty-three LSP helpers still used #[tauri::command] even though they are not in handler_list.inc / generate_handler!. Frontend never invoked those names. Agent tools already call the same functions as a library (manage_lsp) or talk to LspManager directly.

Solution

Strip the unused #[tauri::command] macros and update comments so these stay library helpers. Do not delete LspManager, manage_lsp, or query_lsp. IPC registration is unchanged because these commands were never registered.

Potential risks

The functions remain public crate API, including State-taking wrappers that nothing currently calls. A later cleanup can delete those wrappers; this PR only removes the false IPC surface. HTTP e2e test routes that drive LspManager directly are unaffected.

Verification

  • cargo check -p lsp — passed
  • Commit hook: cargo clippy scoped to lsp passed
  • NOT RUN: cargo test -p lsp / org2 binary check / manage_lsp e2e (no function bodies changed)

These helpers are library entry points for manage_lsp and tests, not
registered IPC commands.
@beruro

beruro commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #1960, which stacks this commit with the other unused-code cleanups.

@beruro beruro closed this Sep 18, 2026
@Harry19081 Harry19081 added maintenance Maintenance, CI, build, release, cleanup, or tooling work dev-tooling Developer tooling, build, CI, tests, diagnostics, or release labels Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-tooling Developer tooling, build, CI, tests, diagnostics, or release maintenance Maintenance, CI, build, release, cleanup, or tooling work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants