mirror of
https://github.com/astral-sh/ty.git
synced 2025-08-04 10:59:53 +00:00
Add docs for ty.diagnosticMode
(#779)
This commit is contained in:
parent
a38c3c30d9
commit
21886e591c
1 changed files with 19 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue