Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Update sap-cap-capire: add lsp server#53

Merged
secondsky merged 3 commits intosecondsky:mainfrom
geert-janklaps:main
Feb 22, 2026
Merged

Update sap-cap-capire: add lsp server#53
secondsky merged 3 commits intosecondsky:mainfrom
geert-janklaps:main

Conversation

@geert-janklaps
Copy link
Contributor

@geert-janklaps geert-janklaps commented Feb 22, 2026

Description

Adds the official SAP CDS LSP (@sap/cds-lsp) server to the sap-cap-capire plugin.
LSP integration provides Claude Code with:

  • Instant diagnostics: Claude sees errors and warnings immediately after each edit
  • Code navigation: go to definition, find references, and hover information
  • Language awareness: type information and documentation for code symbols

Official documentation at: https://code.claude.com/docs/en/plugins-reference#lsp-servers

Type of Change

  • New skill
  • Bug fix
  • Enhancement to existing skill
  • Documentation update
  • Other (please describe)

Checklist

For All PRs

  • Code follows the project's coding guidelines
  • Self-review of changes completed
  • Changes are documented appropriately

For New Skills

  • SKILL.md created with valid YAML frontmatter
  • README.md includes auto-trigger keywords
  • License field set to GPL-3.0
  • Description includes "Use when" scenarios
  • Keywords comprehensive (technologies, use cases, errors)
  • Tested skill discovery with Claude Code/Desktop
  • Ran skill-review for quality verification (if available)

For Skill Enhancements

  • Package versions verified as current
  • Breaking changes documented
  • Examples tested
  • Known issues updated

For Documentation

  • Links verified
  • Grammar/spelling checked
  • Screenshots updated (if applicable)

Related Issues

Testing

Additional Notes

Summary by CodeRabbit

Release Notes

  • New Features

    • Added Language Server Protocol (LSP) support for SAP CAP Capire, enabling enhanced code editing capabilities for CDS files.
  • Documentation

    • Updated skill version to 2.1.2 with CAP 9.7.x support.
    • Updated Quick Start guide to include LSP package in installation instructions.
    • Updated version information and last verified date.

@coderabbitai
Copy link

coderabbitai bot commented Feb 22, 2026

No actionable comments were generated in the recent review. 🎉


Walkthrough

This pull request adds LSP (Language Server Protocol) configuration for SAP CAP Capire and updates documentation to reflect the latest versions. A new .lsp.json configuration file defines the CDS language server setup, while the SKILL.md documentation is updated with version metadata and dependency information.

Changes

Cohort / File(s) Summary
LSP Configuration
plugins/sap-cap-capire/.lsp.json
New LSP server configuration file that defines the CDS language server (cds-lsp) with stdio communication and maps .cds file extension to the cds language.
Documentation Updates
plugins/sap-cap-capire/skills/sap-cap-capire/SKILL.md
Version metadata updated from 2.1.0 to 2.1.2 and CAP version from 9.4.x to 9.7.x. Installation instructions updated to include @sap/cds-lsp dependency. New lsp_version field added with @sap/cds-lsp 9.7.x.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly reflects the main change: adding LSP server support to the sap-cap-capire plugin, which is the primary objective of the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
plugins/sap-cap-capire/skills/sap-cap-capire/SKILL.md (1)

44-44: Install command documents an optional prerequisite without explaining it's opt-in.

Adding @sap/cds-lsp to the default "Install CAP development kit" step will cause npm i -g @sap/cds-lsp`` to run for every new developer setting up a CAP project, even those who never use Claude Code or any other LSP-capable editor. The upstream npm docs themselves state: "The CDS language server can only be used as part of an IDE extension or plugin."

Consider moving the LSP install into a dedicated sub-section or marking it optional:

📝 Suggested wording
-# Install CAP development kit
-npm i -g `@sap/cds-dk` `@sap/cds-lsp`
+# Install CAP development kit
+npm i -g `@sap/cds-dk`
+
+# (Optional) Install CDS Language Server for LSP-capable editors (e.g. Claude Code)
+npm i -g `@sap/cds-lsp`
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@plugins/sap-cap-capire/skills/sap-cap-capire/SKILL.md` at line 44, The
install step in SKILL.md currently lists "npm i -g `@sap/cds-lsp`" alongside the
CAP development kit, which causes the LSP to be installed by default; update the
"Install CAP development kit" step (the section header and its install commands)
to remove the cds-lsp line and either create a new optional subsection titled
something like "Optional: CDS Language Server (LSP)" or annotate the existing
line as opt-in, include a brief note that the CDS language server is only
required for IDEs/extensions and link or quote the upstream guidance, and place
the "npm i -g `@sap/cds-lsp`" command only inside that new optional subsection or
behind the opt-in note.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@plugins/sap-cap-capire/skills/sap-cap-capire/SKILL.md`:
- Line 15: Update the frontmatter `lsp_version` entry and the version string in
the version information section to the actual published package version by
replacing `@sap/cds-lsp 9.7.x` with `@sap/cds-lsp 9.2.x`; specifically edit the
`lsp_version` field and the matching version text further down in SKILL.md (look
for the `lsp_version` frontmatter key and the version information block around
the second occurrence).

---

Nitpick comments:
In `@plugins/sap-cap-capire/skills/sap-cap-capire/SKILL.md`:
- Line 44: The install step in SKILL.md currently lists "npm i -g `@sap/cds-lsp`"
alongside the CAP development kit, which causes the LSP to be installed by
default; update the "Install CAP development kit" step (the section header and
its install commands) to remove the cds-lsp line and either create a new
optional subsection titled something like "Optional: CDS Language Server (LSP)"
or annotate the existing line as opt-in, include a brief note that the CDS
language server is only required for IDEs/extensions and link or quote the
upstream guidance, and place the "npm i -g `@sap/cds-lsp`" command only inside
that new optional subsection or behind the opt-in note.

@secondsky
Copy link
Owner

Thx thats a good addition!

@secondsky secondsky merged commit 34efdbe into secondsky:main Feb 22, 2026
5 checks passed
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.

2 participants