Skip to main content

Cosmos DSL Language Server - LSP for VSCode and IDE integration

Project description

Cosmos Language Server

LSP (Language Server Protocol) implementation for Cosmos DSL.

Features

  • Syntax Highlighting - Full Cosmos DSL highlighting
  • Auto-completion - Keywords and type suggestions
  • Diagnostics - Real-time E401 error detection
  • Hover Docs - Documentation on hover
  • Go-to Definition - Navigate your cosmos files
  • Document Symbols - Outline view support

Installation

pip install cosmos-language

VSCode

Install from VSCode Marketplace or manually:

{
  "languages": [{
    "id": "cosmos",
    "extensions": [".cosmos"]
  }],
  "languageServer": "cosmos-language-server"
}

Neovim

-- Using nvim-lspconfig
require('lspconfig').cosmos_language_server.setup({})

Usage

# Start the language server
cosmos-language-server

# Or use with VSCode
# Install the Cosmos DSL VSCode extension

Cosmos DSL Example

universe production {
  planet web_server {
    region: us-east-1
    start_on: 2026-01-01
    end_on: 2026-12-31
  }
  
  planet database {
    region: us-east-1
    depends_on: web_server
  }
  
  light deploy -> web_server, database
}

License

Apache 2.0

Author

Luis Alberto Burciaga Miker
luis@solvens.amoris

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cosmos_language-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cosmos_language-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file cosmos_language-1.0.0.tar.gz.

File metadata

  • Download URL: cosmos_language-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for cosmos_language-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d3e98e953f945c16c314edd9d7c1c54ff4deff72809ecdb5ca3e6b2c8b6034e9
MD5 cf9b4718ce9f2fd1446561ad8dc65c5b
BLAKE2b-256 fad19e04a0bb2474a5661f9924b6a5e55810043e94377235b454da7e1bccd235

See more details on using hashes here.

File details

Details for the file cosmos_language-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cosmos_language-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f96b4ec4de68911fdc932dad1b142454077e7aa3370e4395af3e8f0767321f5
MD5 7e0f42d3e1cf7bd41727919e57721bf4
BLAKE2b-256 21e8f997d06486513be16789d8d7950ffa32238cb5faa17aadd3d19bde5501d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page