feat: CDK LSP/Explorer Package Scaffolding - #1559
Merged
megha-narayanan merged 2 commits intoMay 27, 2026
Merged
Conversation
megha-narayanan
temporarily deployed
to
automation
May 27, 2026 17:55 — with
GitHub Actions
Inactive
megha-narayanan
had a problem deploying
to
integ-approval
May 27, 2026 17:55 — with
GitHub Actions
Failure
aws-cdk-automation
had a problem deploying
to
integ-approval
May 27, 2026 18:02 — with
GitHub Actions
Failure
ShadowCat567
left a comment
Contributor
There was a problem hiding this comment.
General question: Why not have one package that holds all the architecture for the LSP and the Web Explorer and having sub directories within that package?
The toolkit-lib package kind of does this pattern
megha-narayanan
force-pushed
the
feat/explorer-process-architecture
branch
from
May 27, 2026 18:45
55cafe0 to
25c9b67
Compare
megha-narayanan
temporarily deployed
to
integ-approval
May 27, 2026 18:45 — with
GitHub Actions
Inactive
ShadowCat567
approved these changes
May 27, 2026
ShadowCat567
left a comment
Contributor
There was a problem hiding this comment.
This looks fine for initial scaffolding
1 task
fossamagna
pushed a commit
to fossamagna/aws-cdk-cli
that referenced
this pull request
Jul 17, 2026
Merges the`feat/cdk-lsp' branch into `main`. The change is additive and introduces no behavior change to existing CLI commands. - New `@aws-cdk/cdk-explorer` package containing the Language Server under `lib/lsp` (server, diagnostics, CodeLens, template locator, position mapping). - Extends `@aws-cdk/cloud-assembly-api` with two parsing modules consumed by the server: `construct-tree.ts` (builds the construct tree from a cloud assembly) and `template-ranges.ts` (resolves a logical ID or property to its byte range in the template). Capabilities (folds in aws#1559, aws#1593, aws#1592, aws#1617, aws#1624, aws#1630, aws#1631, aws#1662, aws#1634, aws#1674): - Diagnostics: surfaces synth errors and policy-validation violations in the editor, mapped back to the source. - Surfaces CFN resources and adds CodeLens navigation from a construct to its template resource. - Navigation between construct source and the synthesized template in both directions. - Live refresh: diagnostics and CodeLens update when `cdk.out` changes. - Reads are constrained to the project directory, and template reads run off the LSP event loop. This PR is the server and parsing foundation. It does not add a shipped CLI command or the web explorer. ### 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 --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Otavio Macedo <288203+otaviomacedo@users.noreply.github.com>
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.
Basic scaffolding for new packages to be implemented: a core functionality library, the lsp server, and the web explorer.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license