npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sap/cds-lsp

v8.4.5

Published

Language server for CDS

Downloads

6,217

Readme

CDS Language Server

The CDS language server implements the Language Server Protocol (LSP) for SAP's Core Data Services (CDS). It can be used in many popular IDEs like, for example, Visual Studio Code, IntelliJ, or Eclipse. It provides many useful features for working with and enjoying CDS sources.

Features

  • Syntax highlighting via Textmate grammar

  • Additional semantic highlighting

  • Source code validation providing diagnostics (error messages, warnings, ...)

  • Where-used navigation to

    • definition
    • references
    • highlight occurrences
  • Code completion for

    • keywords
    • identifiers incl. not yet imported identifiers with corresponding using statement
    • using paths and artifacts incl. showing README.md documentation as details
    • i18n translation IDs
    • turn on/off formatting regions
  • Snippets for typical CDS language construct (with documentation extracts of capire explaining language concepts) like

    • namespace and context
    • using
    • service
    • type
    • entity and projections, ...
    • element, associations, and compositions
    • extend and annotate
    • annotations for documentation
    • annotate all elements of an entity
  • Quick fixes to

    • create using statement for unknown artifacts
    • maintain missing translation
    • convert @description annotations to doc comments
  • Inventory (symbols) for

    • current file (Outline)
    • workspace incl. query capabilities to select, for example, artifact types, names, also include reuse models
  • Hover information based on

    • doc comments
    • @title and @description annotations
    • translations
    • README.md and package.json#description
  • Code formatting

    • whole document
    • selected range
    • on-the-fly when completing statements using ; or }
    • on save (depending on the IDE)
    • on paste (depending on the IDE)
    • with many options, configurable using
      • settings file
      • command line switches
      • Config UI with simulation of options for Visual Studio Code and Eclipse
      • JSON schema for textual support
    • also for markdown in doc comments
  • Code formatting via CLI (incl. verification mode)

  • Translation support

    • properties, JSON, and CSV files
    • navigate to translation definitions from translation IDs like '{i18n>customerName}'
    • show translations on hover
    • quickfix to maintain missing translations
  • Annotation support via external plugin

    • diagnostics
    • where-used navigation
    • hover information
    • code completion
    • quick fixes for translations

Usage

The CDS language server can only be used as part of an IDE extension or plugin. See Installation for more details.

A code formatter for CDS source files is included.

Installation

Refer to the installation details.

License

This package is provided under the terms of the SAP Developer License Agreement.