kailua_langsvr 1.0.4

Language server implementation for Kailua
Documentation
use std::error::Error;

// general notifications

define_msg! { pub CannotReadConfig:
    "ko" => "프로젝트에서 `kailua.json`이나 `.vscode/kailua.json`을 읽을 수 없습니다. \
             이번 세션에서 타입 체크가 비활성화됩니다.",
    _    => "Cannot read `kailua.json` or `.vscode/kailua.json` in the project; \
             type checking is disabled for this session.",
}

define_msg! { pub NoStartPath:
    "ko" => "`kailua.json`에 시작 경로가 지정되어 있지 않습니다. \
             이번 세션에서 타입 체크가 비활성화됩니다.",
    _    => "There is no start path specified in `kailua.json`; \
             type checking is disabled for this session.",
}

define_msg! { pub CannotRename:
    "ko" => "이 이름은 고칠 수 없습니다.",
    _    => "You cannot rename this name.",
}

// reports generated by language server

define_msg! { pub RestartRequired:
    "ko" => "`kailua.json`에 문제가 있습니다. 고친 뒤 세션을 재시작해 주십시오",
    _    => "`kailua.json` has an issue; please fix it and restart the session",
}

define_msg! { pub CannotOpenStartPath<'a> { error: &'a Error }:
    "ko" => "시작 경로를 열 수 없습니다. (이유: {error})",
    _    => "Couldn't open a start path. (Cause: {error})",
}

define_msg! { pub OmittedSelfLabel:
    "ko" => "<생략됨>",
    _    => "<omitted>",
}