TypeScript

TypeScript と TSX のサポートは、ゼッドでネイティブに利用できます。

インレイヒント

ゼッドでは、インレイヒントの次の初期化オプションを設定します。

"preferences": {
    "includeInlayParameterNameHints": "all",
    "includeInlayParameterNameHintsWhenArgumentMatchesName": true,
    "includeInlayFunctionParameterTypeHints": true,
    "includeInlayVariableTypeHints": true,
    "includeInlayVariableTypeHintsWhenTypeMatchesName": true,
    "includeInlayPropertyDeclarationTypeHints": true,
    "includeInlayFunctionLikeReturnTypeHints": true,
    "includeInlayEnumMemberValueHints": true,
}

ゼッドの設定で有効にすると、言語サーバーがインレイヒントを送り返します。

使用

"lsp": {
    "$LANGUAGE_SERVER_NAME": {
        "initialization_options": {
            "preferences": {
                ....
            }
        }
    }
}

これらの設定を上書きします。

詳細については、https://github.com/typescript-language-server/typescript-language-server?tab=readme-ov-file#inlay-hints-textdocumentinlayhint を参照してください。

Yarn 統合

プロジェクトで Yarn を使用するように設定する方法については、Yarn のドキュメント を参照してください。