zeroc-ice / vscode-slice

Slice syntax highlighter for Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slice for Visual Studio Code

This language extension adds support for highlighting Slice files within Visual Studio Code. It supports highlighting the following file types:

Additionally, this extension provides a Slice Language Server, for .slice files only.

Configuration

The Slice Language Server can be configured using the following settings:

  • slice.languageServer.enabled: A boolean indicating whether the Slice Language Server should be enabled. Defaults to true.
  • slice.configurations: An array of configuration sets. Configuration sets are independently compiled, allowing each to define its own files and options for compilation.
    • Each configuration set is an object with the following properties:
    • paths: An array containing the paths to the target Slice reference files. Also supports directory paths.
    • addWellKnownTypes: A boolean indicating whether to include the IceRpc well-known Slice files during compilation.

Example

{
    "slice.configurations": [
        {
            "paths": [
                "path/to/slice/directory",
                "path/to/other/slice/file.slice",
                "/absolute/path/to/directory"  
            ],
            "addWellKnownTypes": true
        }
    ]
}

About

Slice syntax highlighter for Visual Studio Code

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Rust 84.0%Language:TypeScript 15.1%Language:Shell 0.9%