zeroc-ice / vscode-slice

Slice syntax highlighter for Visual Studio Code
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Slice for Visual Studio Code

This extension provides support for the Slice Interface Definition Language (IDL).

Features

Syntax Highlighting and Validation

This extension supports syntax highlighting and validation for the following Slice file types:

Error Detection and Reporting

Error checking is triggered every time a Slice file is saved or opened, and is only available for .slice files.

Configuration

The Slice language server that ships with this extension can be configured with the following settings:

If you do not specify any configuration sets, the extension will default to using the project's root directory for paths.

Note: the language server only works with .slice files, and ignores any .ice files in your project. The above settings are only meaningful for projects using .slice files.

Example

Below is an example settings.json file which configures 2 separate Slice projects:

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