Add docs for ty.diagnosticMode (#779)

This commit is contained in:
Dhruv Manilawala 2025-07-08 16:51:13 +05:30 committed by GitHub
parent a38c3c30d9
commit 21886e591c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,6 +22,25 @@ server for features like code completion, hover, go to definition, etc.
}
```
## `diagnosticMode`
Determines the scope of the diagnostics reported by the language server.
- `openFilesOnly`: Diagnostics are reported only for files that are currently open in the editor.
- `workspace`: Diagnostics are reported for all files in the workspace.
**Default value**: `"openFilesOnly"`
**Type**: `"workspace" | "openFilesOnly"`
**Example usage**:
```json
{
"ty.diagnosticMode": "workspace"
}
```
## `logFile`
Path to the file to which the language server writes its log messages. By default, ty writes log messages to stderr.