Skip to content

fix(cli): wire 'cdk lsp' through a complete startLspServer entrypoint - #1711

Merged
megha-narayanan merged 1 commit into
aws:feat/cdk-lspfrom
megha-narayanan:feat/cdk-lsp-cli-entrypoint
Jul 8, 2026
Merged

fix(cli): wire 'cdk lsp' through a complete startLspServer entrypoint#1711
megha-narayanan merged 1 commit into
aws:feat/cdk-lspfrom
megha-narayanan:feat/cdk-lsp-cli-entrypoint

Conversation

@megha-narayanan

Copy link
Copy Markdown
Contributor

startServer now requires toolkitBindingsFactory (added in #1634/#1669), but the cdk lsp command still called it with only { readable, writable }, breaking the build. Expose startLspServer() from cdk-explorer (wires the Toolkit bindings and starts the server) and call it from the CLI. main.ts becomes that exported function, making cdk lsp the single LSP entrypoint.

Fixes #

Checklist

  • This change contains a major version upgrade for a dependency and I confirm all breaking changes are addressed
    • Release notes for the new version:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

startServer now requires toolkitBindingsFactory (added in aws#1634/aws#1669), but
the cdk lsp command still called it with only { readable, writable }, breaking
the build. Expose startLspServer() from cdk-explorer (wires the Toolkit bindings
and starts the server) and call it from the CLI. main.ts becomes that exported
function, making cdk lsp the single LSP entrypoint.
@github-actions github-actions Bot added the p2 label Jul 7, 2026
@megha-narayanan
megha-narayanan marked this pull request as ready for review July 7, 2026 20:45
@aws-cdk-automation
aws-cdk-automation requested a review from a team July 7, 2026 20:45
@megha-narayanan
megha-narayanan merged commit 13c5bce into aws:feat/cdk-lsp Jul 8, 2026
44 checks passed
@megha-narayanan
megha-narayanan deleted the feat/cdk-lsp-cli-entrypoint branch July 8, 2026 01:14
megha-narayanan added a commit that referenced this pull request Jul 8, 2026
Brings merged LSP work (#1697, #1669, #1670, #1711, #1715) into the explorer
branch. CLI command map now carries both 'cdk explore' and 'cdk lsp';
regenerated the user-input files from cli-config.ts. express remains a bundled
dependency of the explorer web server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants