Skip to content

Commit 21886e5

Browse files
authored
Add docs for ty.diagnosticMode (#779)
1 parent a38c3c3 commit 21886e5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/reference/editor-settings.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,25 @@ server for features like code completion, hover, go to definition, etc.
2222
}
2323
```
2424

25+
## `diagnosticMode`
26+
27+
Determines the scope of the diagnostics reported by the language server.
28+
29+
- `openFilesOnly`: Diagnostics are reported only for files that are currently open in the editor.
30+
- `workspace`: Diagnostics are reported for all files in the workspace.
31+
32+
**Default value**: `"openFilesOnly"`
33+
34+
**Type**: `"workspace" | "openFilesOnly"`
35+
36+
**Example usage**:
37+
38+
```json
39+
{
40+
"ty.diagnosticMode": "workspace"
41+
}
42+
```
43+
2544
## `logFile`
2645

2746
Path to the file to which the language server writes its log messages. By default, ty writes log messages to stderr.

0 commit comments

Comments
 (0)