Skip to content

Project unification - #26

Open
d8vjork wants to merge 6 commits into
mainfrom
feat/support-utils-unification
Open

Project unification#26
d8vjork wants to merge 6 commits into
mainfrom
feat/support-utils-unification

Conversation

@d8vjork

@d8vjork d8vjork commented Jun 22, 2026

Copy link
Copy Markdown
Member

No description provided.

d8vjork added 6 commits June 20, 2026 15:24
Brings the namespace intelligence from vscode-php-support-utils into the
language server so VSCode, Zed and Neovim share one implementation.

- tuskPhpLsp.createObject turns (dirUri, kind, name) into a namespace-aware
  WorkspaceEdit that creates a class/trait/interface/enum file with a PSR-4
  derived namespace skeleton.
- tuskPhpLsp.copyReference resolves the symbol under the cursor and returns
  labeled reference strings: FQN, short name, Class::method(), and the full
  Class::method(Type $param): ReturnType signature. Factors a shared
  formatParams helper out of GetSignatureHelp so signature help and
  copy-reference render parameter lists identically.
- Exposes copyReference (alongside the existing copyNamespace/moveToNamespace)
  as refactor/source code actions for editors without custom command palettes.

Both commands are advertised in the executeCommand capability and covered by
new tests.
Documents tuskPhpLsp.createObject, tuskPhpLsp.copyReference, and the new
copy/move-namespace code actions under [Unreleased].
Port the standalone tusk-mcp binary into the main tusk-php binary as
a mcp subcommand with dump sub-subcommand support. Build stubs for
wasm target (MCP is native-only). Remove the separate tusk-mcp binary.
tusk-mcp is now a subcommand of tusk-php, so only one binary needs
to be built per platform. Clean up the build loop accordingly.
Update README and CHANGELOG to reflect that MCP server is now a
subcommand built into tusk-php rather than a separate binary.
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