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
It is possible today to publish a diagnostic related to a directory (in many languages representing a module/package/...), rather than a particular file.
The spec however still treats range as mandatory, which means that server always has to pass an "empty" 0,0-0,0 range just to satisfy the protocol.
Would it make sense to make range optional in the spec?
exportinterfaceDiagnostic{/** * The range at which the message applies. */range: Range;/** * The diagnostic's severity. Can be omitted. If omitted it is up to the * client to interpret diagnostics as error, warning, info or hint. */severity?: DiagnosticSeverity;/** * The diagnostic's code, which might appear in the user interface. */code?: integer|string;/** * An optional property to describe the error code. * * @since 3.16.0 */codeDescription?: CodeDescription;/** * A human-readable string describing the source of this * diagnostic, e.g. 'typescript' or 'super lint'. */source?: string;/** * The diagnostic's message. */message: string;/** * Additional metadata about the diagnostic. * * @since 3.15.0 */tags?: DiagnosticTag[];/** * An array of related diagnostic information, e.g. when symbol-names within * a scope collide all definitions can be marked via this property. */relatedInformation?: DiagnosticRelatedInformation[];/** * A data entry field that is preserved between a * `textDocument/publishDiagnostics` notification and * `textDocument/codeAction` request. * * @since 3.16.0 */data?: unknown;}
The text was updated successfully, but these errors were encountered:
It is possible today to publish a diagnostic related to a directory (in many languages representing a module/package/...), rather than a particular file.
The spec however still treats
range
as mandatory, which means that server always has to pass an "empty"0,0-0,0
range just to satisfy the protocol.Would it make sense to make
range
optional in the spec?https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#diagnostic
The text was updated successfully, but these errors were encountered: