Skip to content

refactor(lsp): remove unused LSP and Copilot wire types#1734

Merged
datlechin merged 3 commits into
mainfrom
chore/remove-lsp-dead-types
Jun 20, 2026
Merged

refactor(lsp): remove unused LSP and Copilot wire types#1734
datlechin merged 3 commits into
mainfrom
chore/remove-lsp-dead-types

Conversation

@datlechin

Copy link
Copy Markdown
Member

Removes three unused wire types from the LSP/Copilot client surface, plus the helper types that only they referenced:

  • LSPDidShowCompletionParams — never sent.
  • LSPJSONRPCResponse and LSPJSONRPCError (only used by that response) — responses are decoded via concrete types.
  • CopilotProgressParams and its CopilotProgressValue / CopilotProgressResult (used only by it).

Each was grep-confirmed unreferenced across the app, plugins, and tests. These were flagged in the dead-code audit as possible scaffolding; removing them now since nothing uses them. They restore cleanly from git if a future Copilot feature needs them.

swiftlint --strict clean. No CHANGELOG: internal, no user-facing change.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0627a8a4ce

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return driver.escapeStringLiteral(value)
}
return value.replacingOccurrences(of: "'", with: "''")
return SQLEscaping.escapeStringLiteral(value)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve NULs when exporting query results

When exporting cached query results with the SQL export plugin, this data source is constructed without a driver, so this fallback is used for every text cell. SQLEscaping.escapeStringLiteral strips \0, whereas the previous fallback only doubled quotes, so a value like "a\0b" is emitted as 'ab' and reloads as different data. Please keep the old query-result escaping semantics or encode NULs explicitly instead of dropping them.

Useful? React with 👍 / 👎.

@datlechin datlechin merged commit 8d9444c into main Jun 20, 2026
3 of 4 checks passed
@datlechin datlechin deleted the chore/remove-lsp-dead-types branch June 20, 2026 05:24
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.

1 participant