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
Copy file name to clipboardExpand all lines: protocol/base.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ const (
39
39
// ContentModifiedLSPErrorCodes the server detected that the content of a document got modified outside normal conditions. A server should NOT send this error code if it detects a content change in it unprocessed messages. The result even computed on an older state might still be useful for the client. If a client decides that a result is not of any use anymore the client should cancel the request.
40
40
ContentModifiedLSPErrorCodesLSPErrorCodes=-32801
41
41
42
-
// RequestCancelledLSPErrorCodes the client has canceled a request and a server as detected the cancel.
42
+
// RequestCancelledLSPErrorCodes the client has canceled a request and a server has detected the cancel.
Copy file name to clipboardExpand all lines: protocol/basic.go
+91-12Lines changed: 91 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,8 @@ const (
88
88
89
89
HandlebarsLanguageKindLanguageKind="handlebars"
90
90
91
+
HaskellLanguageKindLanguageKind="haskell"
92
+
91
93
HTMLLanguageKindLanguageKind="html"
92
94
93
95
IniLanguageKindLanguageKind="ini"
@@ -256,12 +258,12 @@ type TextDocumentIdentifier struct {
256
258
//
257
259
// @since 3.17.0 - support for negotiated position encoding.
258
260
typePositionstruct {
259
-
// Line line position in a document (zero-based). If a line number is greater than the number of lines in a document, it defaults back to the number of lines in the document. If a line number is negative, it defaults to .
261
+
// Line line position in a document (zero-based).
260
262
//
261
263
// @since 3.17.0 - support for negotiated position encoding.
262
264
Lineuint32`json:"line"`
263
265
264
-
// Character character offset on a line in a document (zero-based). The meaning of this offset is determined by the negotiated `PositionEncodingKind`. If the character value is greater than the line length it defaults back to the line length.
266
+
// Character character offset on a line in a document (zero-based). The meaning of this offset is determined by the negotiated `PositionEncodingKind`.
265
267
//
266
268
// @since 3.17.0 - support for negotiated position encoding.
267
269
Characteruint32`json:"character"`
@@ -316,6 +318,38 @@ type OptionalVersionedTextDocumentIdentifier struct {
316
318
Versionint32`json:"version,omitempty"`
317
319
}
318
320
321
+
// StringValue a string value used as a snippet is a template which allows to insert text and to control the editor
322
+
// cursor when insertion happens. A snippet can define tab stops and placeholders with `$1`, `$2`
323
+
// and `${3:foo}`. `$0` defines the final tab stop, it defaults to the end of the snippet. Variables are defined with `$name` and `${name:default value}`. 3.18.0 @proposed.
324
+
//
325
+
// @since 3.18.0 proposed
326
+
typeStringValuestruct {
327
+
// Value the snippet string.
328
+
//
329
+
// @since 3.18.0 proposed
330
+
Valuestring`json:"value"`
331
+
}
332
+
333
+
// SnippetTextEdit an interactive text edit. 3.18.0 @proposed.
334
+
//
335
+
// @since 3.18.0 proposed
336
+
typeSnippetTextEditstruct {
337
+
// Range the range of the text document to be manipulated.
338
+
//
339
+
// @since 3.18.0 proposed
340
+
RangeRange`json:"range"`
341
+
342
+
// Snippet the snippet to be inserted.
343
+
//
344
+
// @since 3.18.0 proposed
345
+
SnippetStringValue`json:"snippet"`
346
+
347
+
// AnnotationID the actual identifier of the snippet edit.
// Edits the edits to be applied. 3.16.0 - support for AnnotatedTextEdit. This is guarded using a client capability.
372
+
// Edits the edits to be applied. 3.16.0 - support for AnnotatedTextEdit. This is guarded using a client capability. 3.18.0 - support for SnippetTextEdit. This is guarded using a client capability.
339
373
EditsTextDocumentEditEdits`json:"edits"`
340
374
}
341
375
@@ -425,7 +459,7 @@ type Diagnostic struct {
425
459
// Range the range at which the message applies.
426
460
RangeRange`json:"range"`
427
461
428
-
// Severity the diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
462
+
// Severity the diagnostic's severity. To avoid interpretation mismatches when a server is used with different clients it is highly recommended that servers always provide a severity value.
// Code the diagnostic's code, which usually appear in the user interface.
@@ -475,25 +509,64 @@ type VersionedTextDocumentIdentifier struct {
475
509
Versionint32`json:"version"`
476
510
}
477
511
478
-
// StringValue a string value used as a snippet is a template which allows to insert text and to control the editor
479
-
// cursor when insertion happens. A snippet can define tab stops and placeholders with `$1`, `$2`
480
-
// and `${3:foo}`. `$0` defines the final tab stop, it defaults to the end of the snippet. Variables are defined with `$name` and `${name:default value}`. 3.18.0 @proposed.
512
+
// TextDocumentContentParams parameters for the `workspace/textDocumentContent` request. 3.18.0 @proposed.
481
513
//
482
514
// @since 3.18.0 proposed
483
-
typeStringValuestruct {
484
-
// Value the snippet string.
515
+
typeTextDocumentContentParamsstruct {
516
+
// URI the uri of the text document.
485
517
//
486
518
// @since 3.18.0 proposed
487
-
Valuestring`json:"value"`
519
+
URIDocumentURI`json:"uri"`
488
520
}
489
521
490
-
// ChangeAnnotationsSupportOptions.
522
+
// TextDocumentContentResult result of the `workspace/textDocumentContent` request. 3.18.0 @proposed.
523
+
//
524
+
// @since 3.18.0 proposed
525
+
typeTextDocumentContentResultstruct {
526
+
// Text the text content of the text document. Please note, that the content of any subsequent open notifications for the text document might differ from the returned content due to whitespace and line ending
527
+
// normalizations done on the client.
528
+
//
529
+
// @since 3.18.0 proposed
530
+
Textstring`json:"text"`
531
+
}
532
+
533
+
// TextDocumentContentOptions text document content provider options. 3.18.0 @proposed.
534
+
//
535
+
// @since 3.18.0 proposed
536
+
typeTextDocumentContentOptionsstruct {
537
+
// Schemes the schemes for which the server provides content.
538
+
//
539
+
// @since 3.18.0 proposed
540
+
Schemes []string`json:"schemes"`
541
+
}
542
+
543
+
// TextDocumentContentRegistrationOptions text document content provider registration options. 3.18.0 @proposed.
// TextDocumentContentRefreshParams parameters for the `workspace/textDocumentContent/refresh` request. 3.18.0 @proposed.
554
+
//
555
+
// @since 3.18.0 proposed
556
+
typeTextDocumentContentRefreshParamsstruct {
557
+
// URI the uri of the text document to refresh.
558
+
//
559
+
// @since 3.18.0 proposed
560
+
URIDocumentURI`json:"uri"`
561
+
}
562
+
563
+
// ChangeAnnotationsSupportOptions.
564
+
//
565
+
// @since 3.18.0
493
566
typeChangeAnnotationsSupportOptionsstruct {
494
567
// GroupsOnLabel whether the client groups edits with equal labels into tree nodes, for instance all edits labelled with "Changes in Strings" would be a tree node.
495
568
//
496
-
// @since 3.18.0 proposed
569
+
// @since 3.18.0
497
570
GroupsOnLabelbool`json:"groupsOnLabel,omitempty"`
498
571
}
499
572
@@ -512,6 +585,12 @@ type WorkspaceEditClientCapabilities struct {
512
585
513
586
// ChangeAnnotationSupport whether the client in general supports change annotations on text edits, create file, rename file and delete file changes.
// WorkspaceTextDocumentContentRefresh the `workspace/textDocumentContent` request is sent from the server to the client to refresh the content of a specific text document. 3.18.0 @proposed.
// WorkspaceTextDocumentContentRefresh the `workspace/textDocumentContent` request is sent from the server to the client to refresh the content of a specific text document. 3.18.0 @proposed.
0 commit comments