Skip to content

feat: view changes via vite-plugin#2904

Merged
davydkov merged 1 commit into
mainfrom
apply-text-edits-without-lsp
Apr 15, 2026
Merged

feat: view changes via vite-plugin#2904
davydkov merged 1 commit into
mainfrom
apply-text-edits-without-lsp

Conversation

@davydkov

Copy link
Copy Markdown
Member

Support applying view changes without LSP connection (e.g. in vite-plugin/CLI mode)

@changeset-bot

changeset-bot Bot commented Apr 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4e76dff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
Name Type
@likec4/language-server Patch
likec4 Patch
@likec4/playground Patch
@likec4/language-services Patch
@likec4/lsp Patch
@likec4/mcp Patch
@likec4/vite-plugin Patch
likec4-vscode Patch
@likec4/docs-astro Patch
@likec4/style-preset Patch
@likec4/styles Patch
@likec4/config Patch
@likec4/core Patch
@likec4/diagram Patch
@likec4/generators Patch
@likec4/layouts Patch
@likec4/leanix-bridge Patch
@likec4/log Patch
@likec4/react Patch
@likec4/tsconfig Patch
@likec4/vscode-preview Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@davydkov davydkov merged commit 935f6bb into main Apr 15, 2026
13 of 14 checks passed
@davydkov davydkov deleted the apply-text-edits-without-lsp branch April 15, 2026 22:55
@coderabbitai

coderabbitai Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c7eb4832-215a-4345-9dfd-7bdb95c5b9f7

📥 Commits

Reviewing files that changed from the base of the PR and between 1f8a0b7 and 4e76dff.

📒 Files selected for processing (2)
  • .changeset/apply-text-edits-without-lsp.md
  • packages/language-server/src/model-change/ModelChanges.ts

📝 Walkthrough

Walkthrough

Adds a changeset entry for patch releases across @likec4/language-server and likec4 packages. Refactors LikeC4ModelChanges.applyChange to delegate text edit application to a new applyTextEdits helper method that supports both LSP-based and direct file-based edit paths, enabling view changes without an active LSP connection.

Changes

Cohort / File(s) Summary
Changeset Metadata
.changeset/apply-text-edits-without-lsp.md
Adds changeset entry documenting patch-level functionality for applying view changes without LSP connection support in CLI/vite-plugin mode.
Model Change Logic
packages/language-server/src/model-change/ModelChanges.ts
Refactors applyChange to extract text edit application logic into new applyTextEdits helper. Implements branching behavior: applies edits via LSP workspace.applyEdit when connection exists, or falls back to direct TextDocument.applyEdits with FileSystemProvider.writeFile persistence when unavailable.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch apply-text-edits-without-lsp

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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