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).
@@ -107,31 +119,39 @@ Executes a [Command](https://microsoft.github.io/language-server-protocol/specif
When the configuration `run` is set to `onSave`, the server will validate the file content and send a [textDocument/publishDiagnostics](#textdocumentpublishdiagnostics) request to the client.
128
+
The server will cache the internal content of the text document.
129
+
When the server is using [Push Mode](#diagnostics-modes) and configuration `run` is set to `onSave`,
130
+
the server will validate the text document and send a [textDocument/publishDiagnostics](#textdocumentpublishdiagnostics) request to the client.
When the configuration `run` is set to `onType`, the server will validate the file content and send a [textDocument/publishDiagnostics](#textdocumentpublishdiagnostics) request to the client.
134
+
The server will cache the internal content of the text document.
135
+
When the server is using [Push Mode](#diagnostics-modes) and configuration `run` is set to `onType`,
136
+
the server will validate the text document and send a [textDocument/publishDiagnostics](#textdocumentpublishdiagnostics) request to the client.
Returns a [PublishDiagnostic object](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#publishDiagnosticsParams)
154
+
Returns a list of [CodeAction](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_codeAction)
135
155
136
156
## Optional LSP Specifications from Client
137
157
@@ -145,6 +165,13 @@ The server will send this request to watch for specific files. The method `works
145
165
146
166
The server will send this request to stop watching for specific files. The `id` will match from [client/registerCapability](#clientregistercapability).
When the server is using [Push Mode](#diagnostics-modes) it will lint the file [onOpen](#textdocumentdidopen) and [onChange](#textdocumentdidchange) or [onSave](#textdocumentdidsave]
173
+
(depending on the configuration the client passed).
0 commit comments