You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Only when [Diagnostics Refresh](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#diagnostic_refresh) is supported by your client
17
19
18
20
## Workspace Options
19
21
20
22
These options can be passed with [initialize](#initialize), [workspace/didChangeConfiguration](#workspace/didChangeConfiguration) and [workspace/configuration](#workspace/configuration).
|`run`|`"onSave" \| "onType"`|`"onType"`| Should the server lint the files when the user is typing or saving |
39
+
40
+
## Diagnostics Modes
41
+
42
+
Depending on the client, the server will push diagnostics, or will wait for a pull request from the client.
43
+
The server will prefer pull diagnostics when the client supports it and able to support [textDocument/diagnostic/refresh](#textdocumentdiagnosticrefresh).
27
44
28
45
## Supported LSP Specifications from Server
29
46
@@ -45,11 +62,6 @@ The client can pass the workspace options like following:
45
62
}
46
63
```
47
64
48
-
#### Flags
49
-
50
-
-`key: disable_nested_config`: Disabled nested configuration and searches only for `configPath`
When the client did not pass the workspace configuration in [initialize](#initialize), the server will request the configuration for every workspace with [workspace/configuration](#workspaceconfiguration).
@@ -121,17 +133,17 @@ When the configuration `run` is set to `onType`, the server will validate the fi
Returns a [PublishDiagnostic object](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#publishDiagnosticsParams)
146
+
Returns a list of [CodeAction](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_codeAction)
135
147
136
148
## Optional LSP Specifications from Client
137
149
@@ -145,6 +157,12 @@ The server will send this request to watch for specific files. The method `works
145
157
146
158
The server will send this request to stop watching for specific files. The `id` will match from [client/registerCapability](#clientregistercapability).
0 commit comments