ZIm/docs/src/languages/svelte.md
Marshall Bowers 3a5d116ffe
docs: Update language docs and include links in the sidebar (#13828)
This PR updates the supported language docs and adds them to the sidebar
for better discoverability.

Release Notes:

- N/A
2024-07-04 11:08:38 -04:00

1.1 KiB

Svelte

Svelte support is available through the Svelte extension.

Inlay Hints

Zed sets the following initialization options for inlay Hints:

"inlayHints": {
  "parameterNames": {
    "enabled": "all",
    "suppressWhenArgumentMatchesName": false
  },
  "parameterTypes": {
    "enabled": true
  },
  "variableTypes": {
    "enabled": true,
    "suppressWhenTypeMatchesName": false
  },
  "propertyDeclarationTypes": {
    "enabled": true
  },
  "functionLikeReturnType": {
    "enabled": true
  },
  "enumMemberValues": {
    "enabled": true
  }
}

to make the language server send back inlay hints when Zed has them enabled in the settings.

Use

"lsp": {
  "$LANGUAGE_SERVER_NAME": {
    "initialization_options": {
      "configuration": {
        "typescript": {
          ......
        },
        "javascript": {
          ......
        }
      }
    }
  }
}

to override these settings.

See https://github.com/microsoft/vscode/blob/main/extensions/typescript-language-features/package.json for more information.