protocol

package
v0.0.0-...-2d04b65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

README

Protocol Documentation

Table of Contents

Top

protocol/protocol.proto

Command

Command represents a reference to a command.

Provides a title which will be used to represent a command in the UI. Commands are identified by a string identifier. The recommended way to handle commands is to implement their execution on the server side if the client and server provides the corresponding capabilities. Alternatively the tool extension code could handle the command.

The protocol currently doesn’t specify a set of well-known commands.

Field Type Label Description
title string Title of the command, like save.
command string The identifier of the actual command handler.
arguments google.protobuf.Any repeated Arguments that the command handler should be invoked with. (-- api-linter: core::0140::reserved-words=disabled --)
CreateFile

CreateFile create file operation.

Field Type Label Description
kind string The kind of CreateFile message. (-- api-linter: core::0192::only-leading-comments=disabled --) always 'create'
uri uri.URI The resource to create.
options CreateFileOptions Optional. Additional options
CreateFileOptions

CreateFileOptions is the options to create a file.

Field Type Label Description
overwrite bool Optional. Overwrite existing file. Overwrite wins over ignoreIfExists.
ignore_if_exists bool Optional. Ignore if exists.
DeleteFile

DeleteFile delete file operation.

Field Type Label Description
kind string The kind of DeleteFile message. always 'delete'
uri uri.URI The file to delete.
options DeleteFileOptions Optional. Delete options.
DeleteFileOptions

DeleteFileOptions is the options to delete a file.

Field Type Label Description
recursive bool Optional. Delete the content recursively if a folder is denoted.
ignore_if_exists bool Optional. Ignore the operation if the file doesn't exist.
Diagnostic

Diagnostic represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource.

Field Type Label Description
range Range The range at which the message applies.
severity DiagnosticSeverity Optional. The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
code google.protobuf.Int32Value Optional. The diagnostic's code, which might appear in the user interface.
source google.protobuf.StringValue Optional. A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
message string The diagnostic's message.
tags DiagnosticTag repeated Optional. Additional metadata about the diagnostic. @since 3.15.0
related_information DiagnosticRelatedInformation repeated Optional. An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property. (-- api-linter: core::0140::abbreviations=disabled --)
DiagnosticRelatedInformation

DiagnosticRelatedInformation represents a related message and source code location for a diagnostic.

This should be used to point to code locations that cause or are related to a diagnostics, e.g when duplicating a symbol in a scope. (-- api-linter: core::0140::abbreviations=disabled --)

Field Type Label Description
location Location The location of this related diagnostic information.
message string The message of this related diagnostic information.
DocumentFilter

DocumentFilter is a document filter denotes a document through properties like language, scheme or pattern. An example is a filter that applies to TypeScript files on disk. Another example is a filter the applies to JSON files with name package.json:

Field Type Label Description
language google.protobuf.StringValue Optional. A language id, like typescript. (-- api-linter: core::0143::standardized-codes=disabled --)
scheme google.protobuf.StringValue Optional. A URI scheme, like file or untitled.
pattern google.protobuf.StringValue Optional. A glob pattern, like *.{ts,js}. Glob patterns can have the following syntax: - * to match one or more characters in a path segment - ? to match on one character in a path segment - ** to match any number of path segments, including none - {} to group conditions (e.g. **/*.{ts,js} matches all TypeScript and JavaScript files) - [] to declare a range of characters to match in a path segment (e.g., example.[0-9] to match on example.0, example.1, …) - [!...] to negate a range of characters to match in a path segment (e.g., example.[!0-9] to match on example.a, example.b, but not example.0)
DocumentURI

DocumentURI are transferred as strings. The URI’s format is defined in http://tools.ietf.org/html/rfc3986.

Field Type Label Description
document_uri string
FileResourceChange

FileResourceChange allow servers to create, rename and delete files and folders via the client.

Note that the names talk about files but the operations are supposed to work on files and folders. This is in line with other naming in the Language Server Protocol (see file watchers which can watch files and folders).

New in version 3.13.

Field Type Label Description
create_file CreateFile CreateFile create file operation.
rename_file RenameFile RenameFile rename file operation.
delete_file DeleteFile DeleteFile delete file operation.
Location

Location represents a location inside a resource, such as a line inside a text file.

Field Type Label Description
uri uri.URI The text document's uri.
range Range The location's range.

LocationLink represents a link between a source and a target location.

Field Type Label Description
origin_selection_range Range Optional. The span of the origin of this link. Used as the underlined span for mouse interaction. Defaults to the word range at the mouse position.
target_uri uri.URI The target resource identifier of this link.
target_range Range The full target range of this link. If the target for example is a symbol then target range is the range enclosing this symbol not including leading/trailing whitespace but everything else like comments. This information is typically used to highlight the range in the editor.
target_selection_range Range The range that should be selected and revealed when this link is being followed, e.g the name of a function. Must be contained by the the targetRange. See also [DocumentSymbol#range][DocumentSymbol].
MarkupContent

MarkupContent is a MarkupContent literal represents a string value which content can be represented in different formats. Currently plaintext and markdown are supported formats. A MarkupContent is usually used in documentation properties of result literals like CompletionItem or SignatureInformation.

A MarkupContent literal represents a string value which content is interpreted base on its kind flag. Currently the protocol supports plaintext and markdown as markup kinds.

If the kind is markdown then the value can contain fenced code blocks like in GitHub issues. See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting

Here is an example how such a string can be constructed using JavaScript / TypeScript:

```typescript
let markdown: MarkdownContent = {
 kind: MarkupKind.Markdown,
     value: [
     	'# Header',
     	'Some text',
     	'```typescript',
     	'someCode();',
     	'```'
     ].join('\n')
};

NOTE: clients might sanitize the return markdown. A client could decide to
remove HTML from the markdown to avoid script execution.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| kind | [MarkupKind](#protocol.MarkupKind) |  | The type of the Markup. |
| value | [string](#string) |  | The content itself. |






<a name="protocol.Position"/>

### Position
Position in a text document expressed as zero-based line and zero-based character offset.
A position is between two characters like an ‘insert’ cursor in a editor.
Special values like for example -1 to denote the end of a line are not supported.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| line | [int32](#int32) |  | Line position in a document (zero-based). |
| character | [int32](#int32) |  | Character offset on a line in a document (zero-based). Assuming that the line is represented as a string, the `character` value represents the gap between the `character` and `character + 1`.  If the character value is greater than the line length it defaults back to the line length.  The offsets are based on a UTF-16 string representation. |






<a name="protocol.Range"/>

### Range
Range in a text document expressed as (zero-based) start and end positions.

A range is comparable to a selection in an editor. Therefore the end position is exclusive.
If you want to specify a range that contains a line including the line ending character(s)
then use an end position denoting the start of the next line.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| start | [Position](#protocol.Position) |  | The range's start position. |
| end | [Position](#protocol.Position) |  | The range's end position. |






<a name="protocol.RenameFile"/>

### RenameFile
RenameFile rename file operation.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| kind | [string](#string) |  | The kind of RenameFile message.  always 'rename' |
| old_uri | [uri.URI](#uri.URI) |  | The old (existing) location. |
| new_uri | [uri.URI](#uri.URI) |  | The new location. |
| options | [RenameFileOptions](#protocol.RenameFileOptions) |  | Optional. Rename options. |






<a name="protocol.RenameFileOptions"/>

### RenameFileOptions
RenameFileOptions is the options to rename a file.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| overwrite | [bool](#bool) |  | Optional. Overwrite target if existing. Overwrite wins over `ignoreIfExists`. |
| ignore_if_exists | [bool](#bool) |  | Optional. Ignores if target exists. |






<a name="protocol.StaticRegistrationOptions"/>

### StaticRegistrationOptions
StaticRegistrationOptions can be used to register a feature in the initialize result with a given
server control ID to be able to un-register the feature later on. Static registration options to
be returned in the initialize request.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| id | [google.protobuf.StringValue](#google.protobuf.StringValue) |  | Optional. The id used to register the request. The id can be used to deregister the request again. See also Registration#id. |






<a name="protocol.TextDocumentEdit"/>

### TextDocumentEdit
TextDocumentEdit describes textual changes on a single text document.

The text document is referred to as a VersionedTextDocumentIdentifier to allow clients to check
the text document version before an edit is applied. A TextDocumentEdit describes all changes on
a version Si and after they are applied move the document to version Si+1. So the creator of a
TextDocumentEdit doesn’t need to sort the array of edits or do any kind of ordering. However the
edits must be non overlapping.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| text_document | [VersionedTextDocumentIdentifier](#protocol.VersionedTextDocumentIdentifier) |  | The text document to change. |
| edits | [TextEdit](#protocol.TextEdit) | repeated | The edits to be applied. |






<a name="protocol.TextDocumentIdentifier"/>

### TextDocumentIdentifier
TextDocumentIdentifier text documents are identified using a URI. On the protocol level, URIs are
passed as strings. The corresponding JSON structure looks like this:
(-- api-linter: core::0140::abbreviations=disabled --)


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| uri | [uri.URI](#uri.URI) |  | The text document's URI. |






<a name="protocol.TextDocumentItem"/>

### TextDocumentItem
TextDocumentItem an item to transfer a text document from the client to the server.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| uri | [uri.URI](#uri.URI) |  | The text document's URI. |
| language_id | [string](#string) |  | The text document's language identifier. |
| version | [int32](#int32) |  | The version number of this document (it will increase after each change, including undo/redo). |
| text | [string](#string) |  | The content of the opened text document. |






<a name="protocol.TextDocumentPositionParams"/>

### TextDocumentPositionParams
TextDocumentPositionParams was TextDocumentPosition in 1.0 with inlined parameters.
A parameter literal used in requests to pass a text document and a position inside that document.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| text_document | [TextDocumentIdentifier](#protocol.TextDocumentIdentifier) |  | The text document. |
| position | [Position](#protocol.Position) |  | The position inside the text document. |






<a name="protocol.TextDocumentRegistrationOptions"/>

### TextDocumentRegistrationOptions
TextDocumentRegistrationOptions options to dynamically register for requests for a set of text
documents.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| selector | [TextDocumentRegistrationOptions.DocumentSelector](#protocol.TextDocumentRegistrationOptions.DocumentSelector) |  |  |
| empty | [google.protobuf.NullValue](#google.protobuf.NullValue) |  |  |






<a name="protocol.TextDocumentRegistrationOptions.DocumentSelector"/>

### TextDocumentRegistrationOptions.DocumentSelector
DocumentSelector is a document selector is the combination of one or more document filters.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| document_selector | [DocumentFilter](#protocol.DocumentFilter) | repeated |  |






<a name="protocol.TextEdit"/>

### TextEdit
TextEdit is a textual edit applicable to a text document.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| range | [Range](#protocol.Range) |  | The range of the text document to be manipulated. To insert text into a document create a range where start === end. |
| new_text | [string](#string) |  | The string to be inserted. For delete operations use an empty string. |






<a name="protocol.VersionedTextDocumentIdentifier"/>

### VersionedTextDocumentIdentifier
(-- api-linter: core::0140::abbreviations=disabled --)


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| text_document_identifier | [TextDocumentIdentifier](#protocol.TextDocumentIdentifier) |  | TextDocumentIdentifier text documents are identified using a URI. On the protocol level, URIs are passed as strings. |
| version | [bool](#bool) |  | Optional. The version number of this document. If a versioned text document identifier is sent from the server to the client and the file is not open in the editor (the server has not received an open notification before) the server can send `null` to indicate that the version is known and the content on disk is the master (as speced with document content ownership).  The version number of a document will increase after each change, including undo/redo. The number doesn't need to be consecutive. |






<a name="protocol.WorkDoneProgressBegin"/>

### WorkDoneProgressBegin
WorkDoneProgressBegin to start progress reporting a $/progress notification with the payload must
be sent.

@since 3.15.0


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| kind | [string](#string) |  | WorkDoneProgressBegin kind.  always 'begin' |
| title | [string](#string) |  | Mandatory title of the progress operation. Used to briefly inform about the kind of operation being performed.  Examples: "Indexing" or "Linking dependencies". |
| cancellable | [bool](#bool) |  | Optional. Controls if a cancel button should show to allow the user to cancel the long running operation. Clients that don't support cancellation are allowed to ignore the setting. |
| message | [google.protobuf.StringValue](#google.protobuf.StringValue) |  | Optional, more detailed associated progress message. Contains complementary information to the `title`.  Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". If unset, the previous progress message (if any) is still valid. |
| percentage | [google.protobuf.Int32Value](#google.protobuf.Int32Value) |  | Optional progress percentage to display (value 100 is considered 100%). If not provided infinite progress is assumed and clients are allowed to ignore the `percentage` value in subsequent in report notifications.  The value should be steadily rising. Clients are free to ignore values that are not following this rule. |






<a name="protocol.WorkDoneProgressEnd"/>

### WorkDoneProgressEnd
WorkDoneProgressEnd signaling the end of a progress reporting is done using the payload.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| kind | [string](#string) |  | WorkDoneProgressEnd kind.  always 'end' |
| message | [google.protobuf.StringValue](#google.protobuf.StringValue) |  | Optional, a final message indicating to for example indicate the outcome of the operation. |






<a name="protocol.WorkDoneProgressOptions"/>

### WorkDoneProgressOptions
WorkDoneProgressOptions options to signal work done progress support in server capabilities.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| work_done_progress | [bool](#bool) |  | Optional. |






<a name="protocol.WorkDoneProgressReport"/>

### WorkDoneProgressReport
WorkDoneProgressReport reporting progress is done using the payload.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| kind | [string](#string) |  | WorkDoneProgressReport kind.  always 'report' |
| cancellable | [bool](#bool) |  | Optional. Controls enablement state of a cancel button. This property is only valid if a cancel button got requested in the `WorkDoneProgressStart` payload.  Clients that don't support cancellation or don't support control the button's enablement state are allowed to ignore the setting. |
| message | [google.protobuf.StringValue](#google.protobuf.StringValue) |  | Optional, more detailed associated progress message. Contains complementary information to the `title`.  Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". If unset, the previous progress message (if any) is still valid. |
| percentage | [google.protobuf.Int32Value](#google.protobuf.Int32Value) |  | Optional progress percentage to display (value 100 is considered 100%). If not provided infinite progress is assumed and clients are allowed to ignore the `percentage` value in subsequent in report notifications.  The value should be steadily rising. Clients are free to ignore values that are not following this rule. |






<a name="protocol.WorkspaceEdit"/>

### WorkspaceEdit
WorkspaceEdit a workspace edit represents changes to many resources managed in the workspace. The
edit should either provide changes or documentChanges. If the client can handle versioned
document edits and if documentChanges are present, the latter are preferred over changes.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| changes | [WorkspaceEdit.ChangesEntry](#protocol.WorkspaceEdit.ChangesEntry) | repeated | Holds changes to existing resources.  The map key is uri.URI (-- api-linter: core::0192::only-leading-comments=disabled --) |
| text_document_edits | [WorkspaceEdit.TextDocumentEdits](#protocol.WorkspaceEdit.TextDocumentEdits) |  |  |
| create_files | [WorkspaceEdit.CreateFiles](#protocol.WorkspaceEdit.CreateFiles) |  |  |
| rename_files | [WorkspaceEdit.RenameFiles](#protocol.WorkspaceEdit.RenameFiles) |  |  |
| delete_files | [WorkspaceEdit.DeleteFiles](#protocol.WorkspaceEdit.DeleteFiles) |  |  |






<a name="protocol.WorkspaceEdit.ChangesEntry"/>

### WorkspaceEdit.ChangesEntry



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| key | [string](#string) |  |  |
| value | [WorkspaceEdit.TextEdits](#protocol.WorkspaceEdit.TextEdits) |  |  |






<a name="protocol.WorkspaceEdit.CreateFiles"/>

### WorkspaceEdit.CreateFiles



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| create_files | [CreateFile](#protocol.CreateFile) | repeated |  |






<a name="protocol.WorkspaceEdit.DeleteFiles"/>

### WorkspaceEdit.DeleteFiles



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| delete_files | [DeleteFile](#protocol.DeleteFile) | repeated |  |






<a name="protocol.WorkspaceEdit.RenameFiles"/>

### WorkspaceEdit.RenameFiles



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| rename_files | [RenameFile](#protocol.RenameFile) | repeated |  |






<a name="protocol.WorkspaceEdit.TextDocumentEdits"/>

### WorkspaceEdit.TextDocumentEdits



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| text_document_edits | [TextDocumentEdit](#protocol.TextDocumentEdit) | repeated |  |






<a name="protocol.WorkspaceEdit.TextEdits"/>

### WorkspaceEdit.TextEdits



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| text_edits | [TextEdit](#protocol.TextEdit) | repeated |  |






<a name="protocol.WorkspaceEditClientCapabilities"/>

### WorkspaceEditClientCapabilities
WorkspaceEditClientCapabilities ResourceOperationKind and FailureHandlingKind and the client
capability workspace.workspaceEdit.resourceOperations as well as
workspace.workspaceEdit.failureHandling.

New in version 3.13.

The capabilities of a workspace edit has evolved over the time. Clients can describe their
support using the following client capability:
- property path (optional): workspace.workspaceEdit
- property type: WorkspaceEditClientCapabilities defined as follows.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| document_changes | [bool](#bool) |  | Optional. The client supports versioned document changes in `WorkspaceEdit`s. |
| resource_operations | [ResourceOperationKind](#protocol.ResourceOperationKind) | repeated | The resource operations the client supports. Clients should at least support 'create', 'rename' and 'delete' files and folders.  @since 3.13.0 |
| failure_handling | [FailureHandlingKind](#protocol.FailureHandlingKind) |  | Optional. The failure handling strategy of a client if applying the workspace edit fails.  @since 3.13.0 |





 <!-- end messages -->


<a name="protocol.DiagnosticSeverity"/>

### DiagnosticSeverity
DiagnosticSeverity represents a diagnostic severity level.

| Name | Number | Description |
| ---- | ------ | ----------- |
| DIAGNOSTIC_SEVERITY_UNSPECIFIED | 0 | Conventional default for enums. Do not use this. |
| ERROR | 1 | Reports an error. |
| WARNING | 2 | Reports a warning. |
| INFORMATION | 3 | Reports an information. (-- api-linter: core::0140::abbreviations=disabled --) |
| HINT | 4 | Reports a hint. |



<a name="protocol.DiagnosticTag"/>

### DiagnosticTag
DiagnosticTag is the diagnostic tags.

@since 3.15.0

| Name | Number | Description |
| ---- | ------ | ----------- |
| DIAGNOSTIC_TAG_UNSPECIFIED | 0 | Conventional default for enums. Do not use this. |
| UNNECESSARY | 1 | Unused or unnecessary code.  Clients are allowed to render diagnostics with this tag faded out instead of having an error squiggle. |
| DEPRECATED | 2 | Deprecated or obsolete code.  Clients are allowed to rendered diagnostics with this tag strike through. |



<a name="protocol.FailureHandlingKind"/>

### FailureHandlingKind


| Name | Number | Description |
| ---- | ------ | ----------- |
| FAILURE_HANDLING_KIND_UNSPECIFIED | 0 | Conventional default for enums. Do not use this. |
| ABORT | 1 | Applying the workspace change is simply aborted if one of the changes provided fails. All operations executed before the failing operation stay executed. |
| TRANSACTIONAL | 2 | All operations are executed transactional. That means they either all succeed or no changes at all are applied to the workspace. |
| TEXT_ONLY_TRANSACTIONAL | 3 | If the workspace edit contains only textual file changes they are executed transactional. If resource changes (create, rename or delete file) are part of the change the failure handling strategy is abort. |
| UNDO | 4 | The client tries to undo the operations already executed. But there is no guarantee that this is succeeding. |



<a name="protocol.MarkupKind"/>

### MarkupKind
MarkupKind describes the content type that a client supports in various
result literals like `Hover`, `ParameterInfo` or `CompletionItem`.

Please note that `MarkupKinds` must not start with a `$`. This kinds
are reserved for internal usage.

| Name | Number | Description |
| ---- | ------ | ----------- |
| MARKUP_KIND_UNSPECIFIED | 0 | Conventional default for enums. Do not use this. |
| PLAIN_TEXT | 1 | Plain text is supported as a content format |
| MARKDOWN | 2 | Markdown is supported as a content format |



<a name="protocol.ResourceOperationKind"/>

### ResourceOperationKind
ResourceOperationKind is the kind of resource operations supported by the client.

| Name | Number | Description |
| ---- | ------ | ----------- |
| RESOURCE_OPERATION_KIND_UNSPECIFIED | 0 | Conventional default for enums. Do not use this. |
| CREATE | 1 | Supports creating new files and folders. |
| RENAME | 2 | Supports renaming existing files and folders. |
| DELETE | 3 | Supports deleting existing files and folders. |



<a name="protocol.TraceValue"/>

### TraceValue
TraceValue represents the level of verbosity with which the server systematically reports its
execution trace using $/logTrace notifications. The initial trace value is set by the client at
initialization and can be modified later using the $/setTrace notification.

| Name | Number | Description |
| ---- | ------ | ----------- |
| TRACE_VALUE_UNSPECIFIED | 0 | Conventional default for enums. Do not use this. |
| OFF | 1 | trace is off. |
| MESSAGE | 2 | message trace level. |
| VERBOSE | 3 | verbose trace level. |


 <!-- end enums -->

 <!-- end HasExtensions -->



<a name="protocol/error.proto"/>
<p align="right"><a href="#top">Top</a></p>

 <!-- end services -->

## protocol/error.proto



<a name="protocol.Error"/>

### Error
Error represents a JSON-RPC error.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| code | [int32](#int32) |  | A number indicating the error type that occurred.  Which may an enum value of [Code][#code]. |
| message | [string](#string) |  | A string providing a short description of the error. |
| data | [string](#string) |  | A primitive or structured value that contains additional information about the error. Can be omitted. |





 <!-- end messages -->


<a name="protocol.Code"/>

### Code
Code is the error code in case a request fails.

| Name | Number | Description |
| ---- | ------ | ----------- |
| OK | 0 | Conventional default for enums. Do not use this. |
| PARSE_ERROR | -32700 | Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. |
| INVALID_REQUEST | -32600 | The JSON sent is not a valid Request object. |
| METHOD_NOT_FOUND | -32601 | The method does not exist / is not available. |
| INVALID_PARAMS | -32602 | Invalid method parameter(s). |
| INTERNAL_ERROR | -32603 | Internal JSON-RPC error. |
| SERVER_NOT_INITIALIZED | -32002 | Server not initialized. |
| UNKNOWN_ERROR_CODE | -32001 | Unknown error. |
| REQUEST_CANCELLED | -32800 | Cancelled request. |
| CONTENT_MODIFIED | -32801 | Modified content. |


 <!-- end enums -->

 <!-- end HasExtensions -->


Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Code_name = map[int32]string{
		0:      "OK",
		-32700: "PARSE_ERROR",
		-32600: "INVALID_REQUEST",
		-32601: "METHOD_NOT_FOUND",
		-32602: "INVALID_PARAMS",
		-32603: "INTERNAL_ERROR",
		-32002: "SERVER_NOT_INITIALIZED",
		-32001: "UNKNOWN_ERROR_CODE",
		-32800: "REQUEST_CANCELLED",
		-32801: "CONTENT_MODIFIED",
	}
	Code_value = map[string]int32{
		"OK":                     0,
		"PARSE_ERROR":            -32700,
		"INVALID_REQUEST":        -32600,
		"METHOD_NOT_FOUND":       -32601,
		"INVALID_PARAMS":         -32602,
		"INTERNAL_ERROR":         -32603,
		"SERVER_NOT_INITIALIZED": -32002,
		"UNKNOWN_ERROR_CODE":     -32001,
		"REQUEST_CANCELLED":      -32800,
		"CONTENT_MODIFIED":       -32801,
	}
)

Enum value maps for Code.

View Source
var (
	DiagnosticSeverity_name = map[int32]string{
		0: "DIAGNOSTIC_SEVERITY_UNSPECIFIED",
		1: "ERROR",
		2: "WARNING",
		3: "INFORMATION",
		4: "HINT",
	}
	DiagnosticSeverity_value = map[string]int32{
		"DIAGNOSTIC_SEVERITY_UNSPECIFIED": 0,
		"ERROR":                           1,
		"WARNING":                         2,
		"INFORMATION":                     3,
		"HINT":                            4,
	}
)

Enum value maps for DiagnosticSeverity.

View Source
var (
	DiagnosticTag_name = map[int32]string{
		0: "DIAGNOSTIC_TAG_UNSPECIFIED",
		1: "UNNECESSARY",
		2: "DEPRECATED",
	}
	DiagnosticTag_value = map[string]int32{
		"DIAGNOSTIC_TAG_UNSPECIFIED": 0,
		"UNNECESSARY":                1,
		"DEPRECATED":                 2,
	}
)

Enum value maps for DiagnosticTag.

View Source
var (
	ResourceOperationKind_name = map[int32]string{
		0: "RESOURCE_OPERATION_KIND_UNSPECIFIED",
		1: "CREATE",
		2: "RENAME",
		3: "DELETE",
	}
	ResourceOperationKind_value = map[string]int32{
		"RESOURCE_OPERATION_KIND_UNSPECIFIED": 0,
		"CREATE":                              1,
		"RENAME":                              2,
		"DELETE":                              3,
	}
)

Enum value maps for ResourceOperationKind.

View Source
var (
	FailureHandlingKind_name = map[int32]string{
		0: "FAILURE_HANDLING_KIND_UNSPECIFIED",
		1: "ABORT",
		2: "TRANSACTIONAL",
		3: "TEXT_ONLY_TRANSACTIONAL",
		4: "UNDO",
	}
	FailureHandlingKind_value = map[string]int32{
		"FAILURE_HANDLING_KIND_UNSPECIFIED": 0,
		"ABORT":                             1,
		"TRANSACTIONAL":                     2,
		"TEXT_ONLY_TRANSACTIONAL":           3,
		"UNDO":                              4,
	}
)

Enum value maps for FailureHandlingKind.

View Source
var (
	MarkupKind_name = map[int32]string{
		0: "MARKUP_KIND_UNSPECIFIED",
		1: "PLAIN_TEXT",
		2: "MARKDOWN",
	}
	MarkupKind_value = map[string]int32{
		"MARKUP_KIND_UNSPECIFIED": 0,
		"PLAIN_TEXT":              1,
		"MARKDOWN":                2,
	}
)

Enum value maps for MarkupKind.

View Source
var (
	TraceValue_name = map[int32]string{
		0: "TRACE_VALUE_UNSPECIFIED",
		1: "OFF",
		2: "MESSAGE",
		3: "VERBOSE",
	}
	TraceValue_value = map[string]int32{
		"TRACE_VALUE_UNSPECIFIED": 0,
		"OFF":                     1,
		"MESSAGE":                 2,
		"VERBOSE":                 3,
	}
)

Enum value maps for TraceValue.

View Source
var File_protocol_error_proto protoreflect.FileDescriptor
View Source
var File_protocol_protocol_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Code

type Code int32

Code is the error code in case a request fails.

const (
	// Conventional default for enums. Do not use this.
	Code_OK Code = 0
	// Invalid JSON was received by the server. An error occurred on the server while parsing the JSON
	// text.
	Code_PARSE_ERROR Code = -32700
	// The JSON sent is not a valid Request object.
	Code_INVALID_REQUEST Code = -32600
	// The method does not exist / is not available.
	Code_METHOD_NOT_FOUND Code = -32601
	// Invalid method parameter(s).
	Code_INVALID_PARAMS Code = -32602
	// Internal JSON-RPC error.
	Code_INTERNAL_ERROR Code = -32603
	// Server not initialized.
	Code_SERVER_NOT_INITIALIZED Code = -32002
	// Unknown error.
	Code_UNKNOWN_ERROR_CODE Code = -32001
	// Cancelled request.
	Code_REQUEST_CANCELLED Code = -32800
	// Modified content.
	Code_CONTENT_MODIFIED Code = -32801
)

func (Code) Descriptor

func (Code) Descriptor() protoreflect.EnumDescriptor

func (Code) Enum

func (x Code) Enum() *Code

func (Code) EnumDescriptor deprecated

func (Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use Code.Descriptor instead.

func (Code) Number

func (x Code) Number() protoreflect.EnumNumber

func (Code) String

func (x Code) String() string

func (Code) Type

func (Code) Type() protoreflect.EnumType

type Command

type Command struct {

	// Title of the command, like `save`.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// The identifier of the actual command handler.
	Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	// Arguments that the command handler should be
	// invoked with.
	// (-- api-linter: core::0140::reserved-words=disabled --)
	Arguments []*anypb.Any `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

Command represents a reference to a command.

Provides a title which will be used to represent a command in the UI. Commands are identified by a string identifier. The recommended way to handle commands is to implement their execution on the server side if the client and server provides the corresponding capabilities. Alternatively the tool extension code could handle the command.

The protocol currently doesn’t specify a set of well-known commands.

func (*Command) Descriptor deprecated

func (*Command) Descriptor() ([]byte, []int)

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetArguments

func (x *Command) GetArguments() []*anypb.Any

func (*Command) GetCommand

func (x *Command) GetCommand() string

func (*Command) GetTitle

func (x *Command) GetTitle() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

func (x *Command) ProtoReflect() protoreflect.Message

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type CreateFile

type CreateFile struct {

	// The kind of CreateFile message.
	// (-- api-linter: core::0192::only-leading-comments=disabled --)
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // always 'create'
	// The resource to create.
	Uri *uri.URI `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	// Optional. Additional options
	Options *CreateFileOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

CreateFile create file operation.

func (*CreateFile) Descriptor deprecated

func (*CreateFile) Descriptor() ([]byte, []int)

Deprecated: Use CreateFile.ProtoReflect.Descriptor instead.

func (*CreateFile) GetKind

func (x *CreateFile) GetKind() string

func (*CreateFile) GetOptions

func (x *CreateFile) GetOptions() *CreateFileOptions

func (*CreateFile) GetUri

func (x *CreateFile) GetUri() *uri.URI

func (*CreateFile) ProtoMessage

func (*CreateFile) ProtoMessage()

func (*CreateFile) ProtoReflect

func (x *CreateFile) ProtoReflect() protoreflect.Message

func (*CreateFile) Reset

func (x *CreateFile) Reset()

func (*CreateFile) String

func (x *CreateFile) String() string

type CreateFileOptions

type CreateFileOptions struct {

	// Optional. Overwrite existing file. Overwrite wins over `ignoreIfExists`.
	Overwrite bool `protobuf:"varint,1,opt,name=overwrite,proto3" json:"overwrite,omitempty"`
	// Optional. Ignore if exists.
	IgnoreIfExists bool `protobuf:"varint,2,opt,name=ignore_if_exists,json=ignoreIfExists,proto3" json:"ignore_if_exists,omitempty"`
	// contains filtered or unexported fields
}

CreateFileOptions is the options to create a file.

func (*CreateFileOptions) Descriptor deprecated

func (*CreateFileOptions) Descriptor() ([]byte, []int)

Deprecated: Use CreateFileOptions.ProtoReflect.Descriptor instead.

func (*CreateFileOptions) GetIgnoreIfExists

func (x *CreateFileOptions) GetIgnoreIfExists() bool

func (*CreateFileOptions) GetOverwrite

func (x *CreateFileOptions) GetOverwrite() bool

func (*CreateFileOptions) ProtoMessage

func (*CreateFileOptions) ProtoMessage()

func (*CreateFileOptions) ProtoReflect

func (x *CreateFileOptions) ProtoReflect() protoreflect.Message

func (*CreateFileOptions) Reset

func (x *CreateFileOptions) Reset()

func (*CreateFileOptions) String

func (x *CreateFileOptions) String() string

type DeleteFile

type DeleteFile struct {

	// The kind of DeleteFile message.
	//
	// always 'delete'
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// The file to delete.
	Uri *uri.URI `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	// Optional. Delete options.
	Options *DeleteFileOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

DeleteFile delete file operation.

func (*DeleteFile) Descriptor deprecated

func (*DeleteFile) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFile.ProtoReflect.Descriptor instead.

func (*DeleteFile) GetKind

func (x *DeleteFile) GetKind() string

func (*DeleteFile) GetOptions

func (x *DeleteFile) GetOptions() *DeleteFileOptions

func (*DeleteFile) GetUri

func (x *DeleteFile) GetUri() *uri.URI

func (*DeleteFile) ProtoMessage

func (*DeleteFile) ProtoMessage()

func (*DeleteFile) ProtoReflect

func (x *DeleteFile) ProtoReflect() protoreflect.Message

func (*DeleteFile) Reset

func (x *DeleteFile) Reset()

func (*DeleteFile) String

func (x *DeleteFile) String() string

type DeleteFileOptions

type DeleteFileOptions struct {

	// Optional. Delete the content recursively if a folder is denoted.
	Recursive bool `protobuf:"varint,1,opt,name=recursive,proto3" json:"recursive,omitempty"`
	// Optional. Ignore the operation if the file doesn't exist.
	IgnoreIfExists bool `protobuf:"varint,2,opt,name=ignore_if_exists,json=ignoreIfExists,proto3" json:"ignore_if_exists,omitempty"`
	// contains filtered or unexported fields
}

DeleteFileOptions is the options to delete a file.

func (*DeleteFileOptions) Descriptor deprecated

func (*DeleteFileOptions) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFileOptions.ProtoReflect.Descriptor instead.

func (*DeleteFileOptions) GetIgnoreIfExists

func (x *DeleteFileOptions) GetIgnoreIfExists() bool

func (*DeleteFileOptions) GetRecursive

func (x *DeleteFileOptions) GetRecursive() bool

func (*DeleteFileOptions) ProtoMessage

func (*DeleteFileOptions) ProtoMessage()

func (*DeleteFileOptions) ProtoReflect

func (x *DeleteFileOptions) ProtoReflect() protoreflect.Message

func (*DeleteFileOptions) Reset

func (x *DeleteFileOptions) Reset()

func (*DeleteFileOptions) String

func (x *DeleteFileOptions) String() string

type Diagnostic

type Diagnostic struct {

	// The range at which the message applies.
	Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"`
	// Optional. 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 `protobuf:"varint,2,opt,name=severity,proto3,enum=protocol.DiagnosticSeverity" json:"severity,omitempty"`
	// Optional. The diagnostic's code, which might appear in the user interface.
	Code *wrapperspb.Int32Value `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// Optional. A human-readable string describing the source of this
	// diagnostic, e.g. 'typescript' or 'super lint'.
	Source *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	// The diagnostic's message.
	Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	// Optional. Additional metadata about the diagnostic.
	//
	// @since 3.15.0
	Tags []DiagnosticTag `protobuf:"varint,6,rep,packed,name=tags,proto3,enum=protocol.DiagnosticTag" json:"tags,omitempty"`
	// Optional. An array of related diagnostic information, e.g. when symbol-names within
	// a scope collide all definitions can be marked via this property.
	// (-- api-linter: core::0140::abbreviations=disabled --)
	RelatedInformation []*DiagnosticRelatedInformation `protobuf:"bytes,7,rep,name=related_information,json=relatedInformation,proto3" json:"related_information,omitempty"`
	// contains filtered or unexported fields
}

Diagnostic represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource.

func (*Diagnostic) Descriptor deprecated

func (*Diagnostic) Descriptor() ([]byte, []int)

Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead.

func (*Diagnostic) GetCode

func (x *Diagnostic) GetCode() *wrapperspb.Int32Value

func (*Diagnostic) GetMessage

func (x *Diagnostic) GetMessage() string

func (*Diagnostic) GetRange

func (x *Diagnostic) GetRange() *Range

func (*Diagnostic) GetRelatedInformation

func (x *Diagnostic) GetRelatedInformation() []*DiagnosticRelatedInformation

func (*Diagnostic) GetSeverity

func (x *Diagnostic) GetSeverity() DiagnosticSeverity

func (*Diagnostic) GetSource

func (x *Diagnostic) GetSource() *wrapperspb.StringValue

func (*Diagnostic) GetTags

func (x *Diagnostic) GetTags() []DiagnosticTag

func (*Diagnostic) ProtoMessage

func (*Diagnostic) ProtoMessage()

func (*Diagnostic) ProtoReflect

func (x *Diagnostic) ProtoReflect() protoreflect.Message

func (*Diagnostic) Reset

func (x *Diagnostic) Reset()

func (*Diagnostic) String

func (x *Diagnostic) String() string

type DiagnosticRelatedInformation

type DiagnosticRelatedInformation struct {

	// The location of this related diagnostic information.
	Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// The message of this related diagnostic information.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

DiagnosticRelatedInformation represents a related message and source code location for a diagnostic.

This should be used to point to code locations that cause or are related to a diagnostics, e.g when duplicating a symbol in a scope. (-- api-linter: core::0140::abbreviations=disabled --)

func (*DiagnosticRelatedInformation) Descriptor deprecated

func (*DiagnosticRelatedInformation) Descriptor() ([]byte, []int)

Deprecated: Use DiagnosticRelatedInformation.ProtoReflect.Descriptor instead.

func (*DiagnosticRelatedInformation) GetLocation

func (x *DiagnosticRelatedInformation) GetLocation() *Location

func (*DiagnosticRelatedInformation) GetMessage

func (x *DiagnosticRelatedInformation) GetMessage() string

func (*DiagnosticRelatedInformation) ProtoMessage

func (*DiagnosticRelatedInformation) ProtoMessage()

func (*DiagnosticRelatedInformation) ProtoReflect

func (*DiagnosticRelatedInformation) Reset

func (x *DiagnosticRelatedInformation) Reset()

func (*DiagnosticRelatedInformation) String

type DiagnosticSeverity

type DiagnosticSeverity int32

DiagnosticSeverity represents a diagnostic severity level.

const (
	// Conventional default for enums. Do not use this.
	DiagnosticSeverity_DIAGNOSTIC_SEVERITY_UNSPECIFIED DiagnosticSeverity = 0
	// Reports an error.
	DiagnosticSeverity_ERROR DiagnosticSeverity = 1
	// Reports a warning.
	DiagnosticSeverity_WARNING DiagnosticSeverity = 2
	// Reports an information.
	// (-- api-linter: core::0140::abbreviations=disabled --)
	DiagnosticSeverity_INFORMATION DiagnosticSeverity = 3
	// Reports a hint.
	DiagnosticSeverity_HINT DiagnosticSeverity = 4
)

func (DiagnosticSeverity) Descriptor

func (DiagnosticSeverity) Enum

func (DiagnosticSeverity) EnumDescriptor deprecated

func (DiagnosticSeverity) EnumDescriptor() ([]byte, []int)

Deprecated: Use DiagnosticSeverity.Descriptor instead.

func (DiagnosticSeverity) Number

func (DiagnosticSeverity) String

func (x DiagnosticSeverity) String() string

func (DiagnosticSeverity) Type

type DiagnosticTag

type DiagnosticTag int32

DiagnosticTag is the diagnostic tags.

@since 3.15.0

const (
	// Conventional default for enums. Do not use this.
	DiagnosticTag_DIAGNOSTIC_TAG_UNSPECIFIED DiagnosticTag = 0
	// Unused or unnecessary code.
	//
	// Clients are allowed to render diagnostics with this tag faded out instead of having
	// an error squiggle.
	DiagnosticTag_UNNECESSARY DiagnosticTag = 1
	// Deprecated or obsolete code.
	//
	// Clients are allowed to rendered diagnostics with this tag strike through.
	DiagnosticTag_DEPRECATED DiagnosticTag = 2
)

func (DiagnosticTag) Descriptor

func (DiagnosticTag) Enum

func (x DiagnosticTag) Enum() *DiagnosticTag

func (DiagnosticTag) EnumDescriptor deprecated

func (DiagnosticTag) EnumDescriptor() ([]byte, []int)

Deprecated: Use DiagnosticTag.Descriptor instead.

func (DiagnosticTag) Number

func (DiagnosticTag) String

func (x DiagnosticTag) String() string

func (DiagnosticTag) Type

type DocumentFilter

type DocumentFilter struct {

	// Optional. A language id, like `typescript`.
	//
	// (-- api-linter: core::0143::standardized-codes=disabled --)
	Language *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	// Optional. A URI [scheme](#uri.Scheme), like `file` or `untitled`.
	Scheme *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
	// Optional. A glob pattern, like `*.{ts,js}`.
	//
	// Glob patterns can have the following syntax:
	// - `*` to match one or more characters in a path segment
	// - `?` to match on one character in a path segment
	// - `**` to match any number of path segments, including none
	// - `{}` to group conditions (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
	// - `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to
	// match on `example.0`, `example.1`, …)
	// - `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]`
	// to match on `example.a`, `example.b`, but not `example.0`)
	Pattern *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=pattern,proto3" json:"pattern,omitempty"`
	// contains filtered or unexported fields
}

DocumentFilter is a document filter denotes a document through properties like language, scheme or pattern. An example is a filter that applies to TypeScript files on disk. Another example is a filter the applies to JSON files with name package.json:

func (*DocumentFilter) Descriptor deprecated

func (*DocumentFilter) Descriptor() ([]byte, []int)

Deprecated: Use DocumentFilter.ProtoReflect.Descriptor instead.

func (*DocumentFilter) GetLanguage

func (x *DocumentFilter) GetLanguage() *wrapperspb.StringValue

func (*DocumentFilter) GetPattern

func (x *DocumentFilter) GetPattern() *wrapperspb.StringValue

func (*DocumentFilter) GetScheme

func (x *DocumentFilter) GetScheme() *wrapperspb.StringValue

func (*DocumentFilter) ProtoMessage

func (*DocumentFilter) ProtoMessage()

func (*DocumentFilter) ProtoReflect

func (x *DocumentFilter) ProtoReflect() protoreflect.Message

func (*DocumentFilter) Reset

func (x *DocumentFilter) Reset()

func (*DocumentFilter) String

func (x *DocumentFilter) String() string

type DocumentURI

type DocumentURI struct {
	DocumentUri string `protobuf:"bytes,1,opt,name=document_uri,json=documentUri,proto3" json:"document_uri,omitempty"`
	// contains filtered or unexported fields
}

DocumentURI are transferred as strings. The URI’s format is defined in http://tools.ietf.org/html/rfc3986.

func (*DocumentURI) Descriptor deprecated

func (*DocumentURI) Descriptor() ([]byte, []int)

Deprecated: Use DocumentURI.ProtoReflect.Descriptor instead.

func (*DocumentURI) GetDocumentUri

func (x *DocumentURI) GetDocumentUri() string

func (*DocumentURI) ProtoMessage

func (*DocumentURI) ProtoMessage()

func (*DocumentURI) ProtoReflect

func (x *DocumentURI) ProtoReflect() protoreflect.Message

func (*DocumentURI) Reset

func (x *DocumentURI) Reset()

func (*DocumentURI) String

func (x *DocumentURI) String() string

type Error

type Error struct {

	// A number indicating the error type that occurred.
	//
	// Which may an enum value of [Code][#code].
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// A string providing a short description of the error.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// A primitive or structured value that contains additional
	// information about the error. Can be omitted.
	Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Error represents a JSON-RPC error.

func (*Error) Descriptor deprecated

func (*Error) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetData

func (x *Error) GetData() string

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type FailureHandlingKind

type FailureHandlingKind int32
const (
	// Conventional default for enums. Do not use this.
	FailureHandlingKind_FAILURE_HANDLING_KIND_UNSPECIFIED FailureHandlingKind = 0
	// Applying the workspace change is simply aborted if one of the changes provided
	// fails. All operations executed before the failing operation stay executed.
	FailureHandlingKind_ABORT FailureHandlingKind = 1
	// All operations are executed transactional. That means they either all
	// succeed or no changes at all are applied to the workspace.
	FailureHandlingKind_TRANSACTIONAL FailureHandlingKind = 2
	// If the workspace edit contains only textual file changes they are executed transactional.
	// If resource changes (create, rename or delete file) are part of the change the failure
	// handling strategy is abort.
	FailureHandlingKind_TEXT_ONLY_TRANSACTIONAL FailureHandlingKind = 3
	// The client tries to undo the operations already executed. But there is no
	// guarantee that this is succeeding.
	FailureHandlingKind_UNDO FailureHandlingKind = 4
)

func (FailureHandlingKind) Descriptor

func (FailureHandlingKind) Enum

func (FailureHandlingKind) EnumDescriptor deprecated

func (FailureHandlingKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use FailureHandlingKind.Descriptor instead.

func (FailureHandlingKind) Number

func (FailureHandlingKind) String

func (x FailureHandlingKind) String() string

func (FailureHandlingKind) Type

type FileResourceChange

type FileResourceChange struct {

	// Types that are assignable to File:
	//	*FileResourceChange_CreateFile
	//	*FileResourceChange_RenameFile
	//	*FileResourceChange_DeleteFile
	File isFileResourceChange_File `protobuf_oneof:"file"`
	// contains filtered or unexported fields
}

FileResourceChange allow servers to create, rename and delete files and folders via the client.

Note that the names talk about files but the operations are supposed to work on files and folders. This is in line with other naming in the Language Server Protocol (see file watchers which can watch files and folders).

New in version 3.13.

func (*FileResourceChange) Descriptor deprecated

func (*FileResourceChange) Descriptor() ([]byte, []int)

Deprecated: Use FileResourceChange.ProtoReflect.Descriptor instead.

func (*FileResourceChange) GetCreateFile

func (x *FileResourceChange) GetCreateFile() *CreateFile

func (*FileResourceChange) GetDeleteFile

func (x *FileResourceChange) GetDeleteFile() *DeleteFile

func (*FileResourceChange) GetFile

func (m *FileResourceChange) GetFile() isFileResourceChange_File

func (*FileResourceChange) GetRenameFile

func (x *FileResourceChange) GetRenameFile() *RenameFile

func (*FileResourceChange) ProtoMessage

func (*FileResourceChange) ProtoMessage()

func (*FileResourceChange) ProtoReflect

func (x *FileResourceChange) ProtoReflect() protoreflect.Message

func (*FileResourceChange) Reset

func (x *FileResourceChange) Reset()

func (*FileResourceChange) String

func (x *FileResourceChange) String() string

type FileResourceChange_CreateFile

type FileResourceChange_CreateFile struct {
	// CreateFile create file operation.
	CreateFile *CreateFile `protobuf:"bytes,1,opt,name=create_file,json=createFile,proto3,oneof"`
}

type FileResourceChange_DeleteFile

type FileResourceChange_DeleteFile struct {
	// DeleteFile delete file operation.
	DeleteFile *DeleteFile `protobuf:"bytes,3,opt,name=delete_file,json=deleteFile,proto3,oneof"`
}

type FileResourceChange_RenameFile

type FileResourceChange_RenameFile struct {
	// RenameFile rename file operation.
	RenameFile *RenameFile `protobuf:"bytes,2,opt,name=rename_file,json=renameFile,proto3,oneof"`
}

type Location

type Location struct {

	// The text document's uri.
	Uri *uri.URI `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// The location's range.
	Range *Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"`
	// contains filtered or unexported fields
}

Location represents a location inside a resource, such as a line inside a text file.

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetRange

func (x *Location) GetRange() *Range

func (*Location) GetUri

func (x *Location) GetUri() *uri.URI

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string
type LocationLink struct {

	// Optional. The span of the origin of this link.
	//
	// Used as the underlined span for mouse interaction. Defaults to the word range at
	// the mouse position.
	OriginSelectionRange *Range `protobuf:"bytes,1,opt,name=origin_selection_range,json=originSelectionRange,proto3" json:"origin_selection_range,omitempty"`
	// The target resource identifier of this link.
	TargetUri *uri.URI `protobuf:"bytes,2,opt,name=target_uri,json=targetUri,proto3" json:"target_uri,omitempty"`
	// The full target range of this link.
	//
	// If the target for example is a symbol then target range is the range enclosing this symbol not
	// including leading/trailing whitespace but everything else like comments. This information is
	// typically used to highlight the range in the editor.
	TargetRange *Range `protobuf:"bytes,3,opt,name=target_range,json=targetRange,proto3" json:"target_range,omitempty"`
	// The range that should be selected and revealed when this link is being followed, e.g the name
	// of a function. Must be contained by the the `targetRange`. See also
	// [DocumentSymbol#range][DocumentSymbol].
	TargetSelectionRange *Range `protobuf:"bytes,4,opt,name=target_selection_range,json=targetSelectionRange,proto3" json:"target_selection_range,omitempty"`
	// contains filtered or unexported fields
}

LocationLink represents a link between a source and a target location.

func (*LocationLink) Descriptor deprecated

func (*LocationLink) Descriptor() ([]byte, []int)

Deprecated: Use LocationLink.ProtoReflect.Descriptor instead.

func (*LocationLink) GetOriginSelectionRange

func (x *LocationLink) GetOriginSelectionRange() *Range

func (*LocationLink) GetTargetRange

func (x *LocationLink) GetTargetRange() *Range

func (*LocationLink) GetTargetSelectionRange

func (x *LocationLink) GetTargetSelectionRange() *Range

func (*LocationLink) GetTargetUri

func (x *LocationLink) GetTargetUri() *uri.URI

func (*LocationLink) ProtoMessage

func (*LocationLink) ProtoMessage()

func (*LocationLink) ProtoReflect

func (x *LocationLink) ProtoReflect() protoreflect.Message

func (*LocationLink) Reset

func (x *LocationLink) Reset()

func (*LocationLink) String

func (x *LocationLink) String() string

type MarkupContent

type MarkupContent struct {

	// The type of the Markup.
	Kind MarkupKind `protobuf:"varint,1,opt,name=kind,proto3,enum=protocol.MarkupKind" json:"kind,omitempty"`
	// The content itself.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

MarkupContent is a MarkupContent literal represents a string value which content can be represented in different formats. Currently plaintext and markdown are supported formats. A MarkupContent is usually used in documentation properties of result literals like CompletionItem or SignatureInformation.

A `MarkupContent` literal represents a string value which content is interpreted base on its kind flag. Currently the protocol supports `plaintext` and `markdown` as markup kinds.

If the kind is `markdown` then the value can contain fenced code blocks like in GitHub issues. See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting

Here is an example how such a string can be constructed using JavaScript / TypeScript:

```markdown ```typescript

let markdown: MarkdownContent = {
 kind: MarkupKind.Markdown,
     value: [
     	'# Header',
     	'Some text',
     	'```typescript',
     	'someCode();',
     	'```'
     ].join('\n')
};

``` ```

NOTE: clients might sanitize the return markdown. A client could decide to remove HTML from the markdown to avoid script execution.

func (*MarkupContent) Descriptor deprecated

func (*MarkupContent) Descriptor() ([]byte, []int)

Deprecated: Use MarkupContent.ProtoReflect.Descriptor instead.

func (*MarkupContent) GetKind

func (x *MarkupContent) GetKind() MarkupKind

func (*MarkupContent) GetValue

func (x *MarkupContent) GetValue() string

func (*MarkupContent) ProtoMessage

func (*MarkupContent) ProtoMessage()

func (*MarkupContent) ProtoReflect

func (x *MarkupContent) ProtoReflect() protoreflect.Message

func (*MarkupContent) Reset

func (x *MarkupContent) Reset()

func (*MarkupContent) String

func (x *MarkupContent) String() string

type MarkupKind

type MarkupKind int32

MarkupKind describes the content type that a client supports in various result literals like `Hover`, `ParameterInfo` or `CompletionItem`.

Please note that `MarkupKinds` must not start with a `$`. This kinds are reserved for internal usage.

const (
	// Conventional default for enums. Do not use this.
	MarkupKind_MARKUP_KIND_UNSPECIFIED MarkupKind = 0
	// Plain text is supported as a content format
	MarkupKind_PLAIN_TEXT MarkupKind = 1
	// Markdown is supported as a content format
	MarkupKind_MARKDOWN MarkupKind = 2
)

func (MarkupKind) Descriptor

func (MarkupKind) Descriptor() protoreflect.EnumDescriptor

func (MarkupKind) Enum

func (x MarkupKind) Enum() *MarkupKind

func (MarkupKind) EnumDescriptor deprecated

func (MarkupKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use MarkupKind.Descriptor instead.

func (MarkupKind) Number

func (x MarkupKind) Number() protoreflect.EnumNumber

func (MarkupKind) String

func (x MarkupKind) String() string

func (MarkupKind) Type

type Position

type Position struct {

	// Line position in a document (zero-based).
	Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
	// Character offset on a line in a document (zero-based). Assuming that the line is
	// represented as a string, the `character` value represents the gap between the
	// `character` and `character + 1`.
	//
	// If the character value is greater than the line length it defaults back to the
	// line length.
	//
	// The offsets are based on a UTF-16 string representation.
	Character int32 `protobuf:"varint,2,opt,name=character,proto3" json:"character,omitempty"`
	// contains filtered or unexported fields
}

Position in a text document expressed as zero-based line and zero-based character offset. A position is between two characters like an ‘insert’ cursor in a editor. Special values like for example -1 to denote the end of a line are not supported.

func (*Position) Descriptor deprecated

func (*Position) Descriptor() ([]byte, []int)

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetCharacter

func (x *Position) GetCharacter() int32

func (*Position) GetLine

func (x *Position) GetLine() int32

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

func (x *Position) ProtoReflect() protoreflect.Message

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type Range

type Range struct {

	// The range's start position.
	Start *Position `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	// The range's end position.
	End *Position `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

Range in a text document expressed as (zero-based) start and end positions.

A range is comparable to a selection in an editor. Therefore the end position is exclusive. If you want to specify a range that contains a line including the line ending character(s) then use an end position denoting the start of the next line.

func (*Range) Descriptor deprecated

func (*Range) Descriptor() ([]byte, []int)

Deprecated: Use Range.ProtoReflect.Descriptor instead.

func (*Range) GetEnd

func (x *Range) GetEnd() *Position

func (*Range) GetStart

func (x *Range) GetStart() *Position

func (*Range) ProtoMessage

func (*Range) ProtoMessage()

func (*Range) ProtoReflect

func (x *Range) ProtoReflect() protoreflect.Message

func (*Range) Reset

func (x *Range) Reset()

func (*Range) String

func (x *Range) String() string

type RenameFile

type RenameFile struct {

	// The kind of RenameFile message.
	//
	// always 'rename'
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// The old (existing) location.
	OldUri *uri.URI `protobuf:"bytes,2,opt,name=old_uri,json=oldUri,proto3" json:"old_uri,omitempty"`
	// The new location.
	NewUri *uri.URI `protobuf:"bytes,3,opt,name=new_uri,json=newUri,proto3" json:"new_uri,omitempty"`
	// Optional. Rename options.
	Options *RenameFileOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

RenameFile rename file operation.

func (*RenameFile) Descriptor deprecated

func (*RenameFile) Descriptor() ([]byte, []int)

Deprecated: Use RenameFile.ProtoReflect.Descriptor instead.

func (*RenameFile) GetKind

func (x *RenameFile) GetKind() string

func (*RenameFile) GetNewUri

func (x *RenameFile) GetNewUri() *uri.URI

func (*RenameFile) GetOldUri

func (x *RenameFile) GetOldUri() *uri.URI

func (*RenameFile) GetOptions

func (x *RenameFile) GetOptions() *RenameFileOptions

func (*RenameFile) ProtoMessage

func (*RenameFile) ProtoMessage()

func (*RenameFile) ProtoReflect

func (x *RenameFile) ProtoReflect() protoreflect.Message

func (*RenameFile) Reset

func (x *RenameFile) Reset()

func (*RenameFile) String

func (x *RenameFile) String() string

type RenameFileOptions

type RenameFileOptions struct {

	// Optional. Overwrite target if existing. Overwrite wins over `ignoreIfExists`.
	Overwrite bool `protobuf:"varint,1,opt,name=overwrite,proto3" json:"overwrite,omitempty"`
	// Optional. Ignores if target exists.
	IgnoreIfExists bool `protobuf:"varint,2,opt,name=ignore_if_exists,json=ignoreIfExists,proto3" json:"ignore_if_exists,omitempty"`
	// contains filtered or unexported fields
}

RenameFileOptions is the options to rename a file.

func (*RenameFileOptions) Descriptor deprecated

func (*RenameFileOptions) Descriptor() ([]byte, []int)

Deprecated: Use RenameFileOptions.ProtoReflect.Descriptor instead.

func (*RenameFileOptions) GetIgnoreIfExists

func (x *RenameFileOptions) GetIgnoreIfExists() bool

func (*RenameFileOptions) GetOverwrite

func (x *RenameFileOptions) GetOverwrite() bool

func (*RenameFileOptions) ProtoMessage

func (*RenameFileOptions) ProtoMessage()

func (*RenameFileOptions) ProtoReflect

func (x *RenameFileOptions) ProtoReflect() protoreflect.Message

func (*RenameFileOptions) Reset

func (x *RenameFileOptions) Reset()

func (*RenameFileOptions) String

func (x *RenameFileOptions) String() string

type ResourceOperationKind

type ResourceOperationKind int32

ResourceOperationKind is the kind of resource operations supported by the client.

const (
	// Conventional default for enums. Do not use this.
	ResourceOperationKind_RESOURCE_OPERATION_KIND_UNSPECIFIED ResourceOperationKind = 0
	// Supports creating new files and folders.
	ResourceOperationKind_CREATE ResourceOperationKind = 1
	// Supports renaming existing files and folders.
	ResourceOperationKind_RENAME ResourceOperationKind = 2
	// Supports deleting existing files and folders.
	ResourceOperationKind_DELETE ResourceOperationKind = 3
)

func (ResourceOperationKind) Descriptor

func (ResourceOperationKind) Enum

func (ResourceOperationKind) EnumDescriptor deprecated

func (ResourceOperationKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResourceOperationKind.Descriptor instead.

func (ResourceOperationKind) Number

func (ResourceOperationKind) String

func (x ResourceOperationKind) String() string

func (ResourceOperationKind) Type

type StaticRegistrationOptions

type StaticRegistrationOptions struct {

	// Optional. The id used to register the request. The id can be used to deregister
	// the request again. See also Registration#id.
	Id *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

StaticRegistrationOptions can be used to register a feature in the initialize result with a given server control ID to be able to un-register the feature later on. Static registration options to be returned in the initialize request.

func (*StaticRegistrationOptions) Descriptor deprecated

func (*StaticRegistrationOptions) Descriptor() ([]byte, []int)

Deprecated: Use StaticRegistrationOptions.ProtoReflect.Descriptor instead.

func (*StaticRegistrationOptions) GetId

func (*StaticRegistrationOptions) ProtoMessage

func (*StaticRegistrationOptions) ProtoMessage()

func (*StaticRegistrationOptions) ProtoReflect

func (*StaticRegistrationOptions) Reset

func (x *StaticRegistrationOptions) Reset()

func (*StaticRegistrationOptions) String

func (x *StaticRegistrationOptions) String() string

type TextDocumentEdit

type TextDocumentEdit struct {

	// The text document to change.
	TextDocument *VersionedTextDocumentIdentifier `protobuf:"bytes,1,opt,name=text_document,json=textDocument,proto3" json:"text_document,omitempty"`
	// The edits to be applied.
	Edits []*TextEdit `protobuf:"bytes,2,rep,name=edits,proto3" json:"edits,omitempty"`
	// contains filtered or unexported fields
}

TextDocumentEdit describes textual changes on a single text document.

The text document is referred to as a VersionedTextDocumentIdentifier to allow clients to check the text document version before an edit is applied. A TextDocumentEdit describes all changes on a version Si and after they are applied move the document to version Si+1. So the creator of a TextDocumentEdit doesn’t need to sort the array of edits or do any kind of ordering. However the edits must be non overlapping.

func (*TextDocumentEdit) Descriptor deprecated

func (*TextDocumentEdit) Descriptor() ([]byte, []int)

Deprecated: Use TextDocumentEdit.ProtoReflect.Descriptor instead.

func (*TextDocumentEdit) GetEdits

func (x *TextDocumentEdit) GetEdits() []*TextEdit

func (*TextDocumentEdit) GetTextDocument

func (x *TextDocumentEdit) GetTextDocument() *VersionedTextDocumentIdentifier

func (*TextDocumentEdit) ProtoMessage

func (*TextDocumentEdit) ProtoMessage()

func (*TextDocumentEdit) ProtoReflect

func (x *TextDocumentEdit) ProtoReflect() protoreflect.Message

func (*TextDocumentEdit) Reset

func (x *TextDocumentEdit) Reset()

func (*TextDocumentEdit) String

func (x *TextDocumentEdit) String() string

type TextDocumentIdentifier

type TextDocumentIdentifier struct {

	// The text document's URI.
	Uri *uri.URI `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

TextDocumentIdentifier text documents are identified using a URI. On the protocol level, URIs are passed as strings. The corresponding JSON structure looks like this: (-- api-linter: core::0140::abbreviations=disabled --)

func (*TextDocumentIdentifier) Descriptor deprecated

func (*TextDocumentIdentifier) Descriptor() ([]byte, []int)

Deprecated: Use TextDocumentIdentifier.ProtoReflect.Descriptor instead.

func (*TextDocumentIdentifier) GetUri

func (x *TextDocumentIdentifier) GetUri() *uri.URI

func (*TextDocumentIdentifier) ProtoMessage

func (*TextDocumentIdentifier) ProtoMessage()

func (*TextDocumentIdentifier) ProtoReflect

func (x *TextDocumentIdentifier) ProtoReflect() protoreflect.Message

func (*TextDocumentIdentifier) Reset

func (x *TextDocumentIdentifier) Reset()

func (*TextDocumentIdentifier) String

func (x *TextDocumentIdentifier) String() string

type TextDocumentItem

type TextDocumentItem struct {

	// The text document's URI.
	Uri *uri.URI `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// The text document's language identifier.
	LanguageId string `protobuf:"bytes,2,opt,name=language_id,json=languageId,proto3" json:"language_id,omitempty"`
	// The version number of this document (it will increase after each
	// change, including undo/redo).
	Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// The content of the opened text document.
	Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

TextDocumentItem an item to transfer a text document from the client to the server.

func (*TextDocumentItem) Descriptor deprecated

func (*TextDocumentItem) Descriptor() ([]byte, []int)

Deprecated: Use TextDocumentItem.ProtoReflect.Descriptor instead.

func (*TextDocumentItem) GetLanguageId

func (x *TextDocumentItem) GetLanguageId() string

func (*TextDocumentItem) GetText

func (x *TextDocumentItem) GetText() string

func (*TextDocumentItem) GetUri

func (x *TextDocumentItem) GetUri() *uri.URI

func (*TextDocumentItem) GetVersion

func (x *TextDocumentItem) GetVersion() int32

func (*TextDocumentItem) ProtoMessage

func (*TextDocumentItem) ProtoMessage()

func (*TextDocumentItem) ProtoReflect

func (x *TextDocumentItem) ProtoReflect() protoreflect.Message

func (*TextDocumentItem) Reset

func (x *TextDocumentItem) Reset()

func (*TextDocumentItem) String

func (x *TextDocumentItem) String() string

type TextDocumentPositionParams

type TextDocumentPositionParams struct {

	// The text document.
	TextDocument *TextDocumentIdentifier `protobuf:"bytes,1,opt,name=text_document,json=textDocument,proto3" json:"text_document,omitempty"`
	// The position inside the text document.
	Position *Position `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

TextDocumentPositionParams was TextDocumentPosition in 1.0 with inlined parameters. A parameter literal used in requests to pass a text document and a position inside that document.

func (*TextDocumentPositionParams) Descriptor deprecated

func (*TextDocumentPositionParams) Descriptor() ([]byte, []int)

Deprecated: Use TextDocumentPositionParams.ProtoReflect.Descriptor instead.

func (*TextDocumentPositionParams) GetPosition

func (x *TextDocumentPositionParams) GetPosition() *Position

func (*TextDocumentPositionParams) GetTextDocument

func (x *TextDocumentPositionParams) GetTextDocument() *TextDocumentIdentifier

func (*TextDocumentPositionParams) ProtoMessage

func (*TextDocumentPositionParams) ProtoMessage()

func (*TextDocumentPositionParams) ProtoReflect

func (*TextDocumentPositionParams) Reset

func (x *TextDocumentPositionParams) Reset()

func (*TextDocumentPositionParams) String

func (x *TextDocumentPositionParams) String() string

type TextDocumentRegistrationOptions

type TextDocumentRegistrationOptions struct {

	// A document selector to identify the scope of the registration. If set to null
	// the document selector provided on the client side will be used.
	//
	// Types that are assignable to DocumentSelector:
	//	*TextDocumentRegistrationOptions_Selector
	//	*TextDocumentRegistrationOptions_Empty
	DocumentSelector isTextDocumentRegistrationOptions_DocumentSelector `protobuf_oneof:"document_selector"`
	// contains filtered or unexported fields
}

TextDocumentRegistrationOptions options to dynamically register for requests for a set of text documents.

func (*TextDocumentRegistrationOptions) Descriptor deprecated

func (*TextDocumentRegistrationOptions) Descriptor() ([]byte, []int)

Deprecated: Use TextDocumentRegistrationOptions.ProtoReflect.Descriptor instead.

func (*TextDocumentRegistrationOptions) GetDocumentSelector

func (m *TextDocumentRegistrationOptions) GetDocumentSelector() isTextDocumentRegistrationOptions_DocumentSelector

func (*TextDocumentRegistrationOptions) GetEmpty

func (*TextDocumentRegistrationOptions) GetSelector

func (*TextDocumentRegistrationOptions) ProtoMessage

func (*TextDocumentRegistrationOptions) ProtoMessage()

func (*TextDocumentRegistrationOptions) ProtoReflect

func (*TextDocumentRegistrationOptions) Reset

func (*TextDocumentRegistrationOptions) String

type TextDocumentRegistrationOptions_DocumentSelector

type TextDocumentRegistrationOptions_DocumentSelector struct {
	DocumentSelector []*DocumentFilter `protobuf:"bytes,1,rep,name=document_selector,json=documentSelector,proto3" json:"document_selector,omitempty"`
	// contains filtered or unexported fields
}

DocumentSelector is a document selector is the combination of one or more document filters.

func (*TextDocumentRegistrationOptions_DocumentSelector) Descriptor deprecated

Deprecated: Use TextDocumentRegistrationOptions_DocumentSelector.ProtoReflect.Descriptor instead.

func (*TextDocumentRegistrationOptions_DocumentSelector) GetDocumentSelector

func (*TextDocumentRegistrationOptions_DocumentSelector) ProtoMessage

func (*TextDocumentRegistrationOptions_DocumentSelector) ProtoReflect

func (*TextDocumentRegistrationOptions_DocumentSelector) Reset

func (*TextDocumentRegistrationOptions_DocumentSelector) String

type TextDocumentRegistrationOptions_Empty

type TextDocumentRegistrationOptions_Empty struct {
	Empty structpb.NullValue `protobuf:"varint,2,opt,name=empty,proto3,enum=google.protobuf.NullValue,oneof"`
}

type TextDocumentRegistrationOptions_Selector

type TextDocumentRegistrationOptions_Selector struct {
	Selector *TextDocumentRegistrationOptions_DocumentSelector `protobuf:"bytes,1,opt,name=selector,proto3,oneof"`
}

type TextEdit

type TextEdit struct {

	// The range of the text document to be manipulated. To insert
	// text into a document create a range where start === end.
	Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"`
	// The string to be inserted. For delete operations use an
	// empty string.
	NewText string `protobuf:"bytes,2,opt,name=new_text,json=newText,proto3" json:"new_text,omitempty"`
	// contains filtered or unexported fields
}

TextEdit is a textual edit applicable to a text document.

func (*TextEdit) Descriptor deprecated

func (*TextEdit) Descriptor() ([]byte, []int)

Deprecated: Use TextEdit.ProtoReflect.Descriptor instead.

func (*TextEdit) GetNewText

func (x *TextEdit) GetNewText() string

func (*TextEdit) GetRange

func (x *TextEdit) GetRange() *Range

func (*TextEdit) ProtoMessage

func (*TextEdit) ProtoMessage()

func (*TextEdit) ProtoReflect

func (x *TextEdit) ProtoReflect() protoreflect.Message

func (*TextEdit) Reset

func (x *TextEdit) Reset()

func (*TextEdit) String

func (x *TextEdit) String() string

type TraceValue

type TraceValue int32

TraceValue represents the level of verbosity with which the server systematically reports its execution trace using $/logTrace notifications. The initial trace value is set by the client at initialization and can be modified later using the $/setTrace notification.

const (
	// Conventional default for enums. Do not use this.
	TraceValue_TRACE_VALUE_UNSPECIFIED TraceValue = 0
	// trace is off.
	TraceValue_OFF TraceValue = 1
	// message trace level.
	TraceValue_MESSAGE TraceValue = 2
	// verbose trace level.
	TraceValue_VERBOSE TraceValue = 3
)

func (TraceValue) Descriptor

func (TraceValue) Descriptor() protoreflect.EnumDescriptor

func (TraceValue) Enum

func (x TraceValue) Enum() *TraceValue

func (TraceValue) EnumDescriptor deprecated

func (TraceValue) EnumDescriptor() ([]byte, []int)

Deprecated: Use TraceValue.Descriptor instead.

func (TraceValue) Number

func (x TraceValue) Number() protoreflect.EnumNumber

func (TraceValue) String

func (x TraceValue) String() string

func (TraceValue) Type

type VersionedTextDocumentIdentifier

type VersionedTextDocumentIdentifier struct {

	// TextDocumentIdentifier text documents are identified using a URI. On the protocol level, URIs
	// are passed as strings.
	TextDocumentIdentifier *TextDocumentIdentifier `` /* 129-byte string literal not displayed */
	// Optional. The version number of this document. If a versioned text document identifier
	// is sent from the server to the client and the file is not open in the editor
	// (the server has not received an open notification before) the server can send
	// `null` to indicate that the version is known and the content on disk is the
	// master (as speced with document content ownership).
	//
	// The version number of a document will increase after each change, including
	// undo/redo. The number doesn't need to be consecutive.
	Version bool `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

(-- api-linter: core::0140::abbreviations=disabled --)

func (*VersionedTextDocumentIdentifier) Descriptor deprecated

func (*VersionedTextDocumentIdentifier) Descriptor() ([]byte, []int)

Deprecated: Use VersionedTextDocumentIdentifier.ProtoReflect.Descriptor instead.

func (*VersionedTextDocumentIdentifier) GetTextDocumentIdentifier

func (x *VersionedTextDocumentIdentifier) GetTextDocumentIdentifier() *TextDocumentIdentifier

func (*VersionedTextDocumentIdentifier) GetVersion

func (x *VersionedTextDocumentIdentifier) GetVersion() bool

func (*VersionedTextDocumentIdentifier) ProtoMessage

func (*VersionedTextDocumentIdentifier) ProtoMessage()

func (*VersionedTextDocumentIdentifier) ProtoReflect

func (*VersionedTextDocumentIdentifier) Reset

func (*VersionedTextDocumentIdentifier) String

type WorkDoneProgressBegin

type WorkDoneProgressBegin struct {

	// WorkDoneProgressBegin kind.
	//
	// always 'begin'
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// Mandatory title of the progress operation. Used to briefly inform about
	// the kind of operation being performed.
	//
	// Examples: "Indexing" or "Linking dependencies".
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Optional. Controls if a cancel button should show to allow the user to cancel the
	// long running operation. Clients that don't support cancellation are allowed
	// to ignore the setting.
	Cancellable bool `protobuf:"varint,3,opt,name=cancellable,proto3" json:"cancellable,omitempty"`
	// Optional, more detailed associated progress message. Contains
	// complementary information to the `title`.
	//
	// Examples: "3/25 files", "project/src/module2", "node_modules/some_dep".
	// If unset, the previous progress message (if any) is still valid.
	Message *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// Optional progress percentage to display (value 100 is considered 100%).
	// If not provided infinite progress is assumed and clients are allowed
	// to ignore the `percentage` value in subsequent in report notifications.
	//
	// The value should be steadily rising. Clients are free to ignore values
	// that are not following this rule.
	Percentage *wrapperspb.Int32Value `protobuf:"bytes,5,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// contains filtered or unexported fields
}

WorkDoneProgressBegin to start progress reporting a $/progress notification with the payload must be sent.

@since 3.15.0

func (*WorkDoneProgressBegin) Descriptor deprecated

func (*WorkDoneProgressBegin) Descriptor() ([]byte, []int)

Deprecated: Use WorkDoneProgressBegin.ProtoReflect.Descriptor instead.

func (*WorkDoneProgressBegin) GetCancellable

func (x *WorkDoneProgressBegin) GetCancellable() bool

func (*WorkDoneProgressBegin) GetKind

func (x *WorkDoneProgressBegin) GetKind() string

func (*WorkDoneProgressBegin) GetMessage

func (x *WorkDoneProgressBegin) GetMessage() *wrapperspb.StringValue

func (*WorkDoneProgressBegin) GetPercentage

func (x *WorkDoneProgressBegin) GetPercentage() *wrapperspb.Int32Value

func (*WorkDoneProgressBegin) GetTitle

func (x *WorkDoneProgressBegin) GetTitle() string

func (*WorkDoneProgressBegin) ProtoMessage

func (*WorkDoneProgressBegin) ProtoMessage()

func (*WorkDoneProgressBegin) ProtoReflect

func (x *WorkDoneProgressBegin) ProtoReflect() protoreflect.Message

func (*WorkDoneProgressBegin) Reset

func (x *WorkDoneProgressBegin) Reset()

func (*WorkDoneProgressBegin) String

func (x *WorkDoneProgressBegin) String() string

type WorkDoneProgressEnd

type WorkDoneProgressEnd struct {

	// WorkDoneProgressEnd kind.
	//
	// always 'end'
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// Optional, a final message indicating to for example indicate the outcome
	// of the operation.
	Message *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

WorkDoneProgressEnd signaling the end of a progress reporting is done using the payload.

func (*WorkDoneProgressEnd) Descriptor deprecated

func (*WorkDoneProgressEnd) Descriptor() ([]byte, []int)

Deprecated: Use WorkDoneProgressEnd.ProtoReflect.Descriptor instead.

func (*WorkDoneProgressEnd) GetKind

func (x *WorkDoneProgressEnd) GetKind() string

func (*WorkDoneProgressEnd) GetMessage

func (x *WorkDoneProgressEnd) GetMessage() *wrapperspb.StringValue

func (*WorkDoneProgressEnd) ProtoMessage

func (*WorkDoneProgressEnd) ProtoMessage()

func (*WorkDoneProgressEnd) ProtoReflect

func (x *WorkDoneProgressEnd) ProtoReflect() protoreflect.Message

func (*WorkDoneProgressEnd) Reset

func (x *WorkDoneProgressEnd) Reset()

func (*WorkDoneProgressEnd) String

func (x *WorkDoneProgressEnd) String() string

type WorkDoneProgressOptions

type WorkDoneProgressOptions struct {

	// Optional.
	WorkDoneProgress bool `protobuf:"varint,1,opt,name=work_done_progress,json=workDoneProgress,proto3" json:"work_done_progress,omitempty"`
	// contains filtered or unexported fields
}

WorkDoneProgressOptions options to signal work done progress support in server capabilities.

func (*WorkDoneProgressOptions) Descriptor deprecated

func (*WorkDoneProgressOptions) Descriptor() ([]byte, []int)

Deprecated: Use WorkDoneProgressOptions.ProtoReflect.Descriptor instead.

func (*WorkDoneProgressOptions) GetWorkDoneProgress

func (x *WorkDoneProgressOptions) GetWorkDoneProgress() bool

func (*WorkDoneProgressOptions) ProtoMessage

func (*WorkDoneProgressOptions) ProtoMessage()

func (*WorkDoneProgressOptions) ProtoReflect

func (x *WorkDoneProgressOptions) ProtoReflect() protoreflect.Message

func (*WorkDoneProgressOptions) Reset

func (x *WorkDoneProgressOptions) Reset()

func (*WorkDoneProgressOptions) String

func (x *WorkDoneProgressOptions) String() string

type WorkDoneProgressReport

type WorkDoneProgressReport struct {

	// WorkDoneProgressReport kind.
	//
	// always 'report'
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// Optional. Controls enablement state of a cancel button. This property is only valid if a cancel
	// button got requested in the `WorkDoneProgressStart` payload.
	//
	// Clients that don't support cancellation or don't support control the button's
	// enablement state are allowed to ignore the setting.
	Cancellable bool `protobuf:"varint,2,opt,name=cancellable,proto3" json:"cancellable,omitempty"`
	// Optional, more detailed associated progress message. Contains
	// complementary information to the `title`.
	//
	// Examples: "3/25 files", "project/src/module2", "node_modules/some_dep".
	// If unset, the previous progress message (if any) is still valid.
	Message *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// Optional progress percentage to display (value 100 is considered 100%).
	// If not provided infinite progress is assumed and clients are allowed
	// to ignore the `percentage` value in subsequent in report notifications.
	//
	// The value should be steadily rising. Clients are free to ignore values
	// that are not following this rule.
	Percentage *wrapperspb.Int32Value `protobuf:"bytes,4,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// contains filtered or unexported fields
}

WorkDoneProgressReport reporting progress is done using the payload.

func (*WorkDoneProgressReport) Descriptor deprecated

func (*WorkDoneProgressReport) Descriptor() ([]byte, []int)

Deprecated: Use WorkDoneProgressReport.ProtoReflect.Descriptor instead.

func (*WorkDoneProgressReport) GetCancellable

func (x *WorkDoneProgressReport) GetCancellable() bool

func (*WorkDoneProgressReport) GetKind

func (x *WorkDoneProgressReport) GetKind() string

func (*WorkDoneProgressReport) GetMessage

func (*WorkDoneProgressReport) GetPercentage

func (x *WorkDoneProgressReport) GetPercentage() *wrapperspb.Int32Value

func (*WorkDoneProgressReport) ProtoMessage

func (*WorkDoneProgressReport) ProtoMessage()

func (*WorkDoneProgressReport) ProtoReflect

func (x *WorkDoneProgressReport) ProtoReflect() protoreflect.Message

func (*WorkDoneProgressReport) Reset

func (x *WorkDoneProgressReport) Reset()

func (*WorkDoneProgressReport) String

func (x *WorkDoneProgressReport) String() string

type WorkspaceEdit

type WorkspaceEdit struct {

	// Holds changes to existing resources.
	//
	// The map key is uri.URI
	// (-- api-linter: core::0192::only-leading-comments=disabled --)
	Changes map[string]*WorkspaceEdit_TextEdits `` /* 155-byte string literal not displayed */
	// document_changes Depending on the client capability
	// `workspace.workspaceEdit.resourceOperations` document changes are either an array of
	// `TextDocumentEdit`s to express changes to n different text documents where each text document
	// edit addresses a specific version of a text document. Or it can contain above
	// `TextDocumentEdit`s mixed with create, rename and delete file / folder operations.
	//
	// Whether a client supports versioned document edits is expressed via
	// `workspace.workspaceEdit.documentChanges` client capability.
	//
	// If a client neither supports `documentChanges` nor `workspace.workspaceEdit.resourceOperations`
	// then only plain `TextEdit`s using the `changes` property are supported.
	//
	// Types that are assignable to DocumentChanges:
	//	*WorkspaceEdit_TextDocumentEdits_
	//	*WorkspaceEdit_CreateFiles_
	//	*WorkspaceEdit_RenameFiles_
	//	*WorkspaceEdit_DeleteFiles_
	DocumentChanges isWorkspaceEdit_DocumentChanges `protobuf_oneof:"document_changes"`
	// contains filtered or unexported fields
}

WorkspaceEdit a workspace edit represents changes to many resources managed in the workspace. The edit should either provide changes or documentChanges. If the client can handle versioned document edits and if documentChanges are present, the latter are preferred over changes.

func (*WorkspaceEdit) Descriptor deprecated

func (*WorkspaceEdit) Descriptor() ([]byte, []int)

Deprecated: Use WorkspaceEdit.ProtoReflect.Descriptor instead.

func (*WorkspaceEdit) GetChanges

func (x *WorkspaceEdit) GetChanges() map[string]*WorkspaceEdit_TextEdits

func (*WorkspaceEdit) GetCreateFiles

func (x *WorkspaceEdit) GetCreateFiles() *WorkspaceEdit_CreateFiles

func (*WorkspaceEdit) GetDeleteFiles

func (x *WorkspaceEdit) GetDeleteFiles() *WorkspaceEdit_DeleteFiles

func (*WorkspaceEdit) GetDocumentChanges

func (m *WorkspaceEdit) GetDocumentChanges() isWorkspaceEdit_DocumentChanges

func (*WorkspaceEdit) GetRenameFiles

func (x *WorkspaceEdit) GetRenameFiles() *WorkspaceEdit_RenameFiles

func (*WorkspaceEdit) GetTextDocumentEdits

func (x *WorkspaceEdit) GetTextDocumentEdits() *WorkspaceEdit_TextDocumentEdits

func (*WorkspaceEdit) ProtoMessage

func (*WorkspaceEdit) ProtoMessage()

func (*WorkspaceEdit) ProtoReflect

func (x *WorkspaceEdit) ProtoReflect() protoreflect.Message

func (*WorkspaceEdit) Reset

func (x *WorkspaceEdit) Reset()

func (*WorkspaceEdit) String

func (x *WorkspaceEdit) String() string

type WorkspaceEditClientCapabilities

type WorkspaceEditClientCapabilities struct {

	// Optional. The client supports versioned document changes in `WorkspaceEdit`s.
	DocumentChanges bool `protobuf:"varint,1,opt,name=document_changes,json=documentChanges,proto3" json:"document_changes,omitempty"`
	// The resource operations the client supports. Clients should at least
	// support 'create', 'rename' and 'delete' files and folders.
	//
	// @since 3.13.0
	ResourceOperations []ResourceOperationKind `` /* 159-byte string literal not displayed */
	// Optional. The failure handling strategy of a client if applying the workspace edit
	// fails.
	//
	// @since 3.13.0
	FailureHandling FailureHandlingKind `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

WorkspaceEditClientCapabilities ResourceOperationKind and FailureHandlingKind and the client capability workspace.workspaceEdit.resourceOperations as well as workspace.workspaceEdit.failureHandling.

New in version 3.13.

The capabilities of a workspace edit has evolved over the time. Clients can describe their support using the following client capability: - property path (optional): workspace.workspaceEdit - property type: WorkspaceEditClientCapabilities defined as follows.

func (*WorkspaceEditClientCapabilities) Descriptor deprecated

func (*WorkspaceEditClientCapabilities) Descriptor() ([]byte, []int)

Deprecated: Use WorkspaceEditClientCapabilities.ProtoReflect.Descriptor instead.

func (*WorkspaceEditClientCapabilities) GetDocumentChanges

func (x *WorkspaceEditClientCapabilities) GetDocumentChanges() bool

func (*WorkspaceEditClientCapabilities) GetFailureHandling

func (x *WorkspaceEditClientCapabilities) GetFailureHandling() FailureHandlingKind

func (*WorkspaceEditClientCapabilities) GetResourceOperations

func (x *WorkspaceEditClientCapabilities) GetResourceOperations() []ResourceOperationKind

func (*WorkspaceEditClientCapabilities) ProtoMessage

func (*WorkspaceEditClientCapabilities) ProtoMessage()

func (*WorkspaceEditClientCapabilities) ProtoReflect

func (*WorkspaceEditClientCapabilities) Reset

func (*WorkspaceEditClientCapabilities) String

type WorkspaceEdit_CreateFiles

type WorkspaceEdit_CreateFiles struct {
	CreateFiles []*CreateFile `protobuf:"bytes,1,rep,name=create_files,json=createFiles,proto3" json:"create_files,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkspaceEdit_CreateFiles) Descriptor deprecated

func (*WorkspaceEdit_CreateFiles) Descriptor() ([]byte, []int)

Deprecated: Use WorkspaceEdit_CreateFiles.ProtoReflect.Descriptor instead.

func (*WorkspaceEdit_CreateFiles) GetCreateFiles

func (x *WorkspaceEdit_CreateFiles) GetCreateFiles() []*CreateFile

func (*WorkspaceEdit_CreateFiles) ProtoMessage

func (*WorkspaceEdit_CreateFiles) ProtoMessage()

func (*WorkspaceEdit_CreateFiles) ProtoReflect

func (*WorkspaceEdit_CreateFiles) Reset

func (x *WorkspaceEdit_CreateFiles) Reset()

func (*WorkspaceEdit_CreateFiles) String

func (x *WorkspaceEdit_CreateFiles) String() string

type WorkspaceEdit_CreateFiles_

type WorkspaceEdit_CreateFiles_ struct {
	CreateFiles *WorkspaceEdit_CreateFiles `protobuf:"bytes,3,opt,name=create_files,json=createFiles,proto3,oneof"`
}

type WorkspaceEdit_DeleteFiles

type WorkspaceEdit_DeleteFiles struct {
	DeleteFiles []*DeleteFile `protobuf:"bytes,1,rep,name=delete_files,json=deleteFiles,proto3" json:"delete_files,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkspaceEdit_DeleteFiles) Descriptor deprecated

func (*WorkspaceEdit_DeleteFiles) Descriptor() ([]byte, []int)

Deprecated: Use WorkspaceEdit_DeleteFiles.ProtoReflect.Descriptor instead.

func (*WorkspaceEdit_DeleteFiles) GetDeleteFiles

func (x *WorkspaceEdit_DeleteFiles) GetDeleteFiles() []*DeleteFile

func (*WorkspaceEdit_DeleteFiles) ProtoMessage

func (*WorkspaceEdit_DeleteFiles) ProtoMessage()

func (*WorkspaceEdit_DeleteFiles) ProtoReflect

func (*WorkspaceEdit_DeleteFiles) Reset

func (x *WorkspaceEdit_DeleteFiles) Reset()

func (*WorkspaceEdit_DeleteFiles) String

func (x *WorkspaceEdit_DeleteFiles) String() string

type WorkspaceEdit_DeleteFiles_

type WorkspaceEdit_DeleteFiles_ struct {
	DeleteFiles *WorkspaceEdit_DeleteFiles `protobuf:"bytes,5,opt,name=delete_files,json=deleteFiles,proto3,oneof"`
}

type WorkspaceEdit_RenameFiles

type WorkspaceEdit_RenameFiles struct {
	RenameFiles []*RenameFile `protobuf:"bytes,1,rep,name=rename_files,json=renameFiles,proto3" json:"rename_files,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkspaceEdit_RenameFiles) Descriptor deprecated

func (*WorkspaceEdit_RenameFiles) Descriptor() ([]byte, []int)

Deprecated: Use WorkspaceEdit_RenameFiles.ProtoReflect.Descriptor instead.

func (*WorkspaceEdit_RenameFiles) GetRenameFiles

func (x *WorkspaceEdit_RenameFiles) GetRenameFiles() []*RenameFile

func (*WorkspaceEdit_RenameFiles) ProtoMessage

func (*WorkspaceEdit_RenameFiles) ProtoMessage()

func (*WorkspaceEdit_RenameFiles) ProtoReflect

func (*WorkspaceEdit_RenameFiles) Reset

func (x *WorkspaceEdit_RenameFiles) Reset()

func (*WorkspaceEdit_RenameFiles) String

func (x *WorkspaceEdit_RenameFiles) String() string

type WorkspaceEdit_RenameFiles_

type WorkspaceEdit_RenameFiles_ struct {
	RenameFiles *WorkspaceEdit_RenameFiles `protobuf:"bytes,4,opt,name=rename_files,json=renameFiles,proto3,oneof"`
}

type WorkspaceEdit_TextDocumentEdits

type WorkspaceEdit_TextDocumentEdits struct {
	TextDocumentEdits []*TextDocumentEdit `protobuf:"bytes,1,rep,name=text_document_edits,json=textDocumentEdits,proto3" json:"text_document_edits,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkspaceEdit_TextDocumentEdits) Descriptor deprecated

func (*WorkspaceEdit_TextDocumentEdits) Descriptor() ([]byte, []int)

Deprecated: Use WorkspaceEdit_TextDocumentEdits.ProtoReflect.Descriptor instead.

func (*WorkspaceEdit_TextDocumentEdits) GetTextDocumentEdits

func (x *WorkspaceEdit_TextDocumentEdits) GetTextDocumentEdits() []*TextDocumentEdit

func (*WorkspaceEdit_TextDocumentEdits) ProtoMessage

func (*WorkspaceEdit_TextDocumentEdits) ProtoMessage()

func (*WorkspaceEdit_TextDocumentEdits) ProtoReflect

func (*WorkspaceEdit_TextDocumentEdits) Reset

func (*WorkspaceEdit_TextDocumentEdits) String

type WorkspaceEdit_TextDocumentEdits_

type WorkspaceEdit_TextDocumentEdits_ struct {
	TextDocumentEdits *WorkspaceEdit_TextDocumentEdits `protobuf:"bytes,2,opt,name=text_document_edits,json=textDocumentEdits,proto3,oneof"`
}

type WorkspaceEdit_TextEdits

type WorkspaceEdit_TextEdits struct {
	TextEdits []*TextEdit `protobuf:"bytes,1,rep,name=text_edits,json=textEdits,proto3" json:"text_edits,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkspaceEdit_TextEdits) Descriptor deprecated

func (*WorkspaceEdit_TextEdits) Descriptor() ([]byte, []int)

Deprecated: Use WorkspaceEdit_TextEdits.ProtoReflect.Descriptor instead.

func (*WorkspaceEdit_TextEdits) GetTextEdits

func (x *WorkspaceEdit_TextEdits) GetTextEdits() []*TextEdit

func (*WorkspaceEdit_TextEdits) ProtoMessage

func (*WorkspaceEdit_TextEdits) ProtoMessage()

func (*WorkspaceEdit_TextEdits) ProtoReflect

func (x *WorkspaceEdit_TextEdits) ProtoReflect() protoreflect.Message

func (*WorkspaceEdit_TextEdits) Reset

func (x *WorkspaceEdit_TextEdits) Reset()

func (*WorkspaceEdit_TextEdits) String

func (x *WorkspaceEdit_TextEdits) String() string

Directories

Path Synopsis
Package rpc is a reverse proxy.
Package rpc is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL